Setup Guide8 min readUpdated · Published

Best MCPs for Cursor in 2026 (Ranked + Setup)

The six MCPs every Cursor user should install in 2026 are: Context7, Filesystem, GitHub, Postgres MCP Pro, Brave Search, and Memory. Install snippets, a full ~/.cursor/mcp.json, and FAQ below.

Cursor is already an AI coding tool with deep agent support. MCPs extend it with real tool access — accurate docs, live database queries, GitHub integration, and web search. Here are the ones worth installing.

Why Cursor + MCPs?

Cursor has excellent built-in context features — codebase indexing, file references, and rules. But these only cover what is already in your project. MCPs extend Cursor outward: to live documentation, external databases, your GitHub repos, and the real-time web.

The result is an agent that can look up the actual current API signature instead of guessing it, query your production database schema directly, open a PR from the same conversation where you wrote the code, and search the web when it needs information that is not in the codebase.

Setup time

15–30 min for all 6 MCPs

Impact

Fewer hallucinations, less context switching

Cost

All 6 are free or open source

The 6 MCPs every Cursor user should install

These cover the most common gaps in Cursor's default capabilities. Each has minimal setup and immediate, noticeable impact.

#1

Context7

3 min setup

Models hallucinate outdated APIs constantly. Context7 eliminates this by grounding every answer in real, current documentation.

npx -y @upstash/context7-mcp

Library API lookupFramework usage patternsVersion-specific code examples
Full details and install guide
#2

Filesystem

2 min setup

Most AI workflows involve reading or modifying files. This MCP is the standard way to give models that access without exposing the full system.

npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir

Reading and editing local codeGenerating files from AI outputNavigating project structures
Full details and install guide
#3

GitHub

5 min setup

GitHub is where most code lives. This MCP lets agents interact with that code directly, without copy-pasting between interfaces.

Automated issue creationPR review and managementCode search across repos
Full details and install guide
#4

Postgres MCP Pro

5 min setup

The official Postgres MCP is read-only and intentionally minimal. Postgres MCP Pro fills the gap when you want index advice, performance analysis, or write capability under controlled circumstances.

uvx postgres-mcp

Query performance tuningIndex recommendationsSchema health audits
Full details and install guide
#5

Brave Search

5 min setup

LLMs have a knowledge cutoff. This MCP bridges that gap with live web data directly inside the model context.

npx -y @brave/brave-search-mcp-server

Current events and newsDocumentation lookupsPrice or product comparisons
Full details and install guide
#6

Memory

2 min setup

AI models are stateless by default. Memory MCP is the simplest way to give an agent long-term knowledge that carries over between sessions.

npx -y @modelcontextprotocol/server-memory

Long-running agent workflowsPersonal AI assistantsProject tracking
Full details and install guide

Start with Context7

If you install only one MCP, make it Context7. It eliminates the single most common Cursor failure mode — hallucinated API documentation — and the improvement is noticeable immediately.

How to configure MCPs in Cursor

Cursor reads MCP configuration from a JSON file in your home directory. Here is the step-by-step setup:

1

Open or create your MCP config

Cursor reads MCP server configuration from this file. If it does not exist, create it.

~/.cursor/mcp.json
2

Add your first server

Each key in mcpServers is a server name you choose. The command and args fields specify how to start the server process.

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}
3

Restart Cursor and verify

After saving mcp.json, restart Cursor. In Agent mode, you should see the MCP tools listed as available. Test it with a prompt that requires the tool.

Full mcp.json with all 6 MCPs

Copy this into your ~/.cursor/mcp.json to add all six servers at once. Adjust paths and connection strings for your environment.

~/.cursor/mcp.json
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/your/projects"
      ]
    },
    "github": {
      "command": "npx",
      "args": ["@github/github-mcp-server"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your-token-here"
      }
    },
    "postgres": {
      "command": "uvx",
      "args": ["postgres-mcp"],
      "env": {
        "DATABASE_URI": "postgresql://user:pass@localhost/mydb"
      }
    },
    "brave-search": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-brave-search"],
      "env": {
        "BRAVE_API_KEY": "your-brave-api-key"
      }
    },
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"]
    }
  }
}

Keep secrets out of your config file

The mcp.json file should not be committed to version control if it contains API keys. Add it to your .gitignore, or use environment variables set at the OS level rather than hardcoded in the env field.

Quick comparison

MCPPrimary use in CursorSetupAPI key?
Context7Accurate library documentation2 minNo
FilesystemRead/write local files2 minNo
GitHubRepos, PRs, issues5 minGitHub token
PostgreSQLDatabase schema & queries3 minConnection string
Brave SearchReal-time web search3 minBrave API key
MemoryPersist context across sessions1 minNo

Frequently asked questions

Does Cursor support MCP natively?

Yes. Cursor has built-in MCP support. You configure MCP servers in your ~/.cursor/mcp.json file and they become immediately available in Cursor Agent mode.

How do I add an MCP to Cursor?

Open or create ~/.cursor/mcp.json and add your server configuration. Each entry needs a command and optional args and env fields. Restart Cursor after editing the file.

What is the difference between Cursor built-in context and MCPs?

Cursor's built-in context (@ mentions, codebase indexing) is optimized for your current project. MCPs extend Cursor to external services — live documentation, remote databases, GitHub API, web search. They complement each other.

Which MCP should I install first for Cursor?

Context7 is the highest-impact first install. It replaces hallucinated API documentation with real, up-to-date library docs. The improvement in code quality is immediate.

Can MCPs slow down Cursor?

MCPs run as separate processes and only activate when the model calls them. They have no impact on Cursor's editor performance. The only overhead is the latency of the tool call itself, which is typically under 500ms for local MCPs.

See all MCPs for coding

Browse the full list of coding-focused MCPs with rankings, setup guides, and compatibility info.

More guides

Fundamentals

What Is MCP? A Plain-English Guide to Model Context Protocol

6 min read

Setup Guide

Best MCPs for Claude Desktop in 2026 (Ranked + Setup)

9 min read

Setup Guide

Best MCPs for Claude Code in 2026 (Ranked + Setup)

8 min read

Setup Guide

Best MCPs for Windsurf in 2026 (Cascade-Ready Setup)

8 min read

Setup Guide

Best MCPs for VS Code in 2026 (Agent Mode + .vscode/mcp.json)

8 min read

Strategy

MCP Registry vs Curated Directory: Which Should You Use?

5 min read

Setup Guide

Best MCPs for ChatGPT: The Apps and Connectors Worth Installing

9 min read

Tutorial

How to Add an MCP Server to ChatGPT (Developer Mode + Apps Directory)

7 min read

Security

MCP Security: What to Know Before You Install

9 min read

Role Guide

Best MCPs for Marketers in 2026 (SEO, Email, Analytics)

8 min read

Strategy

Remote vs Local MCP Servers: When to Use Each

7 min read

Fundamentals

MCP vs Function Calling: What’s the Difference?

6 min read

Comparison

MCP Directories Compared: Top MCPs vs mcp.so vs PulseMCP vs mcp.directory

8 min read

Security

MCP Prompt Injection: How Tool-Calling Agents Get Hijacked

8 min read

Security

OAuth 2.1 for MCP: What the Spec Standardised and What You Need to Know

8 min read

Security

Sandboxing MCP Servers: Containers, Least Privilege, and Process Isolation

9 min read

Security

Rotating MCP Credentials: A Practical Guide for Leaks, Expiry, and Routine Hygiene

7 min read

Security

Least-Privilege Scoping for MCPs: How to Grant the Smallest Useful Permission

7 min read

Setup Guide

Best MCP Servers for Databases in 2026 (Ranked + Setup)

10 min read

Setup Guide

Best MCP Servers for Research in 2026 (Search, Scrape, Synthesize)

9 min read

Setup Guide

Best MCP Servers for Design-to-Code in 2026 (Figma → React)

9 min read

Setup Guide

Best MCP Servers for Domains in 2026 (Registrars + DNS)

9 min read

Tutorial

How to Buy a Domain From Claude (Cloudflare MCP, Step by Step)

6 min read

Tutorial

How to Search for Domains With an AI Agent (Cross-Registrar Workflow)

7 min read