conversation-history-mcp

conversation-history-mcp

A local MCP server that indexes and searches your Claude Code conversation history with both keyword and semantic search, fully private and running locally.

Category
Visit Server

README

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

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 below

Configuration

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

  1. Indexing - On startup, the server scans ~/.claude/projects/ for JSONL session files
  2. FTS5 - Messages are indexed in SQLite with full-text search
  3. Embeddings - Using sentence-transformers/all-MiniLM-L6-v2 (runs locally)
  4. 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured