The AI-first code editor with built-in MCP support. Configure MCP servers via .cursor/mcp.json to give Cursor's AI access to databases, APIs, file systems, and custom tools.
Cursor is a popular AI-powered code editor built on top of VS Code. It adds deep AI integration directly into the editing experience, with features like AI-powered autocomplete, inline editing, and a chat panel that understands your codebase. Cursor supports the Model Context Protocol (MCP), which allows you to extend its AI capabilities with external tools, file system access, database connections, GitHub integration, and any custom tooling you build.
Cursor reads MCP server configurations from a .cursor/mcp.json file in your project root. When you open a project with this file, Cursor automatically starts the configured MCP servers and makes their tools available in both the Chat panel and Composer. The AI can then use these tools to fetch data, run queries, interact with APIs, and perform actions on your behalf.
Because the config file lives in your project directory, it is easy to commit it to version control so your entire team shares the same MCP setup. This is one of Cursor's biggest advantages over clients like Claude Desktop that use a global configuration.
.cursor directory if it does not already exist..cursor/mcp.json with your MCP server definitions. The file uses an mcpServers object where each key is a server name and the value is its configuration..cursor/mcp.json automatically - no restart needed in most cases.Cursor primarily uses project-level configuration via .cursor/mcp.json. This means different projects can have completely different MCP server setups. For global configuration that applies to all projects, you can place an mcp.json file in your Cursor user settings directory. Project-level settings take precedence when both exist.
Use the env field in each server configuration to pass environment variables like API keys and tokens. For team projects, consider using a .cursor/mcp.json that references environment variable names, and have each developer set those variables in their shell profile. This avoids committing secrets to version control while still sharing the server configuration.
Cursor supports both stdio and SSE transport types. For stdio servers (the most common), specify command and args. For SSE servers, specify a url field. SSE transport is useful for connecting to remote or shared MCP servers that run as HTTP services.
MCP tools are available in both Cursor's Chat panel and Composer. In Chat, the AI uses tools to answer questions and perform lookups. In Composer, tools are used as part of multi-step coding workflows where the AI might need to query a database schema before generating code, or check a GitHub issue before implementing a fix.
.cursor/mcp.json is in the root of your opened project, not a subdirectory. Check that the JSON is valid using a linter.npx, node, or the specified binary is in your PATH. Try running the command in Cursor's integrated terminal to confirm.Cursor works well with all standard MCP servers. These are particularly useful for code editor workflows:
Explore our full MCP server directory for more options.
For a comprehensive comparison of MCP setup across editors, read our MCP Servers for Cursor, VS Code, and Claude guide. Our tutorials section has step-by-step guides for specific server configurations.
npx -y for frequently used servers. This eliminates the package resolution step: npm install -g @modelcontextprotocol/server-filesystem.MCP servers in Cursor run as local processes with your user permissions. Keep these practices in mind:
.cursor/mcp.json contains API keys, add it to .gitignore. Better yet, use environment variables and only commit the config structure without secrets.Cursor is ideal if you want an AI-first IDE with deep code understanding and MCP integration. For a lightweight terminal experience, consider Claude Code CLI. If you prefer the broader VS Code extension ecosystem, check out VS Code with GitHub Copilot. For an autonomous agent approach within VS Code, try Cline. All these clients support the same MCP servers with slightly different configuration formats.
Config file location: .cursor/mcp.json
Install Cursor from cursor.sh. Available on macOS, Windows, and Linux.
Open your project in Cursor.
Create a .cursor directory in your project root: mkdir -p .cursor
Create .cursor/mcp.json with your MCP server configurations under the mcpServers key.
Save the file. Cursor automatically detects the new configuration.
Open the Chat panel (Cmd+L / Ctrl+L) and verify MCP servers appear in the tools list.
Start using Cursor's AI features - it will automatically leverage your MCP servers when relevant.
Need help setting up Cursor?
Check our step-by-step IDE setup guide with troubleshooting tips.
All 60 servers in our directory work with Cursor.
Secure file operations with configurable access controls
Knowledge graph-based persistent memory system
Privacy-focused web search capabilities
File storage and document collaboration
Location services and mapping integration
Embedded SQL database operations
PostgreSQL database integration
Team communication and collaboration
Version control operations
Extract transcripts from YouTube videos
Browser automation and web scraping
Official GitHub integration with comprehensive API coverage
Find the best MCP servers for Cursor in each category.
MCP servers for secure file operations, directory management, and document processing. These servers provide sandboxed access to local and remote file systems with configurable permissions.
MCP servers for connecting AI assistants to SQL and NoSQL databases. Query, analyze, and manage your data through natural language with support for PostgreSQL, SQLite, MongoDB, Redis, and more.
MCP servers that connect AI assistants to external APIs and web services. Search the web, fetch data, interact with third-party platforms, and automate API workflows through natural language.
MCP servers for managing cloud infrastructure across AWS, Google Cloud, Azure, and platforms like Vercel, Netlify, and Cloudflare. Deploy, monitor, and manage cloud resources through AI assistants.
MCP servers for software development workflows including version control, CI/CD, code analysis, browser testing, and project management. Supercharge your development process with AI-powered tooling.
MCP servers for monitoring, observability, and data analytics. Connect AI assistants to Grafana, Datadog, and search platforms to analyze metrics, logs, and business data in real time.
MCP servers for messaging, video conferencing, and team collaboration platforms. Connect AI assistants to Slack, Discord, and Zoom for automated communication workflows.
MCP servers for CRM, e-commerce, project management, and business automation platforms. Connect AI to Shopify, Stripe, Salesforce, HubSpot, Notion, and more to streamline business operations.
Explore MCP setup guides for other AI-powered editors and clients.
Anthropic's official desktop app for Claude with built-in MCP server support. Configure servers via a JSON config file to extend Claude with file access, databases, APIs, and more.
Anthropic's command-line coding agent with native MCP support. Configure servers via project settings or the --mcp flag for terminal-based AI development workflows.
Visual Studio Code with GitHub Copilot supports MCP servers for extending AI capabilities. Configure servers in VS Code settings to connect Copilot to databases, APIs, and local tools.
Codeium's AI-powered IDE with MCP support. Configure MCP servers via ~/.windsurf/mcp.json to extend Windsurf's AI with custom tools, databases, and API integrations.
An autonomous AI coding agent for VS Code with MCP support. Configure MCP servers through Cline's VS Code settings to give it access to external tools and data sources.
Browse our complete directory of 60+ MCP servers, read our setup guides, and start building with the Model Context Protocol today.