Skip to main content
Glama
Gunther-Schulz

claude-session-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_projectsA

List all Claude Code projects that have session history.

Returns project slugs (derived from directory paths), session counts, and total size.

list_sessionsA

List sessions for a project, sorted by most recent first.

Args: project: Project slug to filter by. Empty for all projects. limit: Maximum sessions to return (default 20). offset: Skip first N sessions for pagination.

searchA

Full-text search across Claude Code session history.

Searches conversation text (user and assistant messages) with fork awareness. Returns matches with surrounding conversational context and branch info.

Args: query: Search text (case-insensitive substring match). project: Project slug to filter by. Empty for all projects. max_results: Maximum results (default 10, max 50). include_subagents: Also search subagent session files.

get_treeA

Get the conversation tree structure for a session.

Shows fork points, branch summaries, compaction boundaries, and leaf nodes. Use this to understand the structure before navigating with get_thread or get_forks.

Args: session_id: Session UUID (or prefix). project: Optional project slug to narrow lookup.

get_threadA

Get a conversation thread (root-to-leaf path through the tree).

Only includes user and assistant messages. Supports pagination for long threads.

Args: session_id: Session UUID (or prefix). leaf_uuid: UUID of the leaf node. Empty for the primary (latest) thread. project: Optional project slug. offset: Skip first N messages for pagination. limit: Max messages to return (default 50, max 200). include_tool_calls: Show tool names used in assistant messages.

get_forksA

Get fork points in a session with diverging branch details.

Shows where conversations branched (retries, edits) and which branch the user continued with (primary) vs abandoned.

Args: session_id: Session UUID (or prefix). project: Optional project slug. fork_uuid: Show only this specific fork point. Empty for all forks.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/Gunther-Schulz/claude-session-mcp'

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