Using Cursor
Master the Cursor IDE integration for enhanced productivity and seamless AI-assisted development.
1. Overview
Cursor is a powerful IDE that combines traditional coding capabilities with AI-assisted features. It introduces the Model Context Protocol (MCP), an open protocol that standardizes how applications provide context and tools to LLMs, enabling enhanced development workflows.
2. Configuration
Project Configuration
Create a `.cursor/mcp.json` file in your project directory for project-specific MCP servers. This configuration will only be available within that specific project.
Example configuration:
{ "mcpServers": { "tooldeck": { "url": "http://localhost:3000/servers/cm9mqpzo8000bzqjx9kpgohwc/sse?token=7d8f9019-adce-4087-8c07-5d078746b318" } } }
Global Configuration
Set up global MCP configuration that will be available across all workspaces:
- Navigate to your home directory
- Create a `.cursor` directory if it doesn't exist
- Create or edit `mcp.json` inside the `.cursor` directory
- Add your global MCP configuration using the same format
- Save the file - configuration will be available across all workspaces
3. Tool Usage
Tool Approval
By default, when the Agent wants to use an MCP tool, it will display a message asking for your approval. You can expand the message to review the tool's arguments before approving.
Note: Always review tool arguments carefully before approving, especially for tools that modify files or access sensitive data.
Auto-run Mode
Enable auto-run to allow Agent to automatically execute MCP tools without requiring approval, similar to how terminal commands are executed. This can be configured in your settings.
To enable auto-run:
- Open Cursor settings
- Navigate to the "Features" section
- Find "Enable auto-run mode"
- Toggle the setting to enable
4. Integration Examples
GitHub
Create PRs, branches, and find code seamlessly
Notion
Access Notion data for feature implementation
Troubleshooting
References
For more detailed information about the Model Context Protocol, visit the official Cursor MCP documentation.