AI Session Search logo

AI Session Search

Search, inspect, recover, and resume local AI coding-agent sessions through an MCP interface.

Install AI Session Search

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ai-session-search": {
      "command": "uvx",
      "args": [
        "--from",
        "ai-session-search",
        "aise"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio ai-session-search -- uvx --from ai-session-search aise

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx --from ai-session-search aise

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ai-session-search MCP server connects AI clients to a shared index of local coding-agent transcripts from Claude, Codex, Cursor, Gemini CLI, and other supported providers. It runs as the `mcp serve` subcommand of the `aise` executable and exposes session, message, resume, index, skill, and read-only SQL query tools. Reach for it when an agent needs to recover earlier context, investigate a failed run, locate file history, or inspect subagent work without manually browsing transcript files. Queries can refresh the index as needed, while an existing-only mode supports read-only access to the current SQLite index.

Use cases

  • Find messages from a failed or blocked coding-agent run
  • Recover an earlier version of a project file
  • Inspect subagent sessions and delegation results
  • Resume a previous coding-agent session
  • Search project history across multiple AI clients

Key features

  • Shared index across supported local AI-agent transcripts
  • Session, message, and file-history search
  • MCP tools for context retrieval and session resumption
  • Subagent and parent-session filtering
  • Read-only SQL access to the session index
  • Optional index refresh and status inspection

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 21d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · ai-session-search (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars81Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How AI Session Search works

What ai-session-search does

ai-session-search provides an MCP interface for searching local AI coding-agent history. It uses one index across transcripts from Claude Code, Claude Desktop local agent, Codex, Cursor, Antigravity, Pi, Prime Agent, Google AI Studio, and Gemini CLI. The same indexed data is also available through the aise command-line tool, Rust library, and Python API.

The indexed records can help locate an earlier prompt, inspect the messages around a failure, recover versions of a file, identify why an agent stopped or became blocked, and find work performed by subagents. Session-level searches, message searches, file history, exports, analysis, and explicit reindexing are available through the CLI; MCP focuses on querying the index and returning context to the connected client.

How it works

The MCP process is started with aise mcp serve and communicates with a client over stdio. Installation can register it with detected agent harnesses through aise integrations install. The installer writes the configuration and, for some harnesses, additional guidance or skills in the locations those harnesses use. A --client option limits installation to selected harnesses, and --dry-run previews changes.

Searches use a shared local index that can refresh when a query runs. Use the --index-refresh existing-only behavior when the client should read the existing SQLite index without refreshing it. The server can report index status and effective paths, while aise doctor helps inspect index health and parsing warnings outside the MCP interface.

The MCP tools use closed input schemas, so misspelled fields fail with the relevant argument path. Large message searches can be paged by using a result limit and following the returned next offset. Session and message results preserve provenance information useful when sender attribution is uncertain.

Setup and configuration

Install the executable with either of these approaches:

bash
uv tool install ai-session-search

or:

bash
cargo install ai-session-search --locked

Then register the MCP server with detected harnesses:

bash
aise integrations install

Use aise integrations status to inspect registrations. The direct server command is:

bash
aise mcp serve

The project supports macOS, Linux, and Windows. Installation rollback preserves a recovery receipt and prints an aise integrations recover command if cleanup cannot complete automatically.

Tools and capabilities

The MCP interface exposes:

  • search_sessions for finding relevant sessions.
  • search_messages for searching individual messages with filters such as session, role, and result limits.
  • list_sessions for listing sessions by criteria such as project path, time window, or session kind.
  • get_session for reading a session and surrounding context.
  • get_resume_command for obtaining a command to continue a prior session.
  • get_index_status for checking index state.
  • run_skill_capability for invoking an indexed skill capability.
  • query_session_index for read-only SQL queries.

Indexed content can include human input, generated text, tool-related records, file mentions, attachments, memory, plans, harness notices, and file history, depending on the source format. Harness notices are searchable with the appropriate kind filter. Subagent sessions can be listed separately and narrowed to the children of a parent session.

Outside MCP, aise supports file extraction, file-version history, Markdown export, interactive browsing, correction searches, repeat reports, and explicit reindexing. File recovery writes to a .recovered sibling when using the restore flow rather than overwriting the existing file.

Limitations and notes

The index is built from local transcripts, so results depend on the records available from each supported harness. Some older Claude Code entries may lack sender attribution; those rows are excluded from default correction-oriented results unless unattributed input is explicitly included. Parsing warnings can occur for unrecognized record types, malformed attachments, or skipped binary payloads.

Correction categories are a small fixed starter set and may not match every way a correction was phrased. For broad investigation, search the recorded input and read matching messages with context. A query can write index state while refreshing; use existing-only mode when read-only access to the current index is required.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AI Session Search

ai-session-search is an MCP server that connects AI clients to a local index of coding-agent transcripts from Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, and other supported providers. Its main tools search sessions and messages, list and read sessions, retrieve resume commands, check index status, run skills, and issue read-only SQL queries.

Install the `aise` executable with `uv tool install ai-session-search` or `cargo install ai-session-search --locked`, then run `aise integrations install`. Use `aise mcp serve` for direct stdio use, and `aise integrations status` to inspect registered harnesses.

It indexes local transcripts from Claude Code, Claude Desktop local agent, Codex, Cursor, Antigravity, Pi, Prime Agent, Google AI Studio, and Gemini CLI. The indexed data is shared across the CLI, MCP server, Rust library, and Python API.

Yes. Cursor is one of the harnesses supported by the integration installer, which writes MCP configuration for it. Cursor session transcripts are also among the provider histories that the shared index can search.

Use `list_sessions` to find relevant sessions, `search_messages` to locate recorded input or other messages, and `get_session` to read a match with surrounding context. For large results, set a limit and follow the returned `page.next_offset`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAI Session Search AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ai-session-search?style=directory)](https://allmcps.com/mcp/ai-session-search)
HTML Embed
<a href="https://allmcps.com/mcp/ai-session-search"><img src="https://allmcps.com/api/badge/ai-session-search?style=directory" alt="AI Session Search on AllMCPs" /></a>