Purpose
Claudex is a conversation history viewing and analysis tool for Claude Code, and it is also an MCP (Model Context Protocol) server that provides Claude Code with cross-session persistent memory and full-text search capabilities. The project is positioned as a development tool, conversation analysis, and usage monitoring, aimed at developers, QA engineers, and researchers who need to inspect, search, and analyze Claude Code conversation history.
Main Capabilities
MCP Server and Persistent Memory (v1.3.0)
- MCP Server: provides Claude Code with cross-session persistent memory.
- 10 MCP tools: project context, session search, conversation retrieval, and CRUD for structured memory.
- Structured memory system: stores coding knowledge (conventions, architecture, decisions, error patterns), supporting priority, confidence, and TTL expiration.
- 3 MCP prompts: /recall, /catchup, /history, for quickly accessing past sessions.
- Token budget: provides three levels of detail: minimal/standard/full for context management.
- One-click install: claude mcp add --transport stdio claudex -- claudex-mcp
Full-Text Search
- Enterprise-grade SQLite FTS5 search engine, supporting advanced filtering by project, session, role, date range, and content highlighting.
- A search index must be built first; it needs to be rebuilt on first setup, template changes, newly added conversations, or when search results are too old.
Template Support and Content Rendering
- Universal template support: intelligently detects and parses all Claude Code versions (V1.x, V2-mixed, V2.0+, etc.), with automatic format detection; uses a waterfall detection strategy to automatically select the best parser.
- Intelligent content rendering: code block syntax highlighting, Markdown rendering, diff visualization, JSON formatting, and tool usage tracking.
Interface and Customization (v1.2.0)
- 10 professional themes (default, emerald, green, blue, purple, orange, red, rose, yellow, classic).
- 29 font families, with visual previews; 5 levels of fine-grained font sizes (14px-18px) plus rounded corner control.
- Settings persistence: all customizations are saved to localStorage.
- Session favorites/bookmarks (v1.2.4), responsive React interface.
Analysis and Export
- Session analysis: a Tremor React-based analytics dashboard, including message distribution charts, file operation tracking, and conversation statistics.
- Automatic project discovery: automatically scans the ~/.claude/projects directory to discover all conversations across multiple projects.
- Intelligent title extraction (v1.1.0): extracts meaningful session titles from conversation content.
- Export: supports export to JSON (structured data), HTML (readable format), or plain TXT, for archiving and sharing.
Deployment
- Docker multi-platform: amd64 and arm64, with an optimized image of about 200MB; multi-stage build, non-root user, health check, persistent volume, read-only mount, log rotation.
- Performance: asynchronous search index rebuild is 121 times faster (v1.1.0).
Usage
Environment Requirements
- Node.js 18+ and npm
- Claude Code is installed, and there is conversation history in ~/.claude/projects
Add the MCP Server
claude mcp add --transport stdio claudex -- claudex-mcp
Run from Source
- Clone the repository.
- Run a system check (optional but recommended): npm run check
- Install dependencies (or use automatic fix): npm run check:fix
- Configure the environment (if automatic fix was not used).
- Start the application, open a browser and visit http://localhost:3000;后端 The API runs at http://localhost:3400。
Global CLI installation (optional)
After installing it as a global command, you can use the claudex command from any location: ./install.sh
CLI parameters
- --help, -h: Show help information
- --version, -v: Show version
- --port, -p <port>: Customize the server port (default 3400)
- --project-root <path>: Customize the Claude project directory
Environment variables
- PORT: Server port (default 3400)
- PROJECT_ROOT: Claude project directory (default ~/.claude/projects)
Common scripts
- npm run dev: Run the frontend and backend simultaneously (including pre-checks)
- npm start: Run the frontend and backend in production mode
- npm run check / check:verbose / check:fix / check:json: System health checks and automatic fixes
- ./test-search.sh: Test the search API endpoint
Docker deployment (recommended)
The project includes a production-ready Docker configuration. The default docker-compose.yml mounts the Claude project directory in read-only mode. The access address is http://localhost:3400。
Build the search index
The index must be built before searching; rebuild it during initial setup, when templates change, when new conversations are added, or when results are too old.
Use cases
- Developers, QA engineers, and researchers inspect and search Claude Code conversation history.
- Need to let Claude Code remember coding conventions, architecture, decisions, and error patterns across sessions.
- Retrieve, analyze, and export conversations across multiple projects for archiving or sharing.
- Deploy a self-hosted conversation viewing and analysis service via Docker.
Limitations and notes
- Requires Node.js 18+ and installed Claude Code conversation history data.
- The search feature depends on building the index first.
- Official materials do not provide specific pricing or fee information; the project is free and open source under the MIT License.
- Official materials do not provide information on other unmentioned features, platforms, or effects.