claude-cursor-mcp
Enables Claude.ai to interact with the Cursor editor to read files, write code, get selections, and more.
README
Claude-Cursor MCP Bridge
Lets Claude.ai talk directly to your Cursor editor — read files, write code, get selections, and more.
📖 Full setup guide + download → one06cm127.github.io/claude-cursor-mcp
⭐ If this actually worked for you, drop a star — it helps more people find it!
💬 Heads up — I vibe coded this whole thing, so if something's broken or you need help setting it up, just ask Claude lol
What's Included
cursor-mcp-bridge-0.0.1.vsix— Cursor/VS Code extension (install this first)server.py— MCP server that connects Claude.ai to the extensionpackage.json— Extension manifest
Requirements
Setup
See the full installation guide at the link above, or follow the steps below.
Step 1 — Install the Cursor Extension
- Open Cursor
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type
Extensions: Install from VSIX - Select
cursor-mcp-bridge-0.0.1.vsix - Reload Cursor — you should see "Claude-Cursor MCP Bridge started on port 9877"
Step 2 — Install Python Dependencies
pip install mcp
Or with uv:
uv pip install mcp
Step 3 — Configure Claude.ai
Go to Claude.ai → Settings → Integrations → Add MCP Server and add:
{
"mcpServers": {
"cursor": {
"command": "python",
"args": ["/full/path/to/server.py"]
}
}
}
Replace /full/path/to/server.py with the actual path where you saved server.py.
Step 4 — Test It
In Claude.ai, try: "What files do I have open in Cursor?"
Available Tools
| Tool | Description |
|---|---|
get_open_files |
List all open files |
get_active_file |
Get the focused file's content |
get_file_content |
Read any file by path |
write_file |
Write/overwrite a file |
insert_at_cursor |
Insert text at cursor position |
get_selection |
Get selected text |
replace_selection |
Replace selected text |
open_file |
Open a file in the editor |
get_workspace_folder |
Get current project path |
show_message |
Show a notification in Cursor |
How It Works
The extension runs a local TCP server on port 9877. The Python MCP server connects Claude.ai to this socket, translating MCP tool calls into editor commands.
License
MIT
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.