Claudex

Search Claude Code history and give it durable memory across sessions.

Stars
★ 97
Last updated
4mo ago
License
MIT
Primary language
JavaScript

At a glance

How it runs
CLISelf-hosted serviceMCP server
Works with
Platform-specificClaude Code
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
Node.js 18+npmClaude Code with conversation history in ~/.claude/projectsShell / CLINetwork accessLocal filesystemMCP Server
Typical use
A developer working across several Claude Code projects needs to recover an earlier migration plan, command, or implementation detail from all local sessions.
Not a fit if
  • Teams not using Claude Code or without ~/.claude/projects history
  • Users who need live search with automatic index updates
  • Production teams needing multi-user sync or backup/migration
Maintenance
Commits in the last 6 monthslast commit 2026-06-20latest release v1.3.3 (2026-05-03)

What does this agent do, and when should you use it?

Claudex is a self-hosted, full-stack conversation viewer, search service, and memory layer for Claude Code. Its Fastify backend scans JSONL sessions under ~/.claude/projects, indexes them with SQLite FTS5, and exposes project, session, search, export, and health APIs. A React interface provides conversation browsing, analytics, favorites, and specialized rendering for Markdown, code, diffs, JSON, and tool activity. The included stdio MCP server supplies Claude Code with 10 tools, three prompts, and structured memories carrying priority, confidence, and TTL metadata. It can run from npm, source, or Docker; in production, Fastify serves both the API and built frontend on port 3400 by default.

fileScanner.js discovers projects and sessions from PROJECT_ROOT, which defaults to ~/.claude/projects, while templateDetector.js and messageParser.js detect and parse V1, V2-Mixed, and V3 records. searchIndexer.js builds a SQLite FTS5 index, and searchDatabase.js supports highlighted queries filtered by project, session, role, date range, and content. The web client uses components including ProjectSelector.jsx, SessionList.jsx, ConversationThread.jsx, ClaudeMessageRenderer.jsx, and SearchPage.jsx to display conversations, tool usage, file operations, and analytics. Fastify routes such as /api/projects, /api/search, /api/search/index/build, /api/search/index/status, /api/export/session/:projectId/:sessionId, and /api/health expose the same data programmatically and produce JSON, HTML, or TXT exports. Over stdio, the MCP entry point provides project context, session search, conversation retrieval, and structured-memory CRUD, with minimal, standard, and full context-detail levels.

  1. A developer working across several Claude Code projects needs to recover an earlier migration plan, command, or implementation detail from all local sessions.
  2. A team wants Claude Code to recall established architecture decisions, coding conventions, and known error patterns when a fresh session begins.
  3. A QA engineer needs to inspect complete conversations, tool activity, and file operations, then export relevant sessions as JSON, HTML, or TXT.
  4. A researcher wants to filter Claude Code history by role, project, date, and content and examine message-distribution or session statistics.
  5. A user wants a locally hosted browser for Claude Code records while mounting the source project-history directory read-only in Docker.
  6. A long-time Claude Code user has V1, V2-Mixed, V3, or transitional history files and needs automatic format detection.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npm install -g @kunwarshah/claudex
Ports
3500 · 3400
Config files
~/.claude/projects
Runtime
Node.js 18+

How do you install or deploy this agent?

Install Node.js 18+, npm, and Claude Code, and ensure Claude Code has created history under ~/.claude/projects. The recommended installation is:

npm install -g @kunwarshah/claudex

claudex

You can instead run npx @kunwarshah/claudex, select another port with claudex --port 3500, or select another history root with claudex --project-root ~/my-claude-projects. Register the persistent-memory MCP server with:

claude mcp add --transport stdio claudex -- claudex-mcp

Before the first search, use “Rebuild Index” in the Search page or run:

curl -X POST http://localhost:3400/api/search/index/build

For a source install, run git clone https://github.com/kunwar-shah/claudex.git, enter the repository, install dependencies in the root, server, and client directories with npm install, and start with npm run dev. No API key or hosted-service credential is documented.

How do you use this agent?

Start claudex, then use the browser interface to select projects and sessions, read messages, view analytics, or rebuild the search index. The service and index can be checked from the shell:

