Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Search Claude Code conversation history with natural language queries across all projects
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"claude-code-conversation-search": {
"command": "npx",
"args": [
"-y",
"claude-code-conversation-search-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add claude-code-conversation-search -- npx -y claude-code-conversation-search-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"claude-code-conversation-search": {
"command": "npx",
"args": [
"-y",
"claude-code-conversation-search-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"claude-code-conversation-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"claude-code-conversation-search-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 TonySimonovsky 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.1.3)于14个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
For optimal search results and better Claude Code interaction, add these instructions to your global ~/.claude/CLAUDE.md file:
# Add to ~/.claude/CLAUDE.md
echo "- When asked to use conversation-search, you must start searching from very wide queries, narrowing down step by step. When responding based on this mcp results output a human readable text with proper newlines instead of formatting json." >> ~/.claude/CLAUDE.md
Why this helps:
# Find lost conversations
"where did we discuss the login bug?" "find that Docker conversation" "database setup we talked about"
"authentication error we fixed" "API endpoint discussion yesterday" "performance issue last week"
"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'
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
npm install
npm run build
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
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
{
"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
{
"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](docs/configuration.md)
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?"
"database migrations in project backend last week"
"TypeError or ReferenceError in React components"
"bash commands containing npm or yarn"
"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 cd claude-code-conversation-search-mcp npm install
npm run dev
npm test
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
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" } }
只显示了开头部分;其余内容请在仓库中阅读