The Cursor MCP Server enhances development workflows through Claude AI and Cursor IDE integration, offering:
Real-time AI Assistance: Provides context-aware code suggestions and completions
Seamless IDE Integration: Works directly with Cursor IDE
Windows Automation: Controls cursor movement and manages windows
Weather Functionality: Retrieves weather alerts (
get-alerts
) and forecasts (get-forecast
) with geographic specificity
Cursor MCP - Claude Desktop Integration
A Model Context Protocol (MCP) implementation that enables seamless integration between Claude AI and desktop applications through Cursor IDE. This tool serves as a bridge between Claude's capabilities and desktop software, allowing for enhanced AI-powered development workflows.
Quick Start (Windows)
Installing via Smithery
To install Cursor for Claude Desktop automatically via Smithery:
Installing Manually
Prerequisites
Node.js v18 or higher
Windows 10 or higher
Installation
# Install globally npm install -g mcp-cursor # Or install locally git clone https://github.com/yourusername/cursor-mcp.git cd cursor-mcp npm installConfiguration
Create a
.env
file in your project root:# Windows path example DEFAULT_WORKSPACE_PATH=C:/Users/YourUsername/Documents/cursor-workspaces
Add to Claude's MCP Configuration Add the following to your Claude configuration:
{ "name": "cursor", "type": "mcp", "config": { "server": "https://glama.ai/mcp/servers/4fg1gxbcex", "capabilities": ["cursor_control", "window_management"] } }Start the Server
# If installed globally mcp-cursor # If installed locally npm start
Features
Real-time AI assistance in your development workflow
Context-aware code suggestions and completions
Seamless integration with Cursor IDE
Windows automation for enhanced productivity
Detailed Setup
Local Development Setup
Clone and install:
git clone https://github.com/yourusername/cursor-mcp.git cd cursor-mcp npm installCreate environment config:
cp .env.example .envEdit
.env
and set your workspace path:DEFAULT_WORKSPACE_PATH=C:/Users/YourUsername/Documents/cursor-workspacesBuild and run:
# Development mode with hot reload npm run dev # Production mode npm run build npm start
Troubleshooting
Window Detection Issues
Ensure Cursor IDE is running
Try restarting the MCP server
Check if your workspace path is correct
Permission Issues
Run terminal as administrator for first-time setup
Ensure proper file permissions in workspace directory
Node Version Issues
Use
nvm
to switch to Node.js v18 or higher:nvm install 18 nvm use 18
Project Structure
Scripts
npm run build
- Compile TypeScriptnpm start
- Run production servernpm run dev
- Start development server with hot-reload
Contributing
Fork the repository
Create feature branch (
git checkout -b feature/amazing-feature
)Commit changes (
git commit -m 'Add feature'
)Push to branch (
git push origin feature/amazing-feature
)Open a Pull Request
License
MIT License - see LICENSE file for details.
Support
For support:
Open an issue in the GitHub repository
Join our Discord community
Check the FAQ
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Facilitates integration with the Cursor code editor by enabling real-time code indexing, analysis, and bi-directional communication with Claude, supporting concurrent sessions and automatic reconnection.
Related Resources
Related MCP Servers
- -securityAlicense-qualityActs as a bridge between Claude's desktop application and the Cursor editor, enabling seamless AI-powered automation and multi-instance management across platforms with standardized communication and secure token-based authentication.Last updated -067MIT License
- -securityAlicense-qualityA Cursor-compatible toolkit that provides intelligent coding assistance through custom AI tools for code architecture planning, screenshot analysis, code review, and file reading capabilities.Last updated -47411MIT License
- -securityAlicense-qualityConnects Claude Desktop directly to databases, allowing it to explore database structures, write SQL queries, analyze datasets, and create reports through an API layer with tools for table exploration and query execution.Last updated -336Mozilla Public License 2.0
- -securityAlicense-qualityA comprehensive code analysis and management tool that integrates with Claude Desktop to analyze code at project and file levels, helping adapt changes to projects intelligently.Last updated -39MIT License