sessions-mcp
This server manages, searches, shares, and reuses your AI coding-agent sessions (Claude Code, Codex) automatically. Every session is captured, summarized, and kept private by default, with sensitive data like API keys scrubbed. From your agent you can:
List recent sessions: View your latest sessions after local logs are synced.
Semantic search: Find sessions by meaning (e.g., “retries” matches “exponential backoff”), with ranked results and one-line explanations.
Share a session: Generate a public, revocable link so others can view and pull the full transcript (only on explicit request).
Unshare a session: Instantly revoke access to a previously shared session.
Pull a shared session: Import a shared session (via link or token) into the current conversation to continue or build on existing work; long sessions return a summary first, with the option to fetch the full transcript.
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., "@sessions-mcpfind my session about fixing the flaky auth test"
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.
sessions-mcp
Search, share, and pull your AI coding-agent sessions — Claude Code and Codex — from inside the agent itself. A small MCP server: no account, no signup, one-command install.
Share the current session as a link. Anyone with the link can view it and pull the full session into their own agent to build on it.
Automatic capture: every session is uploaded + summarized on its own — you never have to remember to save. Sharing stays explicit.
Search your past sessions by meaning ("how did I fix that flaky auth thing") — not just keywords.
Pull a shared session into your current one to continue where someone left off.
Install (one command)
You keep using Claude Code / Codex exactly as-is.
Needs: node ≥ 18, and at least one of Claude Code / Codex / mo. macOS and Linux.
(The installer is POSIX sh and takes curl or wget, so it needs nothing else — bare Alpine works.)
Don't assume your agent already brought node: Claude Code's native install and mo are standalone
binaries, so only an npm-installed Codex guarantees it. The server needs node at runtime too — it
runs on every session, not just at install. 18 is the floor because the client uses global fetch;
the installer refuses anything older, since on node 16 it would install cleanly and then fail every
upload from inside a hook where the error is never seen.
curl -fsSL https://raw.githubusercontent.com/danielamiao/sessions-mcp/main/install.sh | shOr from a checkout, which installs the bundle you just built instead of downloading one:
./install.shEither way the server lands at ~/.sessions-mcp/sessions-mcp.mjs and the config points there, so
you can delete the checkout afterwards. Re-running is safe, and switches an existing install to the
current path rather than leaving a stale one behind.
The installer wires whichever harnesses it finds — it doesn't require any particular one:
what it does | |
Claude Code | registers the MCP server at user scope, wires the capture hooks, adds |
mo | registers the server in |
Codex | prints the |
Start a new agent session afterward.
Piping a script into
bashmeans running whatever that URL serves today. This one has no CI and the bundle it fetches is a hand-built artifact committed to the repo, so nothing signs or reproduces it — readinstall.shfirst if that matters to you, or clone and use the checkout path.
Then just ask your agent: "share this session" or "find my session about X."
Related MCP server: codemem
What it does with your data
This talks to a small hosted backend. When you share a session, its full transcript becomes
readable and pullable by anyone with the link — treat a share link like a public paste. Captured
sessions are private to your (anonymous) token until you share them, and hosted copies expire after
~30 days. Obvious key shapes (sk-ant-…, sk-…, gwk_live_…, AKIA…, Bearer …) are scrubbed on
your machine before upload, and again server-side — but pattern-matching only catches what it
recognises, so it is a backstop, not a guarantee. This is a personal project shared as-is (see the
LICENSE) with no warranty — don't put anything you couldn't paste into a public gist.
Point it at a different backend with SESSIONS_MCP_URL if you run your own.
Build from source
npm install && npm run build && npm run bundle # produces dist/sessions-mcp.mjs
npm testMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityCmaintenanceMCP server for sharing source-backed engineering memory across AI coding clients like Cursor and VS Code.Last updated301MIT
- Alicense-qualityAmaintenancePersistent memory MCP server that captures coding session context and automatically injects relevant memories into prompts using hybrid search for OpenCode and Claude Code.Last updated61MIT
- Alicense-qualityDmaintenanceMCP server that provides a shared semantic memory layer for AI coding agents, enabling teams to store, search, and sync context, decisions, and knowledge across projects with project-based isolation and multi-backend support.Last updated1MIT
- Alicense-qualityCmaintenanceMCP server providing RAG context and failure capture for Claude Code, enabling semantic search across project knowledge and storing/analyzing failures.Last updated1MIT
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
StremAI MCP: shared memory for AI coding agents. Connected agents can recall. OAuth + local stdio.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/danielamiao/sessions-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server