Skip to main content
Glama
Stefan-Nitu

MCP Claude Code Conversation History

by Stefan-Nitu

claude_code_conversation_history

Search all past Claude Code conversations using keyword queries, project filters, or date ranges. List session history, view stats, and read full transcripts to recover context from previous work.

Instructions

Search across ALL past Claude Code conversations, not just the current one.

vs git log/memory: This searches actual conversation content across every project and session. Git log only shows commits, memory only stores what was explicitly saved.

Use when: User asks about past work, previous sessions, "what did we do", "remember when", or anything from a different Claude Code conversation. Always use this first, not git log.

Actions:

  • stats: Overview of all conversations and projects

  • list: Browse by project/date (optional: project, after, before, limit)

  • search: BM25 keyword search (requires: query, optional: project, limit)

  • read: Read conversation (requires: session_id). Browse mode: paginate with offset/limit, messages truncated to 500 chars with contentLength. Focus mode: use limit=1 for full content. Grep mode: pass query to find matching messages with ±2 surrounding context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoOnly show conversations after this ISO date
limitNoMaximum number of results
queryNoSearch keywords (required for search, optional for read to grep within a conversation)
actionYes
beforeNoOnly show conversations before this ISO date
offsetNoSkip first N messages (for read)
projectNoFilter by project name (partial match)
session_idNoSession ID from search/list results (required for read)
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully carries the behavioral burden. It reveals key behaviors: global search scope, BM25 keyword search, message truncation to 500 chars with contentLength, and distinct modes (browse/focus/grep) with their pagination and filtering semantics. This goes far beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: it opens with the core purpose, then contrasts with alternatives, gives concrete use cases, and breaks down each action with its parameters and modes. Every sentence provides useful information, avoiding redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers all actions, their required and optional parameters, and special modes, making it highly usable. However, since there is no output schema, it does not fully describe the return structure for stats/list results, leaving a minor gap in expected output understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 88% schema coverage, the description adds contextual meaning that the schema lacks, such as 'search requires query', 'read requires session_id', and how offset/limit interact in browse mode or how limit=1 enables focus mode. This explains parameter combinations and conditional usage effectively.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Search across ALL past Claude Code conversations, not just the current one.' This uses a specific verb (Search) and resource (conversations), and immediately distinguishes it from the current conversation and from alternatives like git log and memory.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes a dedicated 'Use when:' section that lists concrete triggers ('User asks about past work, previous sessions, "what did we do", "remember when"'), and explicitly states 'Always use this first, not git log,' providing clear when-to-use and when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/Stefan-Nitu/mcp-claude-code-conversation-history'

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