# Claude History MCP

> Search Claude Code conversation history and reuse past work.

- **URL**: https://followmcp.com/en/servers/claudehistorymcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 69
- **FMRS Score**: 41/100 (Grade D)
- **Source**: https://github.com/jhammant/ClaudeHistoryMCP
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: Optional API key

## 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.

## 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
- 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.

## Client config (JSON)
```json
{"command":"node","args":["/path/to/ClaudeHistoryMCP/dist/index.js"]}
```

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