claude-sessions-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., "@claude-sessions-mcplist my Claude Code projects"
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.
claude-code-sessions
Browse, search, rename, split, and clean up Claude Code sessions — via MCP server, Web UI, or VSCode extension.
Note: This is a community project and is not affiliated with or endorsed by Anthropic.
Packages
Package | Version | Description |
Core library | ||
Web UI | ||
MCP server | ||
VSCode extension |
Installation
Stable (@latest)
# MCP Server
claude mcp add claude-sessions -- npx claude-sessions-mcp
# Web UI
npx @claude-sessions/webOr add MCP server directly to ~/.claude.json:
{
"mcpServers": {
"claude-sessions": {
"command": "npx",
"args": ["claude-sessions-mcp"]
}
}
}Beta (@beta)
# MCP Server
claude mcp add claude-sessions -- npx claude-sessions-mcp@beta
# Web UI
npx @claude-sessions/web@betaOr add MCP server directly to ~/.claude.json:
{
"mcpServers": {
"claude-sessions": {
"command": "npx",
"args": ["claude-sessions-mcp@beta"]
}
}
}Development
# Install dependencies
corepack enable
pnpm install
# Dev server
pnpm dev # Web UI
pnpm dev:mcp # MCP server
# Build
pnpm build # All packages
pnpm build:core # core only
pnpm build:mcp # mcp only
pnpm build:web # web onlyFeatures
Project Listing
Browse Claude Code project folders with expandable tree view, sorted by summary time or name.

Session Management
List, rename, delete, and split sessions. Hover to see session details with tooltip.

Message Viewer
View messages with tab interface. Inspect user/assistant turns, tool calls, and thinking blocks.

Search
Search sessions by title across all projects.

Cleanup
Remove empty sessions, orphan agents, and orphan todos with preview before execution.

VSCode Extension

Web UI

MCP Tools
Tool | Description |
| List Claude Code projects |
| List sessions in a project |
| Rename a session |
| Delete session (moves to backup folder) |
| Delete message and repair UUID chain |
| Preview sessions to be cleaned |
| Clear empty sessions and invalid messages |
| Get files changed in a session |
| Split session at a specific message |
| Start Web UI |
| Stop Web UI |
Tech Stack
Core: TypeScript + Effect-TS
MCP Server: @modelcontextprotocol/sdk
Web UI: SvelteKit + Svelte 5 + TailwindCSS
Build: tsup + Vite
Package Manager: pnpm (monorepo)
License
MIT
This server cannot be installed
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
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/es6kr/claude-code-sessions'
If you have feedback or need assistance with the MCP directory API, please join our Discord server