history-archive
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AI History Hub
English | 日本語
A local-first unified conversation history archive, browser viewer GUI, and MCP search server for multiple AI coding tools.
AI History Hub incrementally indexes conversation logs from Claude Code, Codex CLI, Antigravity CLI, Zoo Code, SyncStrata, and more into a single local SQLite database (history/history.db) strictly read-only on your original logs — so you can search and browse your entire cross-tool history from either the local web console or any MCP-compatible AI agent.
The GUI is optional — the MCP server works completely standalone. You never have to leave or replace the AI tools you already love.

Screenshots
Captured using synthetic dummy data (switch between 4 themes anytime from COLOR in the top-right bar).
R4 AMBER (Full-text Search & Snippets)

CREAM (Light Theme & Cross-Tool Viewer)

Related MCP server: transcripts-mcp
Highlights
Non-invasive & read-only on source logs: Never modifies or deletes original tool logs. Archived conversations remain searchable even if cleared inside the original app.
Fast incremental sync: Uses file size +
mtime_nssignatures so subsequent syncs only re-parse newly added or modified conversations.Zero third-party dependencies for core features: Both the viewer GUI (
gui/server.py) and core history sync (history/history_store.py) run on Python 3.11+ standard library only.Built-in stdio MCP server (
history/server.py): Exposessearch_history,list_conversations,read_conversation, andsync_historyto any MCP client.R4-style local viewer GUI (
gui/): 4 themes (DARK AMBER/R4 AMBER/CHARCOAL/CREAM), instant full-text search (SQLite FTS5 trigram with automaticLIKEfallback), and one-clickSYNCfrom the browser.Cross-platform: Windows / macOS / Linux.
Supported History Sources
Source key ( | Tool | Notes |
| Claude Code | Reads |
| Codex CLI | Reads |
| Antigravity CLI | Reads |
| Zoo Code / Roo-compatible | Reads VS Code globalStorage |
| SyncStrata | Optional |
Any source whose directory does not exist on your machine is safely skipped.
Requirements
Python 3.11+
Optional packages (
pip install -r requirements.txtonly if needed):mcp>=1.0.0— required only for running the MCP server (history/server.py)zstandard>=0.22.0— required only for importing SyncStrata (.zstd) logs
Quick Start
1. Open the Local Viewer GUI
Download/extract this folder and launch the GUI for your OS. On first launch (empty archive), click ⟳ SYNC in the top-right corner to import your local logs:
Windows: Double-click
gui/open_gui.bat(or runpython gui/server.py)macOS: Double-click
gui/Open_GUI.command(or runbash gui/open_gui.sh)Linux: Run
bash gui/open_gui.sh(automatically prints the URL on headless machines)
CLI options:
python gui/server.py --port 8765 # Custom port (default: 8765)
python gui/server.py --no-open # Do not auto-open browser
python gui/server.py --no-sync # Disable SYNC button (strictly read-only server)2. Sync via CLI (Without Opening the GUI)
Windows:
history/sync_history.bat(orpython history/history_store.py)macOS / Linux:
bash history/sync_history.sh
Quick CLI search test:
python history/history_store.py search "your keyword"3. Use as an MCP Server (GUI Optional)
Install the MCP SDK once:
pip install mcpThen register history/server.py in your preferred AI client.
(On Windows, use forward slashes like C:/path/to/ai-history-hub/history/server.py or escaped backslashes C:\\path\\to\\... in JSON/TOML.)
Claude Code
Via CLI:
claude mcp add history-archive -- python /path/to/ai-history-hub/history/server.pyOr in ~/.claude.json:
{
"mcpServers": {
"history-archive": {
"type": "stdio",
"command": "python",
"args": ["/path/to/ai-history-hub/history/server.py"]
}
}
}Codex CLI (~/.codex/config.toml)
[mcp_servers.history-archive]
command = "python"
args = ["/path/to/ai-history-hub/history/server.py"]
# Optional: place history.db anywhere you like
# [mcp_servers.history-archive.env]
# AI_HISTORY_HUB_DB = "/path/to/history.db"Antigravity CLI (~/.gemini/config/mcp_config.json)
{
"mcpServers": {
"history-archive": {
"command": "python",
"args": ["/path/to/ai-history-hub/history/server.py"]
}
}
}Claude Desktop / Cursor / Roo Code / Zoo Code (Generic mcpServers JSON)
{
"mcpServers": {
"history-archive": {
"command": "python",
"args": ["/path/to/ai-history-hub/history/server.py"],
"env": {
"AI_HISTORY_HUB_DB": "/optional/path/to/history.db"
}
}
}
}Exposed MCP Tools
search_history(query, source="", include_tools=True, limit=20)— Full-text search across all archived conversationslist_conversations(source="", keyword="", limit=30)— List recent conversations filtered by source or title/workspace keywordread_conversation(conversation_id, offset=0, limit=40, include_tools=False)— Read conversation messages page by pagesync_history()— Run incremental log import intohistory.db
Environment Variable Overrides
Variable | Default | Purpose |
|
| Override the SQLite database location (supports |
|
| Override the |
Customizing hub.json
Edit history_sources in hub.json to toggle sources (enabled) or adjust paths.
Each entry resolves in order: env -> path_windows / path_macos / path_linux -> path. Missing directories are skipped without error.
Security & Privacy
The GUI server binds strictly to
127.0.0.1(localhost only).POST /api/syncrequires both theX-Hub-Action: syncheader and a localOrigincheck to prevent cross-site triggers.history/history.dbstores your personal conversation history — never upload or share it (excluded by.gitignore).
License
MIT License — see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Ingest and search LogsLoom logs from coding agents.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceCentralizes verbatim local AI conversation history into a SQLite database and exposes it via an MCP server, enabling tools like Claude Code and Codex to retrieve exact context from other tools.1 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables searching and reading local Cursor, Claude Code, and Codex session transcripts from any MCP client, with fuzzy, regex, and full-text search, plus optional semantic search.14MIT
- AlicenseNot gradedqualityBmaintenanceExposes a unified local memory of conversations collected from Claude Code, Codex, Cursor, Gemini CLI, ChatGPT, claude.ai and Gemini over MCP, so any connected agent can search past work, browse and read conversations, and save notes that all tools can see. Optionally runs as a self-hosted node for web and mobile apps.3MIT
- AlicenseNot gradedqualityCmaintenanceExposes a local, read-only SQLite archive of past AI chats to MCP clients, letting them run lexical, semantic, or hybrid searches and pull paginated thread and project metadata and text. Indexing and embedding stay on the user's machine, so assistants can recall earlier sessions without sending anything off-device.MIT