mcp-sessions
Search and browse Claude Code conversation history across all your projects.
README
mcp-sessions
Search and browse Claude Code conversation history across all your projects.
Features
- Cross-project search — search sessions in any project, not just the current one
- Smart project resolution — use short names (
myapp), full paths, or*for all projects - Full-text search — AND-matching across sessions with snippet context
- Git integration — see commits made during a session
- System tag filtering — strips Claude Code internal tags from displayed content
Tools
| Tool | Description |
|---|---|
sessions_projects |
List all projects with session history |
sessions_list |
List recent sessions (by project) |
sessions_search |
Full-text search with snippets |
sessions_by_file |
Find sessions mentioning a file |
session_summary |
Session overview: dates, messages, files |
session_diff |
Git commits during a session |
session_messages |
Read raw messages from a session |
Install
git clone https://github.com/yurich-ru/mcp-sessions.git
cd mcp-sessions
chmod +x setup.sh
./setup.sh
The setup script will print the JSON config to add to your ~/.claude.json.
Manual setup
python3 -m venv venv
./venv/bin/pip install -r requirements.txt
Add to ~/.claude.json:
{
"mcpServers": {
"sessions": {
"type": "stdio",
"command": "/path/to/mcp-sessions/venv/bin/python",
"args": ["/path/to/mcp-sessions/server.py"]
}
}
}
Restart Claude Code.
Usage examples
From Claude Code, the tools are available automatically:
- "Show my recent sessions" →
sessions_list - "Search our conversations about auth" →
sessions_search(query="auth") - "Find discussions about auth in project backend" →
sessions_search(query="auth", project="backend") - "Search all projects for deploy issues" →
sessions_search(query="deploy", project="*") - "What projects have session history?" →
sessions_projects
Environment variables
| Variable | Default | Description |
|---|---|---|
CLAUDE_SESSIONS_DIR |
~/.claude/projects |
Directory where Claude Code stores session files |
How it works
Claude Code stores conversation history as JSONL files in ~/.claude/projects/<project-name>/. Each project directory name is derived from the filesystem path (e.g., /home/user/myapp → -home-user-myapp).
This server reads those files and provides search/browse tools via the MCP protocol.
Requirements
- Python 3.10+
mcppackage (installed automatically)- Claude Code (session files must exist in
~/.claude/projects/)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.