conversation-history-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@conversation-history-mcpsearch for how I set up authentication"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Conversation History MCP Server
A local MCP server that indexes and searches your Claude Code conversation history with both keyword and semantic search.
Features
Keyword Search - Fast full-text search using SQLite FTS5
Semantic Search - Find conceptually similar conversations using local embeddings
Session Listing - Browse recent sessions with summaries
Context Retrieval - Get full context from any past conversation
Fully Private - All data stays local, no external API calls
Related MCP server: engram-mcp
Installation
Prerequisites
Python 3.10+
Claude Code CLI
Quick Install
# Clone the repo
git clone https://github.com/SDillon001/conversation-history-mcp.git
cd conversation-history-mcp
# Install dependencies
pip install -r requirements.txt
# Create symlink to Claude's MCP directory
mkdir -p ~/.claude/mcp-servers
ln -s "$(pwd)" ~/.claude/mcp-servers/conversation-history
# Add to Claude Code settings
# See Configuration section belowConfiguration
Add to your ~/.claude.json under the mcpServers key:
{
"mcpServers": {
"conversation-history": {
"type": "stdio",
"command": "python3",
"args": ["server.py"],
"cwd": "/path/to/conversation-history-mcp"
}
}
}Replace /path/to/conversation-history-mcp with the actual path to your installation.
Usage
Once configured, the following tools are available in any Claude Code session:
search_sessions
Keyword search across all conversation history.
"Search for conversations about authentication"
→ Claude calls search_sessions(query="authentication")search_semantic
Semantic search to find conceptually similar conversations.
"Find conversations similar to database optimization"
→ Claude calls search_semantic(query="database optimization")list_sessions
List recent sessions with summaries.
"What did I work on last week?"
→ Claude calls list_sessions(days=7)get_session
Get full context from a specific session.
"Show me the full conversation from session abc123"
→ Claude calls get_session(session_id="abc123")rebuild_index
Force rebuild the search index (usually not needed).
"Rebuild the conversation index"
→ Claude calls rebuild_index()How It Works
Indexing - On startup, the server scans
~/.claude/projects/for JSONL session filesFTS5 - Messages are indexed in SQLite with full-text search
Embeddings - Using
sentence-transformers/all-MiniLM-L6-v2(runs locally)Incremental - Only new sessions are indexed after first run
Data Storage
~/.claude/mcp-servers/conversation-history/
└── data/
├── index.db # SQLite with FTS5 (keyword search)
└── chroma/ # ChromaDB (semantic search embeddings)Your conversation history stays in ~/.claude/projects/ - this server only creates a search index.
Privacy
No external API calls - Embeddings generated locally
No data leaves your machine - Everything stays in
~/.claude/Read-only access - Server only reads session files, never modifies them
Development
# Run server directly for testing
python server.py
# Run tests
pytest tests/License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceA zero-dependency MCP server that enables searching and reading local Claude Code and Codex chat sessions, supporting full-text search, grep, and knowledge indexing from chat history.Last updated1512MIT
- Alicense-qualityDmaintenanceAn MCP server that enables semantic and keyword search over Claude Code conversation history stored locally, using hybrid search, local embeddings, and time-decay scoring.Last updated25MIT
- AlicenseAqualityDmaintenanceAn MCP server that indexes Claude Code conversation history into SQLite, enabling full-text search across past sessions for context recovery and cross-agent observability.Last updated103MIT
- AlicenseAqualityCmaintenanceA local MCP server that indexes and searches your past Claude sessions using SQLite FTS5. No cloud, runs entirely on your machine.Last updated3MIT
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
An MCP server that gives your AI access to the source code and docs of all public github repos
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SDillon001/conversation-history-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server