sessions-mcp
MCP server for sharing, searching, and pulling AI coding-agent sessions (Claude Code and Codex) directly from the agent, with automatic capture and link-based sharing.
README
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. From a checkout of this repo:
./install.sh
That registers the MCP server and (for Claude Code) a hook so the agent offers to share your work at
natural stopping points, plus /share-session and /find-session slash commands. Start a new
agent session afterward.
Codex: add to ~/.codex/config.toml:
[mcp_servers.sessions]
command = "node"
args = ["/absolute/path/to/this/repo/dist/sessions-mcp.mjs"]
Then just ask your agent: "share this session" or "find my session about X."
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, secrets are scrubbed before storage, and hosted copies expire after ~30 days. 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 test
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
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.