Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Claude Code History

БесплатноНе проверен

Search and reference your Claude Code conversation history directly from Claude, with full-text search, conversation viewing, and project browsing.

GitHubEmbed

Описание

Search and reference your Claude Code conversation history directly from Claude, with full-text search, conversation viewing, and project browsing.

README

🤖 Built with Claude Code - This entire project was created through pair programming with Claude Code, demonstrating its capability to build tools that enhance its own functionality!

Search and reference your Claude Code conversation history directly from Claude!

Features

  • 🔍 Full-text search across all your Claude Code conversations
  • 📝 View complete conversations with context
  • 🏷️ Browse by project to see all your work
  • Fast keyword search using SQLite FTS5

Installation

  1. Clone this repository:
git clone https://github.com/tim0120/claude-code-history-mcp.git
cd claude-code-history-mcp
  1. Install dependencies and build:
npm install
npm run build
  1. Add to your Claude Code MCP settings (~/.claude/claude_desktop_config.json):
{
  "mcpServers": {
    "claude-history": {
      "command": "node",
      "args": ["/path/to/claude-code-history-mcp/dist/index.js"]
    }
  }
}
  1. Restart Claude Code

Usage

First Time Setup

When you first use the MCP, you need to index your existing conversations:

Use the tool: index_conversations

This will scan your ~/.claude/projects directory and index all conversations.

Searching Your History

Search for specific errors, code patterns, or topics:

Use the tool: search_history with query: "CORS error"
Use the tool: search_history with query: "database connection"
Use the tool: search_history with query: "TypeError"

Getting Full Conversation Details

After searching, you can get the full conversation:

Use the tool: get_conversation with conversationId: "abc123"

Listing All Projects

See all your indexed projects:

Use the tool: list_projects

How It Works

The MCP:

  1. Reads your Claude Code conversation history from ~/.claude/projects
  2. Indexes conversations in a local SQLite database
  3. Provides full-text search capabilities
  4. Returns relevant snippets and full conversation details

Data Storage

  • Database location: ~/.claude-code-mcp/history.db
  • No data is sent to external services
  • Your conversation history stays local

Roadmap (v2)

  • Semantic search using embeddings
  • Auto-indexing with file watcher
  • Conversation summarization with GPT-4
  • Export/import functionality
  • Search filters (date, project, success/failure)

Contributing

Contributions welcome! Please feel free to submit issues and PRs.

License

MIT

from github.com/tim0120/claude-code-history-mcp

Установка Claude Code History

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/tim0120/claude-code-history-mcp

FAQ

Claude Code History MCP бесплатный?

Да, Claude Code History MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Claude Code History?

Нет, Claude Code History работает без API-ключей и переменных окружения.

Claude Code History — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Claude Code History в Claude Desktop, Claude Code или Cursor?

Открой Claude Code History на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Claude Code History with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development