
Claudex
io.github.kunwar-shah由 GitHub 账号 kunwar-shah 发布v1.3.4更新于 Nov 3, 2026
Persistent memory + FTS5 search MCP server for Claude Code conversation history.
概览
为 Claude Code 提供持久记忆,并让助手检索本机保存的历史对话记录的 MCP 服务器。
- 可以做什么
- 跨项目回忆项目上下文与历史会话
- 按项目、会话、角色、日期等条件全文搜索对话历史
- 读取完整会话与消息内容
- 增删改查结构化记忆条目(约定、架构、决策、错误模式),支持优先级、置信度与有效期
- 提供回忆、进度补课、历史回顾等内置提示词
- 按最小、标准、完整三档控制上下文详细程度以节省 token
- 适用场景
- 希望 Claude Code 在多次会话之间记住编码约定、架构决策和过往讨论,或需要查询某个项目以前聊过什么时适用。适合已在本机保留 Claude Code 对话历史、并希望助手直接检索这些记录的开发者。
- 运行要求
- 以本地 stdio 进程运行,通过 npm 包安装,需要 Node.js 18+ 与 npm。需要本机存在 Claude Code 对话历史,目录由环境变量 PROJECT_ROOT 指定(默认 ~/.claude/projects)。未声明任何认证或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Claudex,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Claudex
Professional conversation viewer and analysis tool for Claude Code
Category: Development Tools · Conversation Analysis · Usage Monitoring
Claudex is a full-stack web application designed for developers, QA engineers, and researchers who need to inspect, search, and analyze Claude Code conversation histories. Built with React and Fastify, it provides enterprise-grade full-text search using SQLite FTS5, universal template support for all Claude Code versions, and comprehensive analytics dashboards.
[Version] [License: MIT] [Documentation] [Discussions] [Mentioned in Awesome Claude Code]
📚 Documentation | 💬 Discussions | 🐛 Issues
🆕 What's New
Version 1.3.0 (February 12, 2026) — MCP Server
- 🧠 MCP Server: Model Context Protocol server gives Claude Code persistent memory across sessions
- 🔧 10 MCP Tools: Project context, session search, conversation retrieval, structured memory CRUD
- 💾 Structured Memory System: Store coding knowledge (conventions, architecture, decisions, error patterns) with priority, confidence, and TTL
- 📋 3 MCP Prompts:
/recall,/catchup,/historyfor quick access to past sessions - 🎯 Token Budgeting: Three detail levels (minimal/standard/full) for context management
- 📖 One-Command Setup:
claude mcp add --transport stdio claudex -- claudex-mcp
Previous releases
Version 1.2.0 (November 11, 2025)
- 🎨 Comprehensive Theming System: 10 professional themes (default, emerald, green, blue, purple, orange, red, rose, yellow, classic)
- 🔤 Advanced Typography: 29 font families with visual preview
- 📏 Granular Font Sizing: 5 precise font size options (14px-18px)
- 💾 Settings Persistence: All customizations saved to localStorage
Version 1.1.0 (October 27, 2025)
- 🎯 Smart Title Extraction: Meaningful session titles from conversation content
- 📊 Tremor Analytics Dashboard: Tailwind-based charts and multi-scale visualizations
- 🐳 Docker Multi-Platform: amd64 and arm64 with optimized ~200MB images
- ⚡ Performance: 121x faster async search index rebuild
View full changelog | Troubleshooting guide
📸 Screenshots
🎨 NEW in v1.2.0: Theming & Customization
Conversation View
[Conversation View]Full-Text Search
[Search Results]✨ Features
- MCP Server: Give Claude Code persistent memory — conventions, architecture, decisions, and error patterns survive across sessions
- Structured Memory: Store and recall coding knowledge with priority (1-10), confidence, and TTL-based expiration
- Auto Project Discovery: Automatically scans
~/.claude/projectsdirectory to discover all conversations across multiple projects - Full-Text Search: Enterprise-grade SQLite FTS5 search engine with advanced filtering by project, session, role, date range, and content highlighting
- Universal Template Support: Intelligent template detection and parsing for all Claude Code versions (V1.x, V2-mixed, V2.0+) with automatic format detection
- Smart Content Rendering: Syntax-highlighted code blocks, markdown rendering, diff visualization, JSON formatting, and tool usage tracking
- Session Analytics: Comprehensive analytics dashboard with message distribution charts, file operation tracking, and conversation statistics using Tremor React
- Export Options: Export conversations to JSON (structured data), HTML (readable format), or plain TXT for archival and sharing
- Modern UI: Responsive React interface with 10 themes, 29 fonts, session favorites, and optimized for developer workflows
💖 Support This Project
Claudex is free and open source. If it saves you time and improves your workflow, please consider:
- ⭐ Star the repo - Help others discover Claudex
- 🐛 Report bugs - Your feedback makes us better
- 💡 Share ideas - Request features in Discussions
- ☕ Buy me a coffee - Support continued development
🚀 Quick Start
Prerequisites
- Node.js 18+ and npm
- Claude Code installed with conversation history in
~/.claude/projects
Installation
Option 1: npm (Recommended)
Add MCP Server (gives Claude Code persistent memory):
See the MCP Server Guide for details.
CLI Options:
--help, -h: Show help message--version, -v: Show version--port, -p <port>: Custom server port (default: 3400)--project-root <path>: Custom Claude projects directory
Environment Variables:
PORT: Server port (default: 3400)PROJECT_ROOT: Claude projects directory (default: ~/.claude/projects)
Option 2: From Source
- Clone the repository:
- Run system check (optional but recommended):
This validates your environment and catches common setup issues.
- Install dependencies (or use auto-fix):
- Configure environment (if not using auto-fix):
- Start the application:
- Open your browser: http://localhost:3000
The backend API runs on http://localhost:3400
System Checker
Claudex includes a comprehensive system checker that validates your environment:
What it checks:
- ✅ Node.js & npm versions
- ✅ PROJECT_ROOT path & permissions
- ✅ Port availability (3000, 3400)
- ✅ Dependencies installation
- ✅ Claude Code data (projects, sessions)
- ✅ JSONL file validity
- ✅ Database permissions
- ✅ Search index status
Global CLI Installation (Optional)
Install globally to use claudex command anywhere:
🔧 Configuration
Server Configuration (.env)
Default Ports
- Frontend: http://localhost:3000 (Vite dev server)
- Backend: http://localhost:3400 (Fastify API)
- Frontend build: Uses port 3400 (served by backend in production)
📂 Project Structure
🎯 Supported Claude Code Formats
The viewer automatically detects and parses all Claude Code conversation formats:
V3 Template (Universal - Recommended)
- Claude Code v2.0+: New format with
rolefield directly - Claude Code v1.x: Original format with
typefield - Edge cases: Mixed formats and migration states
- New message types:
file-history-snapshotsupport - Role mapping: All system messages → assistant (binary user/assistant classification)
Legacy Templates (Auto-detected)
- V2-Mixed: Transition format between V1 and V2
- V1: Original Claude Code format
The template detector uses a waterfall detection strategy, automatically selecting the best parser for your conversation files.
🔍 Search System
Building the Search Index
The search index needs to be built before searching:
When to Rebuild Index
Rebuild the search index when:
- First time setup
- After template changes
- When new conversations are added
- If search results seem outdated
Search API Examples
📡 API Endpoints
Projects & Sessions
Search
Export
Health
🛠️ Development
Development Mode
Testing the Search System
This script will:
- Check server health
- Get index status
- Build/rebuild index
- Run test searches with various filters
- Display results
Adding New Templates
- Update Template Detector (
server/src/parsers/templateDetector.js):
- Add Parser Method (
server/src/parsers/messageParser.js):
- Rebuild Search Index: The new template will be automatically detected and used.
📝 Scripts Reference
Claudex Directory
npm run dev- Run frontend + backend concurrently (with pre-check)npm start- Run frontend + backend (production mode)npm run check- Run system health checknpm run check:verbose- Run detailed system checknpm run check:fix- Auto-fix common setup issuesnpm run check:json- JSON output for CI/CD./install.sh- Install as global CLI command./test-search.sh- Test search API endpoints
Server Directory
npm run dev- Run with nodemon (auto-restart)npm start- Run in production mode
Client Directory
npm run dev- Vite dev server (http://localhost:3000)npm run build- Build for productionnpm run preview- Preview production build
🐛 Troubleshooting
Quick Diagnosis
Run the system checker first to identify issues:
This will check all common problems and provide actionable suggestions.
Common Issues
"No messages found" Despite Messages Existing
Fixed in v1.1.1 - If you see intermittent empty sessions or duplicate key warnings:
See detailed troubleshooting guide for more information.
No Projects Found
- Verify
PROJECT_ROOTin.envpoints to~/.claude/projects - Check that Claude Code has created conversation files
- Run
npm run check:fixto auto-create missing directories
Search Not Working
Port Conflicts
Permission Errors
Dependencies Issues
🚢 Production Deployment
Using Docker (Recommended)
Claudex includes production-ready Docker configuration with multi-stage builds for optimal image size.
Quick Start with Docker
Access at: http://localhost:3400
Docker Configuration
The default docker-compose.yml mounts your Claude projects directory as read-only:
Common path configurations:
Docker Commands
Docker Features
- Multi-stage build: Optimized image size (~200MB)
- Non-root user: Runs as nodejs user for security
- Health checks: Automatic health monitoring
- Persistent volumes: Stores search index and logs
- Read-only mounts: Claude projects mounted read-only for safety
- Log rotation: JSON logs with 10MB max size, 3 file rotation
Docker Environment Variables
Manual Production Build
For non-Docker deployments:
Access at: http://localhost:3400
📋 Roadmap
- SQLite FTS5 full-text search
- Universal template support (V1/V2/V3)
- Export to JSON/HTML/TXT
- Docker deployment (v1.1.0)
- Conversation analytics dashboard (v1.1.0)
- Theming system — 10 themes, 29 fonts (v1.2.0)
- Session favorites/bookmarking (v1.2.4)
- MCP server for Claude Code (v1.3.0)
- Structured memory system (v1.3.0)
- Token cost calculator
- WebSocket live updates
- Plugin system for custom parsers
📄 License
MIT License - see LICENSE file for details.
🤝 Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
📚 Additional Documentation
- SETUP.md - Detailed setup and configuration guide
- INSTALL.md - Legacy installation instructions
💡 Tips
- Use the search page to find conversations across all projects
- Export conversations to share with team members
- Rebuild search index after adding new conversations
- Check
/api/healthendpoint to verify system status - Use
npm run devfor the best development experience with hot reload
来源:README.md,提交 8458466
工具
0版本历史
1- v1.3.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分