Skip to main content
Glama

AI History Ingester Daemon & MCP Server

A cross-platform service and Model Context Protocol (MCP) server that watches, ingests, indexes, and searches past chat sessions, agent actions, implementation plans, and artifacts from local AI coding tools (Antigravity IDE, Antigravity CLI, Claude Code, Windsurf, OpenCode, Codex, ChatGPT/Claude exports).


Architecture & Features

  1. Local Disk Recovery (antigravity-local tool):

    • Zero-dependency on external databases. Directly scans and inspects local Antigravity brain sessions (~/.gemini/antigravity-ide/brain and ~/.gemini/antigravity/brain).

    • Supports list, search, get, recover, and artifacts actions.

    • Summarizes file names, sizes, creation, and modification timestamps for artifacts before returning specific file content.

  2. Vector Database Integration (Qdrant):

    • Indexes session transcripts, prompt steps, and agent tool executions into a Qdrant vector database (ai_history).

    • Provides full-text and semantic search across past sessions and tool executions.

  3. Continuous Background Watcher Daemon:

    • Incremental ingestion watching brain/ directories, keeping track of file read offsets in ~/.ai-history-ingest-offsets.json.

  4. Lightweight Web Viewer:

    • Optional browser UI on port 3333 to inspect conversations and tool history.


Related MCP server: callimachus

MCP Configuration

Add the server to your MCP configuration (e.g. ~/.gemini/antigravity-ide/mcp_config.json, ~/.gemini/config/mcp_config.json, or Claude Desktop config):

{
  "mcpServers": {
    "ai-history": {
      "command": "node",
      "args": [
        "/path/to/ai-history-mcp/dist/mcp/server.js"
      ],
      "env": {
        "QDRANT_URL": "http://192.168.2.11:6333",
        "COLLECTION_NAME": "ai_history"
      }
    }
  }
}

Available MCP Tools

Tool

Purpose

Key Parameters

antigravity-local

Direct local filesystem access to Antigravity sessions, transcripts, and artifacts (bypasses Qdrant).

action (list, search, get, recover, artifacts), session_id, query, artifact_name, source

search_ai_chats

Search chats stored in Qdrant vector database.

query, provider, session_id, limit

search_ai_actions

Search past agent tool invocations (bash, file edits, etc.) in Qdrant.

tool_name, limit

get_ingestion_stats

View Qdrant points count, indexed vectors, health status, and local storage stats.

(none)


Running the Ingestion Daemon

Build

npm install
npm run build

Manual / Development

npm run daemon
# or live-reloading:
npm run dev:daemon

Linux (Systemd User Service)

mkdir -p ~/.config/systemd/user/
cp ai-history-daemon.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now ai-history-daemon.service

License

Released into the public domain under the Unlicense.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Indexes and searches agent conversation logs from Antigravity and Cursor workspaces, enabling semantic search, token analysis, and benchmarking over local SQLite storage.
    19
    MIT
  • A
    license
    A
    quality
    A
    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.
    22
    37
    AGPL 3.0
  • A
    license
    A
    quality
    A
    maintenance
    Provides persistent, searchable memory across AI coding agent and chat history (Claude Code, Codex, Gemini CLI, ChatGPT, and more) via retrieval-augmented generation, enabling semantic and hybrid search to retain context across sessions.
    5
    5
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bluscream/ai-history-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server