curl http://localhost:3400/api/health
curl http://localhost:3400/api/search/index/status

A filtered full-text query can be submitted with:

curl -X POST http://localhost:3400/api/search -H "Content-Type: application/json" -d '{"q":"database","projectId":"my-project","role":"user","limit":20,"offset":0}'

Export a session through /api/export/session/:projectId/:sessionId?format=json, changing format to html or txt when needed. Rebuild the index through the UI or POST /api/search/index/build after new conversations arrive. Once the MCP server is registered, Claude Code can access historical context and structured memories; /recall, /catchup, and /history are the three documented prompts.

What are this agent's strengths and limitations?

Pros
  • Combines a web conversation viewer, SQLite FTS5 search, and a Claude Code MCP memory service in one local application.
  • Explicitly handles V1, V2-Mixed, V3, and mixed migration states instead of requiring a single history schema.
  • Search includes project, session, role, and date filtering plus result highlighting, going beyond raw JSONL browsing.
  • Structured memories support priority from 1 to 10, confidence, TTL expiration, and three context-detail levels.
  • Offers npm, source, and multi-architecture Docker deployment; the Docker setup uses a read-only history mount, health checks, and log rotation.
  • Exports sessions as JSON, HTML, or TXT and exposes scriptable HTTP endpoints.
Limitations
  • The data source and MCP integration are Claude Code-specific; there is no documented adapter for other assistants or model platforms.
  • Search is not live: the index must be rebuilt initially and after new conversations, while WebSocket updates remain a roadmap item.
  • Local operation requires Node.js 18+, npm, readable Claude Code history, and a writable location for the SQLite database.
  • Development mode uses separate ports 3000 and 3400, so port conflicts and filesystem permissions can require manual remediation.
  • The token-cost calculator and custom-parser plugin system are not implemented yet.
  • Structured memory creates additional local database state; the source documents persistent volumes but not backup, migration, or multi-user synchronization procedures.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Claudex This agent 49 · Major gaps CLIFree ★ 97 4mo ago JavaScript Claude Code
Ori Mnemos 56 · Major gaps CLIFree ★ 336 1mo ago TypeScript Claude Code · OpenAI API · Claude API
Mnemo Cortex 75 · Good Self-hosted serviceFree ★ 160 1d ago Python Codex · Claude Code · Claude.ai
MisakaNet Failure-Memory Library 74 · Some gaps MCP serverFree ★ 558 today Python ChatGPT · Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
49/ 100 5-point scale 2.5 / 5
Trust 12/29
Reliability 6/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The code clearly reads Claude project history, and the README describes a read-only Docker mount; however, the MCP service supports structured-memory writes, while per-action confirmation, sensitive-field filtering, and dependency review are not shown. Permission and protection details are limited, and the index-clear endpoint has no documented recovery path.

Reliability6 / 14 · 2.1/5

The MCP entry redirects console.log to stderr, initializes services lazily, and logs startup failures. However, version references are not fully aligned across the README and package metadata (the README highlights 1.3.0 while package.json says 1.3.4), and dependency availability and MCP failure cases receive limited evidence.

Adaptability10 / 18 · 2.8/5

The documentation targets developers, QA engineers, and researchers, and covers local, Docker, WSL, custom-path, and MCP setup. Tool instructions encourage loading project memory at session start, but the proactive-call guidance is broad and gives few precise boundaries for when reading or writing should be avoided.

Convention10 / 18 · 2.8/5

The repository layout, installation and configuration guides, FAQ, troubleshooting steps, and MIT license are clearly presented, and the README includes release notes. Known limitations are sparse, version references differ across documents, and maintenance responsibility is only indirectly indicated by the author attribution and support links.

Effectiveness7 / 13 · 2.7/5

The product offers conversation search, summaries, project context, and structured memory with priority, confidence, and TTL, which could reduce repeated retrieval and improve context use. The supplied source sample does not quantify benefits, resource costs, or operating conditions, so cost-benefit is only partly established.

Verifiability4 / 8 · 2.5/5

Installation, feature, and MCP startup claims have some support in the README, package manifest, and entry point. Cross-source corroboration is limited, and claims such as “enterprise-grade,” universal format support, and data never leaving the machine are not fully established by the supplied source, so confidence remains low.

