← Back to directory
C

Claude History MCP

Community
Search Claude Code conversation history and reuse past work.
Category
Dev Tools #621 of 751
Stars
★ 69 Popular
Transport
stdio (local process)
Runtime
Node.js
Credentials
Optional API key
License
MIT
Last commit
Tools
9
41FMRS · D

The README describes an MCP server for indexing and searching Claude Code conversation history, with nine tools, a stdio entry point, an optional session-start hook, and cloud sync. No server manifest or verified client compatibility information is provided.

Strongest · Documentation 10/20 Weakest · Reliability 6/20

Reliability
6/20
Security and permissions
9/20
Maintenance
7/20
Documentation
10/20
Setup experience
9/20
Why each score
Reliability 6/20
The README describes search, indexing, knowledge extraction, and cloud sync, and lists nine tools, while its architecture diagram says the MCP server has six tools. It gives a test count but no test contents, CI, or verifiable execution evidence for startup and the MCP initialization/tool-list handshake. Those paths and actual tool behavior therefore remain unconfirmed, limiting the score.
Security and permissions 9/20
The stated local data scope is Claude Code conversation history, with indexes and knowledge stored in the user's home directory. Cloud sync is optional and configured through environment variables for an API URL, key, and optional team ID. The README does not explain transport protection, retention, access control, sync scope, key protection, or per-tool permission boundaries. The supplied material shows no explicit red-line behavior, but these security properties remain uncertain, so points are deducted.
Maintenance 7/20
The repository is not archived and has an MIT license, and the README provides project structure and development commands. However, there is no evidence here of commit activity, releases, dependency updates, a security response channel, or maintainer responsiveness. The supplied 69 stars and zero open issues are discovery signals only and do not increase the maintenance score.
Documentation 10/20
The README provides a feature overview, filter syntax examples, storage locations, cloud sync configuration, and installation steps, making it partly actionable. Tool parameters and return shapes, platform compatibility, troubleshooting, data limits, and cloud costs are not adequately documented. The six-versus-nine tool count discrepancy also reduces confidence, so the score is limited.
Setup experience 9/20
The README gives steps to clone the repository, install dependencies, build, create the index, and register the server with the Claude CLI; it describes the session-start hook as optional. The steps rely on the user preparing Node/npm and a local Claude history path. There is no CI evidence, platform guidance, or configuration example for another mainstream MCP client, limiting the setup score.

Static review · not runReviewed 2026-11-30

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the network

Best for

  • Developers who want to search and reuse their Claude Code conversation history.
  • Users who want project history injected at the start of new sessions.

Not for

  • Users without Claude Code conversation files to index.
  • Users who need hosted history or sync but do not plan to configure a cloud service.

Required permissions

  • Read ~/.claude/history.jsonl and session JSONL files under ~/.claude/projects/ to build the index.
  • Write the index, knowledge entries, summaries, and indexing metadata under ~/.claude-history-mcp/.
  • If the session-start hook is enabled, register a SessionStart hook in Claude Code settings.
  • If cloud sync is used, connect to the configured cloud server with the configured credentials.

Risks and side effects

  • The index and project context contain local Claude Code conversation content; protect local storage and cloud sync credentials.
  • Enabling cloud sync sends knowledge and sessions to the configured server.
  • Search and knowledge extraction depend on indexing and heuristic processing, so results may be incomplete or imprecise.

Setup

Before you start

Runtime:Node.js

CLAUDE_HISTORY_API_KEY optionalsecret Optional cloud sync API key; get it from the ClaudeHistory Cloud service.
Other optional settings (2)
CLAUDE_HISTORY_API_URL optional Optional cloud sync server URL; get it from your ClaudeHistory Cloud deployment.
CLAUDE_HISTORY_TEAM_ID optional Optional team sync ID; get it from your team configuration.

Clone the repository, then run npm install and npm run build. Optionally run npm run build-index to build the search index, then register the server with claude mcp add claude-history -- node "/path/to/ClaudeHistoryMCP/dist/index.js". Optionally run npm run install-hook to install the session-start hook and /claude-history skill. Cloud sync requires CLAUDE_HISTORY_API_URL and CLAUDE_HISTORY_API_KEY; CLAUDE_HISTORY_TEAM_ID is optional for team sync.

MCP config · JSON
{"command":"node","args":["/path/to/ClaudeHistoryMCP/dist/index.js"]}

Works in clients that read an "mcpServers" key. For clients such as VS Code that use a different key, the configurator below converts it.

.vscode/mcp.json
{
  "command": "node",
  "args": [
    "/path/to/ClaudeHistoryMCP/dist/index.js"
  ]
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
{
  "command": "node",
  "args": [
    "/path/to/ClaudeHistoryMCP/dist/index.js"
  ]
}

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Check that it works

Confirm the Claude History tools appear in your client's MCP tool list. Then ask it to search for a past error or list projects to verify the connection.

Troubleshooting

  1. Confirm npm run build completed and the MCP registration command points to the correct dist/index.js path.
  2. If searches return no results, check that Claude Code session files exist and run npm run build-index.
  3. Check that claude-history is registered in Claude Code and that the installed hook appears in ~/.claude/settings.json.
  4. For cloud sync issues, check CLAUDE_HISTORY_API_URL, CLAUDE_HISTORY_API_KEY, optional team ID, and server connectivity.

Things to try

Once connected, you can ask your AI assistant things like:

  • Search my past sessions for fixes to ECONNREFUSED errors.
  • Summarize my last session and list recent decisions for this project.

Tools 9

search_history read-only
Search conversation history using text and inline filters.
find_solutions read-only
Find past fixes for problems or errors.
get_session_summary read-only
Get a structured summary of a session.
list_projects read-only
List projects with session counts and dates.
find_patterns read-only
Discover recurring topics, workflows, and issues.
get_project_context read-only
Get project context, including recent sessions, decisions, and knowledge.
cloud_sync_push writes
Push knowledge and sessions to a cloud server.
cloud_sync_pull writes
Pull knowledge and sessions from a cloud server.
Show 1 more tools
cloud_sync_status read-only
Check cloud sync configuration and connection status.

Use cases

Search prior Claude Code conversations for previously handled problems.
Review a session summary, project decision, or historical context.
Find recurring workflows, topics, or issues.
Sync knowledge and sessions across devices or with a team when a cloud service is configured.

Overview

Claude History MCP indexes Claude Code conversations for hybrid search, knowledge extraction, session summaries, and project context. It can also inject project history at session start and provides optional cloud sync tools.

Similar servers

Source revision a4d5cbca2704 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/claudehistorymcp.svg)](https://followmcp.com/en/servers/claudehistorymcp)