A central Model Control Panel (MCP) for bidirectional integration between Cursor IDE and Claude Desktop.
This project provides a central server (MCP) that facilitates real-time, bidirectional communication and synchronization between the Cursor IDE and the Claude Desktop application. It allows developers to leverage the strengths of both AI assistants in a parallel coding workflow.
The MCP handles:
- Connecting to both Cursor and Claude via dedicated adapters.
- Translating communication protocols between the two systems.
- Synchronizing project state (files, edits) in real-time.
- Managing potential conflicts arising from simultaneous edits.
┌───────────────┐ ┌───────────────────┐ ┌─────────────────┐
│ │ │ │ │ │
│ Cursor IDE │◄────►│ Central MCP │◄────►│ Claude Desktop │
│ │ │ │ │ │
└───────────────┘ └───────────────────┘ └─────────────────┘
│
▼
┌───────────────┐
│ Project State │
│ Sync Engine │
└───────────────┘
- MCP Server:
- RESTful API and WebSocket server built with Express and Socket.IO.
- Handles authentication and session management.
- Manages overall state and communication flow.
- Client Adapters (
CursorAdapter,ClaudeAdapter):- Interface with the specific APIs and protocols of Cursor and Claude.
- Translate messages for consumption by the MCP and the respective AI.
- Synchronization Engine (
SyncEngine,StateManager):- Monitors the target project directory for file changes using
chokidar. - Manages project state versioning and uses
difffor efficient updates. - Implements conflict resolution strategies.
- Handles real-time synchronization over WebSockets.
- Monitors the target project directory for file changes using
- Context Processor (
ContextProcessor):- Extracts and optimizes code context to be sent to the AI assistants, respecting token limits.
- Backend: Node.js, Express, Socket.IO
- AI SDKs:
@anthropic-ai/sdk,cursor-api-client(assumed),openai - Synchronization:
chokidar,fs-extra,diff,simple-git,lockfile - Utilities:
jsonwebtoken,winston/pino,dotenv,config,node-cache - Development: TypeScript (optional), Jest, Nodemon, ESLint, Prettier, PM2
(Instructions to be added: Installation, Configuration, Running the server)
(Instructions to be added: How to connect Cursor and Claude, basic workflow)
(Guidelines to be added)
(License information to be added)