
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
claude-code-conversation-search-mcp
Advanced tools
Never lose your Claude Code conversations again. Search across all projects, find old chats, and resume where you left off.
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.
npm install -g claude-code-conversation-search-mcp
Find any conversation across all projects:
"where did we discuss the database issue?"
"find that authentication conversation"
"docker configuration we talked about yesterday"
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:
npm install -g claude-code-conversation-search-mcp
Search across all projects while working in any project.
# Find lost conversations
"where did we discuss the login bug?"
"find that Docker conversation"
"database setup we talked about"
# Search by what you remember
"authentication error we fixed"
"API endpoint discussion yesterday"
"performance issue last week"
# Find solutions from other projects
"how did we solve CORS issues?"
"Redis configuration that worked"
"deployment script we wrote"
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:
# Instead of:
cd '/Users/username/very/long/path/to/project'
# You get:
cd ~/.cs/project-name
Built with TypeScript, uses SQLite FTS5 for search, integrates via Model Context Protocol.
System requirements:
Performance:
Storage:
~/.claude/conversation-search/# Clone the repository
git clone https://github.com/TonySimonovsky/claude-code-conversation-search-mcp.git
cd claude-code-conversation-search-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Optional: Link globally
npm link
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)
# Add globally for all projects
claude mcp add conversation-search claude-code-conversation-search-mcp
# Add for current project only (creates .mcp.json)
claude mcp add --scope project conversation-search claude-code-conversation-search-mcp
Option 2: Edit Configuration Files Directly
Global configuration (all projects):
# Edit the global Claude Code config (run from anywhere)
nano ~/.claude.json
# Or use your preferred editor: code ~/.claude.json
{
"mcpServers": {
"conversation-search": {
"command": "claude-code-conversation-search-mcp",
"args": []
}
}
}
Project-specific configuration (team-shared):
# Create project config file (run from project root)
nano .mcp.json
# Or: code .mcp.json
{
"mcpServers": {
"conversation-search": {
"command": "claude-code-conversation-search-mcp",
"args": []
}
}
}
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:
search_conversations("Where did we create auth.js?")
search_conversations("database optimization last week")
search_conversations("TypeError in index.ts")
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:
list_projects()
Returns project names, message counts, and last activity dates.
Retrieve full context around a specific message:
get_message_context("msg_abc123", contextSize: 5)
Parameters:
messageId (required): The message ID to get context forcontextSize (optional): Number of messages before/after (default: 5)Retrieve messages from a specific conversation:
get_conversation_messages("conv_456", limit: 50, startFrom: 0)
get_conversation_messages("conv_456", limit: 10, startFrom: -1) # Last 10 messages
get_conversation_messages("conv_456", limit: 20, startFrom: -10) # 20 messages starting from 10th from end
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:
list_tools()
Returns automatically generated tool signatures and descriptions. Updates automatically when new tools are added.
Manually trigger re-indexing:
refresh_index()
Useful after adding new projects or when auto-indexing is disabled.
Show server version, changelog, and system information:
get_server_info()
Displays current version, recent changes, system status, and available tools.
Our built-in query parser supports sophisticated natural language patterns:
# Find specific file operations
"Where did we create or modify authentication files?"
# Search by multiple criteria
"database migrations in project backend last week"
# Find specific error patterns
"TypeError or ReferenceError in React components"
# Search tool operations
"bash commands containing npm or yarn"
# Find code discussions
"Where did we discuss implementing caching?"
"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"# Clone and install
git clone <repository>
cd claude-code-conversation-search-mcp
npm install
# Run in development mode with hot reload
npm run dev
# Run tests
npm test
# Build for production
npm run build
src/
├── index.ts # MCP server entry point
├── indexer/
│ ├── parser.ts # JSONL conversation parser
│ ├── database.ts # SQLite database operations
│ └── indexer.ts # Indexing orchestration
├── search/
│ └── query.ts # Natural language query parser
└── types/
└── index.ts # TypeScript type definitions
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)If the search index becomes corrupted:
# Remove the database file
rm ~/.claude/conversation-search.db
# Restart Claude Code to trigger re-indexing
For large conversation histories:
INDEX_INTERVAL to reduce indexing frequencyMAX_RESULTS to limit result sizeEnable debug logging to troubleshoot issues:
{
"mcpServers": {
"conversation-search": {
"command": "npx",
"args": ["claude-code-conversation-search-mcp"],
"env": {
"DEBUG": "true"
}
}
}
}
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:
FAQs
Never lose your Claude Code conversations again. Search across all projects, find old chats, and resume where you left off.
The npm package claude-code-conversation-search-mcp receives a total of 68 weekly downloads. As such, claude-code-conversation-search-mcp popularity was classified as not popular.
We found that claude-code-conversation-search-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.