Search Claude Code conversation history with natural language queries across all projects
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Stop losing your Claude Code conversations. Never again ask "where did we discuss that bug fix?" or lose hours of context when your terminal closes.
Find any conversation across all projects:
Get the exact project, date, and command to resume instantly.
The Problem: Claude Code has no conversation search. When you close a terminal or switch projects, finding that important discussion becomes impossible. You're left scrolling through cryptic conversation titles hoping to recognize the right one.
The Solution: Search all your Claude Code conversations from any project session. Ask "where did we discuss authentication?" and instantly get the exact conversation with a resume command.
claude --resume commands to continue where you left offInstall and it auto-configures with Claude Code:
Search across all projects while working in any project.
For optimal search results and better Claude Code interaction, add these instructions to your global ~/.claude/CLAUDE.md file:
Why this helps:
Every search gives you:
cd ~/.cs/project-name && claude --resume abc123The search automatically creates directory shortcuts for faster navigation:
~/.cs/ instead of long project pathscd intopoc-fbf-v023-1-ccExample:
Built with TypeScript, uses SQLite FTS5 for search, integrates via Model Context Protocol.
System requirements:
Performance:
Storage:
~/.claude/conversation-search/After installation, the MCP server auto-configures with Claude Code. No manual configuration needed!
If you need custom configuration, choose one of these approaches:
Option 1: Command Line (Recommended)
Option 2: Edit Configuration Files Directly
Global configuration (all projects):
Project-specific configuration (team-shared):
The MCP server supports extensive configuration through environment variables. Here are the most commonly used options:
| Environment Variable | Description | Default |
|---|---|---|
CONVERSATION_DB_PATH | Path to SQLite database | ~/.claude/conversation-search.db |
CLAUDE_PROJECTS_DIR | Path to Claude projects directory | ~/.claude/projects |
INDEX_INTERVAL | Auto-index interval in milliseconds | 300000 (5 minutes) |
MAX_RESULTS | Maximum search results to return | 20 |
DEFAULT_CONTEXT_SIZE | Default context messages before/after | 2 |
AUTO_INDEXING | Enable automatic indexing | true |
DEBUG | Enable debug logging | false |
π For complete configuration options and performance tuning, see Configuration Guide
Once configured, the following tools are available in Claude Code:
Search through your conversation history with natural language:
Query Examples:
"created auth.js", "edited config.json", "modified database.ts""discuss React hooks", "security review", "performance optimization""TypeError", "CORS error", "undefined variable""npm install lodash", "git commit", "database migration""today", "yesterday", "last week", "this month""in project myapp", "from backend-api"Parameters:
query (required): Natural language search querylimit (optional): Maximum results to return (default: 10)includeContext (optional): Include surrounding messages (default: true)Get all indexed projects with statistics:
Returns project names, message counts, and last activity dates.
Retrieve full context around a specific message:
Parameters:
messageId (required): The message ID to get context forcontextSize (optional): Number of messages before/after (default: 5)Retrieve messages from a specific conversation:
Parameters:
conversationId (required): The conversation ID to get messages fromlimit (optional): Number of messages to return (default: 50)startFrom (optional): Starting position - 0=first, -1=last, -10=10th from end (default: 0)Show all available tools with their signatures:
Returns automatically generated tool signatures and descriptions. Updates automatically when new tools are added.
Manually trigger re-indexing:
Useful after adding new projects or when auto-indexing is disabled.
Show server version, changelog, and system information:
Displays current version, recent changes, system status, and available tools.
Our built-in query parser supports sophisticated natural language patterns:
"auth login" finds messages with both)"auth or login")"auth -test" excludes test-related results)"user authentication")"auth*" matches auth, authentication, etc.)Supported time expressions:
today, yesterdaylast week, this weeklast month, this monthlast 7 days, last 30 days"on 2024-01-15", "since January 1"git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)If the search index becomes corrupted:
For large conversation histories:
INDEX_INTERVAL to reduce indexing frequencyMAX_RESULTS to limit result sizeEnable debug logging to troubleshoot issues:
MIT License - see LICENSE file for details
Built using the Model Context Protocol SDK by Anthropic.
Developed by Tony AI Champ & Claude Code, 09-2025
For issues, feature requests, or questions:
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/claude-code-conversation-search-mcp)<a href="https://allmcps.com/mcp/claude-code-conversation-search-mcp"><img src="https://allmcps.com/api/badge/claude-code-conversation-search-mcp?style=directory" alt="Claude Code Conversation Search Mcp on AllMCPs" /></a>