swAItch
FreeNot checkedBridges AI conversations across coding assistants, preserving context when switching IDEs.
About
Bridges AI conversations across coding assistants, preserving context when switching IDEs.
README
Switch IDEs without losing your AI conversation context.
An MCP server that bridges AI conversations across coding assistants.
Stop losing context. Start where you left off — in any IDE.
Install · Quick Start · Tools · Docs · Contributing
Why swAItch?
You're deep in a conversation with your AI assistant in Cursor. You've discussed architecture, iterated on a plan, debugged a tricky issue. Now you want to switch to another IDE — but all that context is gone.
swAItch makes IDE conversations portable. It's an MCP server that reads your conversation history from any supported IDE and exposes it as tools that any MCP-compatible client can call.
┌─────────────┐ ┌─────────────┐
│ Cursor │ │ VS Code │
│ (source) │ │ (source) │
└──────┬──────┘ └──────┬──────┘
│ │
└───────────┬───────┘
│
┌───────▼────────┐
│ swAItch │
│ MCP Server │
│ │
│ ┌───────────┐ │
│ │ Parsers │ │ ← Extensible parser registry
│ │ Registry │ │
│ └───────────┘ │
│ ┌───────────┐ │
│ │ File │ │ ← Live updates via filesystem watching
│ │ Watcher │ │
│ └───────────┘ │
└───────┬────────┘
│
┌───────────┼───────────┐
▼ ▼ ▼
list_sources list_convs get_conv
(MCP tools exposed to any client)
Highlights
- MCP-native — built with FastMCP v3, works with any MCP client (Cursor, Claude Desktop, etc.)
- Extensible — plugin-style parser system. Add new IDEs by implementing one class.
- Live updates — file system watcher detects new conversations in real-time.
- Zero config — auto-detects installed IDEs and their conversation data.
- One command —
pip install swaitch && swaitchand you're running.
Supported IDEs
| IDE | Status | Storage Format |
|---|---|---|
| Cursor | Supported | SQLite (state.vscdb) |
| VS Code Copilot | Roadmap | JSON (chatSessions/) |
| Codex | Roadmap | Pending |
Want to add support for your IDE? See Contributing — just implement
BaseParser!
Install
pip
pip install swaitch
uv (recommended)
uv pip install swaitch
From source (development)
git clone https://github.com/ramraaj25/swAItch.git
cd swaitch
uv pip install -e ".[dev]"
Quick Start
1. Run the server
# stdio mode (default — for MCP clients)
swaitch run
# HTTP mode (for remote/web access)
swaitch run --transport http --port 8000
2. Connect from your IDE
Add to your MCP client configuration:
Cursor / Claude Desktop (mcp_config.json):
{
"mcpServers": {
"swaitch": {
"command": "swaitch",
"args": [
"run"
]
}
}
}
3. Use the tools
Once connected, your AI assistant can:
You: "What conversations do I have from my other IDEs?"
→ Agent calls list_sources → list_conversations
You: "Bring in that architecture discussion from Cursor"
→ Agent calls get_conversation with the ID
→ Full context is now available in your current session
Tools
swAItch exposes four MCP tools:
| Tool | Description | Parameters |
|---|---|---|
list_sources |
Discover which IDEs have conversation data available | — |
list_conversations |
List conversations from an IDE with summaries | source, limit, offset |
get_conversation |
Get full conversation content (messages + artifacts) | conversation_id, source |
get_conversation_message |
Fetch full untruncated content for a specific message | message_id |
Typical Workflow
sequenceDiagram
participant User
participant Agent
participant swAItch
User->>Agent: "Bring in my Cursor conversations"
Agent->>swAItch: list_sources()
swAItch-->>Agent: [{ide: "cursor", status: "available", count: 4}]
Agent->>swAItch: list_conversations(source="cursor")
swAItch-->>Agent: [{id: "abc-123", title: "Auth Architecture", ...}]
Agent->>User: "Found 4 conversations. Which one?"
User->>Agent: "The auth architecture one"
Agent->>swAItch: get_conversation(id="abc-123", source="cursor")
swAItch-->>Agent: {messages: [...], artifacts: {...}}
Agent->>User: "Got it! Here's the context..."
Architecture
swAItch features a clean, extensible design:
src/swaitch/
├── server.py # FastMCP server + lifespan management
├── models.py # Pydantic v2 data models (the shared language)
├── config.py # Platform-aware path resolution
├── tools.py # MCP tool definitions (depend on abstractions)
├── watcher.py # Async file system watcher (watchfiles)
└── parsers/
├── base.py # Abstract BaseParser (the contract)
├── registry.py # Parser registry (discovery + lookup)
└── cursor.py # Cursor parser implementation
Adding a new IDE parser
from swaitch.parsers.base import BaseParser
from swaitch.models import IDEType, IDESource, Conversation
class MyIDEParser(BaseParser):
@property
def ide_type(self) -> IDEType:
return IDEType.MY_IDE
@property
def display_name(self) -> str:
return "My IDE"
def detect(self) -> IDESource:
# Check if data exists on the system
...
def get_watch_paths(self) -> list[Path]:
# Return directories to monitor
...
def list_conversation_ids(self) -> list[str]:
# Return a list of all conversation IDs
...
def get_conversation(self, conversation_id: str) -> Conversation:
# Return full conversation with messages
...
Then register it in server.py:
registry.register(MyIDEParser())
Contributing
Contributions are welcome! Here's how to get started:
- Fork the repository
- Clone your fork:
git clone https://github.com/ramraaj25/swAItch.git - Install dev dependencies:
uv pip install -e ".[dev]" - Create a branch:
git checkout -b feature/my-parser - Make your changes
- Run linting:
ruff check . - Submit a PR
Adding a new IDE parser
The fastest way to contribute is by adding support for a new IDE:
- Add the IDE type to
IDETypeenum inmodels.py - Add data paths to
IDEPathsinconfig.py - Create
parsers/my_ide.pyextendingBaseParser - Register it in
server.py's_build_registry()
License
MIT — see LICENSE
Installing swAItch
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ramraaj25/swaitchFAQ
Is swAItch MCP free?
Yes, swAItch MCP is free — one-click install via Unyly at no cost.
Does swAItch need an API key?
No, swAItch runs without API keys or environment variables.
Is swAItch hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install swAItch in Claude Desktop, Claude Code or Cursor?
Open swAItch on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare swAItch with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
