Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Sessions

FreeNot checked

Search and browse Claude Code conversation history across all your projects.

GitHubEmbed

About

Search and browse Claude Code conversation history across all your projects.

README

Search and browse Claude Code conversation history across all your projects.

Русская версия

License: MIT

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+
  • mcp package (installed automatically)
  • Claude Code (session files must exist in ~/.claude/projects/)

from github.com/Yurich-ru/mcp-sessions

Installing Sessions

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/Yurich-ru/mcp-sessions

FAQ

Is Sessions MCP free?

Yes, Sessions MCP is free — one-click install via Unyly at no cost.

Does Sessions need an API key?

No, Sessions runs without API keys or environment variables.

Is Sessions hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Sessions in Claude Desktop, Claude Code or Cursor?

Open Sessions on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Sessions with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs