Skip to main content
Glama

Cursor MCP Server

by Buga-luga

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:

npx -y @smithery/cli install cursor-mcp-tool --client claude

Installing Manually

  1. Prerequisites
  2. Installation
    # Install globally npm install -g mcp-cursor # Or install locally git clone https://github.com/yourusername/cursor-mcp.git cd cursor-mcp npm install
  3. Configuration
    • Create a .env file in your project root:
      # Windows path example DEFAULT_WORKSPACE_PATH=C:/Users/YourUsername/Documents/cursor-workspaces
  4. 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"] } }
  5. 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

  1. Clone and install:
    git clone https://github.com/yourusername/cursor-mcp.git cd cursor-mcp npm install
  2. Create environment config:
    cp .env.example .env
    Edit .env and set your workspace path:
    DEFAULT_WORKSPACE_PATH=C:/Users/YourUsername/Documents/cursor-workspaces
  3. Build and run:
    # Development mode with hot reload npm run dev # Production mode npm run build npm start

Troubleshooting

  1. Window Detection Issues
    • Ensure Cursor IDE is running
    • Try restarting the MCP server
    • Check if your workspace path is correct
  2. Permission Issues
    • Run terminal as administrator for first-time setup
    • Ensure proper file permissions in workspace directory
  3. Node Version Issues
    • Use nvm to switch to Node.js v18 or higher:
      nvm install 18 nvm use 18

Project Structure

cursor-mcp/ ├── src/ # Source code │ ├── services/ # Core services │ ├── handlers/ # Event handlers │ └── types/ # TypeScript definitions ├── build/ # Compiled JavaScript └── .env # Environment configuration

Scripts

  • npm run build - Compile TypeScript
  • npm start - Run production server
  • npm run dev - Start development server with hot-reload

Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details.

Support

For support:

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

  1. Quick Start (Windows)
    1. Installing via Smithery
    2. Installing Manually
  2. Features
    1. Detailed Setup
      1. Local Development Setup
      2. Troubleshooting
    2. Project Structure
      1. Scripts
        1. Contributing
          1. License
            1. Support

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                Acts 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 -
                2
                66
                TypeScript
                MIT License
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                A 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 -
                682
                10
                TypeScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                Connects 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 -
                263
                Python
                Mozilla Public License 2.0
                • Apple
              • -
                security
                A
                license
                -
                quality
                A 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 -
                37
                Python
                MIT License

              View all related MCP servers

              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/Buga-luga/cursor-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server