Risks and how to mitigate them
  • The tool reads Claude conversation history and can write persistent memory; before enabling it, confirm that the local history directory and generated memory are appropriate to expose to the MCP client.
  • The README says data stays local, but the supplied materials do not fully show all network behavior or sensitive-data filtering.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 8458466693b0
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/claudex.svg)](https://followagents.com/en/agents/claudex)
<a href="https://followagents.com/en/agents/claudex"><img src="https://followagents.com/badge/claudex.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v1.3.3 v1.3.3 — Official MCP Registry + major UX polish
    Release notes excerpt
    What's new This release brings two big things: 1. Official MCP Registry support — Claudex is now publishable to Anthropic's official MCP Registry at registry.modelcontextprotocol.io for canonical discovery by all MCP clients (Claude Code, Cursor, Codex, Windsurf). 2. Substantial UX polish — auto-apply settings, theme preview, error boundary, toast system, keyboard shortcuts, code-splitting, and a long bug-fix list. MCP Registry - Added mcpName: io.github.kunwar-shah/claudex to package.json - Added server.json manifest at repo root UX Polish …
    View on GitHub ↗
  2. v1.3.2 v1.3.2 — Persistent memory MCP for Claude Code
    Release notes excerpt
    What's new This is a metadata refresh release — no functional code changes since v1.3.0, but a lot of housekeeping that makes Claudex easier to find and understand. Highlights - 🎬 Animated hero GIF in README (thanks @livlign for [PR #39](https://github.com/kunwar-shah/claudex/pull/39)) - 💝 GitHub Sponsors enabled — Sponsor button now visible on the repo - 🔍 Honest, MCP-focused description — "Persistent memory + FTS5 search for Claude Code conversations" …
    View on GitHub ↗
  3. v1.3.0 v1.3.0 — MCP Server & Structured Memory
    Release notes excerpt
    What's New MCP Server for Claude Code Claudex now includes a Model Context Protocol (MCP) server that gives Claude Code persistent memory across sessions. Claude can remember your codebase conventions, architecture decisions, error patterns, and more. One-command setup: ```bash npm install -g @kunwarshah/claudex claude mcp add --transport stdio claudex -- claudex-mcp ``` 10 MCP Tools | Tool | Description | |------|-------------| | get_project_context | Condensed project snapshot (call this first!) | | list_projects | List all Claude Code projects | …
    View on GitHub ↗

FAQ

Does Claudex require a paid API or credentials?
No API key or hosted-service credential is documented. Claudex reads local Claude Code history and runs locally, although Claude Code itself must already be installed and producing conversation records.
Does it modify the original Claude Code conversations?
It scans PROJECT_ROOT and builds a separate SQLite index. The Docker example mounts ~/.claude/projects read-only; the source does not claim that normal local operation rewrites the original sessions.
Why are recent conversations missing from search?
The index must be rebuilt on first setup, after new conversations, after template changes, or when results appear stale. Use “Rebuild Index” in the UI or POST /api/search/index/build.
Can it work directly with ChatGPT, Codex, or generic OpenAI and Anthropic APIs?
No such integration is documented. The history path, parsers, CLI registration command, and MCP workflow are specifically designed for Claude Code.
What deployment options are supported?
It can run through a global npm package or npx, from a source checkout, with Docker Compose or a manually built Docker image, or as a production build served by the Fastify backend.
Is Claudex open source?
Yes. The source code is on GitHub (kunwar-shah/claudex) under the MIT licence.
Is Claudex safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored Claudex 12/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is Claudex still maintained?
Development has slowed: the latest commit on GitHub is from 2026-06-20, within the last six months but not the last 30 days. The latest release is v1.3.3 (2026-05-03).
Who makes Claudex?
Claudex is published on GitHub by the account kunwar-shah. FollowAgents has not verified which person or company is behind that account.
What is Claudex's official website?
The project's GitHub repository lists https://kunwar-shah.github.io/claudex/ as its website. That link is set by the repository owner; the source code itself is on GitHub (kunwar-shah/claudex).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.