local-claude-chat-history-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@local-claude-chat-history-mcpsearch for ADX proxy setup"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
local-claude-chat-history-mcp
An MCP server that searches your local Claude conversation history — the sessions Claude stores as files on your own machine.
Source | Location | What it is |
|
| Claude Code CLI/desktop sessions |
|
| Claude Cowork (local agent mode) sessions |
Everything runs locally over stdio — it only reads files already on disk, and nothing is uploaded anywhere.
Handy for questions like:
"What did I work on today / this week?"
"Which session was it where I set up the ADX proxy?"
"When did I last touch the leaderboard caching code?"
Scope — local only. This searches the transcripts Claude writes to disk (Claude Code and Claude Cowork). Your regular claude.ai / Claude Desktop chats are stored in Anthropic's cloud, not locally, so there is no local file for this tool to read and they are intentionally out of scope.
Usage
Claude Code plugin (recommended)
This repo is a Claude Code plugin and its own marketplace. Install it with:
# From GitHub
claude plugin marketplace add daniellmorris/local-claude-chat-history-mcp
claude plugin install local-claude-chat-history@local-claude-chat-history
# Or from a local checkout
claude plugin marketplace add /path/to/local-claude-chat-history-mcp
claude plugin install local-claude-chat-history@local-claude-chat-historyOr interactively inside Claude Code: /plugin marketplace add … then /plugin install local-claude-chat-history.
The plugin runs the bundled server at dist/server.mjs — no npm install needed on the machine that installs it.
For quick testing without installing:
claude --plugin-dir /path/to/local-claude-chat-history-mcpClaude Code (plain MCP server)
claude mcp add claude-history -- npx -y github:daniellmorris/local-claude-chat-history-mcpClaude Desktop / other MCP clients
{
"mcpServers": {
"claude-history": {
"command": "npx",
"args": ["-y", "github:daniellmorris/local-claude-chat-history-mcp"]
}
}
}Related MCP server: mcp-sessions
Tools
search_history
Full-text search across both sources, newest sessions first.
Param | Default | Description |
| — | Case-insensitive substring (or regex with |
|
|
|
| — | Substring filter on project path or session title |
|
|
|
| — | ISO date bounds (e.g. |
| 20 / 3 | Result caps |
Returns matching snippets with sessionIds.
list_sessions
Browse recent sessions (id, title, project, timestamps) with the same source/project filters. Great for "what did I do today".
get_session
Read a full conversation by sessionId, paginated with offset/limit, each message truncated to maxChars.
Configuration
All optional, via environment variables:
Variable | Purpose |
| Override |
| Override the Cowork sessions directory |
Development
npm install
npx @modelcontextprotocol/inspector node index.jsThe plugin ships a dependency-free bundle at dist/server.mjs (committed to the repo). After changing index.js or lib/, rebuild it:
npm run buildLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/daniellmorris/local-claude-chat-history-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server