AI Switch MCP Server
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., "@AI Switch MCP Servercontinue the auth feature work"
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.
AI Switch MCP Server
Open-source MCP server for session continuity across AI coding assistants.
When one assistant runs out of credits, another one can continue with full context from the same persistent session store.
What This Solves
Preserve coding context between Cursor, Claude Code, Claude Desktop, and other MCP clients.
Generate clean handoff markdown + resume prompts.
Keep a timeline of progress, files touched, current step, and next steps.
Store sessions in one shared location so every client sees the same state.
Related MCP server: claude-session-continuity-mcp
Included MCP Tools
continue_task- one-call auto-continue tool for prompts like "continue auth feature".start_session- create a new handoff session.append_progress- append assistant progress to a session.update_session- patch task metadata, notes, status, files, and optional progress.get_session- fetch a session by ID (with optional handoff text).get_latest_session- get most recently updated session for a project.list_sessions- list recent sessions with filters.complete_session- close out a session.generate_handoff- produce portable handoff markdown + resume prompt.delete_session- delete a session (requiresconfirm=true).store_info- show the active session store path.
Storage
By default, sessions are stored in:
~/.aiswitch/sessions.json
You can override this (recommended when sharing across multiple clients/sandboxes):
AISWITCH_STORE_DIRAISWITCH_STORE_FILE
Local Development
npm install
npm run build
npm testRun server over stdio:
node dist/src/index.jsCursor Setup
Use global ~/.cursor/mcp.json or project .cursor/mcp.json:
{
"mcpServers": {
"ai-switch": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/AISwitchMCPServer/dist/src/index.js"],
"env": {
"AISWITCH_STORE_DIR": "/ABSOLUTE/PATH/TO/shared-aiswitch-store"
}
}
}
}After saving, reload Cursor and confirm the server appears in MCP settings.
Claude Code Setup
Recommended (CLI-managed):
claude mcp add --transport stdio --scope user ai-switch -- \
node /ABSOLUTE/PATH/TO/AISwitchMCPServer/dist/src/index.jsWith shared storage path:
claude mcp add --transport stdio --scope user \
--env AISWITCH_STORE_DIR=/ABSOLUTE/PATH/TO/shared-aiswitch-store \
ai-switch -- node /ABSOLUTE/PATH/TO/AISwitchMCPServer/dist/src/index.jsProject-scoped alternative: create .mcp.json in repo root.
{
"mcpServers": {
"ai-switch": {
"type": "stdio",
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/AISwitchMCPServer/dist/src/index.js"],
"env": {
"AISWITCH_STORE_DIR": "/ABSOLUTE/PATH/TO/shared-aiswitch-store"
}
}
}
}Claude Desktop Setup (macOS)
Edit:
~/Library/Application Support/Claude/claude_desktop_config.json
Add:
{
"mcpServers": {
"ai-switch": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/AISwitchMCPServer/dist/src/index.js"],
"env": {
"AISWITCH_STORE_DIR": "/ABSOLUTE/PATH/TO/shared-aiswitch-store"
}
}
}
}Then fully restart Claude Desktop.
Quick Continue (Minimal Prompting)
The server includes continue_task, designed for short prompts like:
"continue the auth feature"
"resume payment webhook work"
How it works:
Tries explicit
session_idif provided.Otherwise matches by
project_path(or current working directory).Otherwise searches by your request text across recent sessions.
Returns:
resume_prompthandoff_markdownquick_continue_instruction
In practice, tell the assistant:
Use ai-switch continue_task for: "continue auth feature", then continue implementation.Recommended Workflow
In current assistant, call
start_sessionat task start.During work, call
append_progressorupdate_session.When switching assistants, call
generate_handoff.Paste
resume_promptinto the next assistant (or callget_latest_sessionthere).Continue updating the same
session_id.
Open Source + GitHub Release
Create a GitHub repository and push this project.
Keep
README.md+LICENSE(MIT) in root.Add CI (optional): run
npm teston PRs.Tag releases (
v1.0.0,v1.1.0, etc.).(Optional) Publish to npm so others can install easily.
Optional npm publish flow
# Update name if needed (must be unique on npm)
npm version patch
npm publish --access publicThen users can run it in MCP configs with:
{
"mcpServers": {
"ai-switch": {
"command": "npx",
"args": ["-y", "ai-switch-mcp-server"]
}
}
}Security Notes
Do not store secrets in session notes.
Keep
AISWITCH_STORE_DIRin a location with proper filesystem permissions.If sharing
.mcp.jsonin a repo, avoid hardcoded secret env vars.
License
MIT
Maintenance
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
- AlicenseAqualityAmaintenanceZero-config session continuity for Claude Code. Automatically captures and restores project context across sessions using Claude Hooks.25195MIT
- Alicense-qualityDmaintenanceEnables handoff of context between AI coding agents like Claude Code, Cursor, Codex, and Windsurf with built-in provenance tracking.9,668MIT
- Flicense-qualityDmaintenanceAutomatically captures technical and product decisions from Claude Mac app sessions and writes them into project files, enabling seamless context transfer between strategy and coding sessions.61
Related MCP Connectors
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Stop copy-pasting between Claude Chat and Claude Code.
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/Alex-Shirazi1/AISwitchMCPServer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server