Local stdio MCP server exposing unified Claude chat history (claude.ai export + Claude Code sessions) as ranked, scoped, structured search.
Project description
claude-archive-mcp
Local stdio MCP server that exposes your unified Claude chat history (claude.ai export + Claude Code sessions) to Claude Code as ranked, scoped, structured search.
Status: v0.8.0 · Author: Mike Andersen · License: MIT
When you reference past work — "did we settle this in nortam_dev last month?", "find the TAP routing analysis", "what did Claude Code commit on April 14?" — Claude Code reaches for this server instead of asking you to summarize.
Two sources, one index
| Source | source |
Origin |
|---|---|---|
| claude.ai export | claude_ai |
~/.claude/Exported_Chats/conversations.json + projects/ |
| Claude Code sessions | claude_code |
~/.claude/projects/**/*.jsonl |
Both feed one conversations table; the same tools search across both.
Tools
search_chats · get_chat · list_projects · list_recent_chats ·
search_within_chat · archive_stats · timeline · find_related_chats ·
get_digest — all read-only, all source-aware.
See docs/TOOLS.md. The server also exposes a per-project resource
(claude-archive://project/{source}/{identifier}) — a dynamic markdown project overview.
Digest: get_digest (tool) or python scripts/digest.py --weekly (also /digest) — a
markdown activity recap over a rolling daily/weekly window; both share one aggregator.
Semantic search (optional): find_related_chats ranks conversations by embedding
cosine. It needs the optional extra — pip install -e .[embeddings], then
python scripts/embed.py --backfill (also /embed). The server itself stays inference-free.
Install
See docs/INSTALL.md. In short (Windows, PowerShell 7):
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .[dev]
python scripts\reindex.py # build the index from both sources
python scripts\install_mcp.py # register the server in ~/.claude.json
Then start a new Claude Code session and ask away (see INSTALL.md for details).
Documentation
docs/INSTALL.md— Windows install walkthroughdocs/TOOLS.md— per-tool reference + examplesdocs/ARCHITECTURE.md— design + rationaledocs/SOURCES.md— how each source is parsed, edge casesCHANGELOG.md
Development
pip install -e .[dev]
ruff check .
ruff format --check .
mypy --strict src/
pytest
Conventions live in CLAUDE.md. The project is built in gated
phases; do not chain past a phase gate.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_archive_mcp-0.8.0.tar.gz.
File metadata
- Download URL: claude_archive_mcp-0.8.0.tar.gz
- Upload date:
- Size: 207.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a31ec0002ffb6c1047cffb79d875f577b4cd5eb7adee400768ca2d3121bbba3
|
|
| MD5 |
c04100e6c7d6256ea96baf30a4eaaa77
|
|
| BLAKE2b-256 |
41b0f45c862e0fb72562a26a6c4098ab15e1d1782a934251d4408a9d46c28b90
|
File details
Details for the file claude_archive_mcp-0.8.0-py3-none-any.whl.
File metadata
- Download URL: claude_archive_mcp-0.8.0-py3-none-any.whl
- Upload date:
- Size: 66.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67678b63fa0a32d541acfd993ee2d062fd5aee40e14f52950dc62548a8abc6de
|
|
| MD5 |
551f3b0b0a82262d528c2ea1eb1ae5a4
|
|
| BLAKE2b-256 |
619e30ad857a92987323c2fa0040ea6438e9d96622711c091e119619d6ecd574
|