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 33956 servers in our directory work with Cursor.
A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Production-ready platform for agentic workflow development.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
A secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
Enables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
Model Context Protocol Servers
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
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.
MCP servers for browser automation, web testing, scraping, screenshot capture, and PDF generation. Control Playwright, Puppeteer, Skyvern, and more through AI assistants.
MCP servers for web search, data extraction, and content retrieval. Connect AI assistants to Brave Search, Exa, Firecrawl, and 385+ other search and extraction tools.
MCP servers for persistent memory, knowledge graphs, vector databases, and context management. Give AI assistants long-term memory and access to structured knowledge.
MCP servers for financial services, payment processing, trading, and cryptocurrency. Connect AI assistants to Stripe, banking APIs, market data, and blockchain tools.
MCP servers for security monitoring, authentication, vulnerability scanning, and compliance. Connect AI assistants to Sentry, auth providers, and security scanners.
MCP servers for data science, machine learning, and scientific computing. Connect AI assistants to Jupyter notebooks, pandas, ML frameworks, and data processing pipelines.
MCP servers for version control systems including Git, GitHub, and GitLab. Manage repositories, pull requests, code reviews, and CI/CD pipelines through AI assistants.
MCP servers for AI coding agents, code generation, task management, and automated testing. Enhance your development workflow with intelligent coding assistants.
MCP servers for marketing automation, SEO optimization, content management, and social media. Connect AI assistants to analytics platforms, SEO tools, and marketing workflows.
MCP servers for monitoring, observability, and logging. Connect AI assistants to Grafana, Datadog, Sentry, and other tools for intelligent incident response and system analysis.
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 33956+ MCP servers, read our setup guides, and start building with the Model Context Protocol today.