Skip to main content
Glama
old-claude-mcp
by sneg55

old-claude-mcp

License Stars Python MCP SQLite

Anthropic lets you export your Claude conversation history but provides no way to import it into a new account. This is a local MCP server that makes the export actually useful — index your old conversations into SQLite and Claude can search them automatically in new sessions.

Background: Claude lets you export your data but won't let you use it

Why

If you switch Claude accounts, lose access to an email address, or just want your old context available going forward, you're stuck with a JSON file you can't do anything with. This tool indexes that file and exposes it as three MCP tools Claude calls automatically during conversations.

Related MCP server: fable MCP server

Setup

1. Export your Claude history

Go to claude.ai → Settings → Export Data. You'll get a ZIP containing conversations.json.

2. Install dependencies

git clone https://github.com/sneg55/old-claude-mcp
cd old-claude-mcp
pip install -r requirements.txt

3. Index your export

python indexer.py ~/Downloads/conversations.json --db history.db

4. Add to Claude Desktop config

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "chat-history": {
      "command": "/usr/local/bin/python3",
      "args": [
        "/path/to/old-claude-mcp/server.py",
        "--db",
        "/path/to/old-claude-mcp/history.db"
      ]
    }
  }
}

Use an absolute path to your Python interpreter. Find it with which python3.

5. Restart Claude Desktop

Usage

Just talk normally. Claude calls the tools automatically when relevant:

  • "What did we decide about X?" → search_history("X") → get_conversation(uuid)

  • "Load context for project Y" → search_history("Y")

  • "Find all conversations about company Z" → search_history("Z")

Tools

Tool

Description

search_history(query, limit?)

Full-text search across all conversations, returns ranked results with snippets

get_conversation(uuid)

Full message thread for a conversation (truncated at 50k chars)

list_conversations(limit?, after?)

Browse conversations by date descending

Adding New Providers

Implement ConversationParser from parsers/base.py and pass it to insert_conversations() in indexer.py. ChatGPT export support (ChatGPTParser) is a natural next step — PRs welcome.

Future

  • Semantic/vector search (ChromaDB + sentence-transformers)

  • ChatGPT export support

  • Incremental indexing for updated exports

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Persistent memory + FTS5 full-text search for Claude Code conversation history. Indexes ~/.claude/projects/ JSONL into SQLite, exposes 10 MCP tools (store/recall/search memories, browse sessions, get summaries) plus prompts. Includes a web UI for visual exploration
      10
      106 npm
      98
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables Claude to search, recall, and remember its own past conversations by indexing them into a local SQLite vault, providing direct access to the full context of previous sessions.
      11
      19
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Local index and hybrid search (SQLite FTS5 + on-device vector KNN) over your AI coding-agent conversation history across 11 tools (Claude Code, Codex, Cursor, and more). Exposes search_threads, search_current_project, recent_threads, get_thread, list_tags, and list_open_todos so any agent can recall its own past work.
      23
      50
      AGPL 3.0
    • F
      license
      A
      quality
      D
      maintenance
      Enables full-text search and browsing of Claude.ai conversation history by ingesting exported conversations into a local SQLite database with FTS5 indexes.
      5
      1
      -