ipIterPrompt
IntegrationDeveloper WorkflowVerified Last verified 2026-07-24

Cursor MCP Integration

by Anysphere

Cursor supports the Model Context Protocol, letting its agent call external tools — GitHub, databases, browsers, docs — exposed by MCP servers. You register servers in `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global); Cursor then surfaces the servers' tools to the agent, which asks before invoking them.

Works with

MCP servers, rules, and VS Code-compatible extensions.

When to use it

  • When you want Cursor's agent to act on real systems, not just edit files
  • Reusing an MCP server you already run in Claude or Cline inside Cursor

When not to

  • Connecting servers that expose write access to production without guardrails

What it does

  • Register local (stdio) or remote MCP servers for the agent to use
  • Scope servers per-project or globally across all Cursor projects
  • Give the agent live tools (repos, DBs, browsers) instead of stale pasted context

How to install

Setup steps with copy-paste config. Sources are cited under each method.

Register a server (project scope)

Cursor

Requires: Cursor installed · An MCP server command or remote URL

  1. Create .cursor/mcp.json

    Add a project-scoped config so the server is available whenever this repo is open.

    json
    {
      "mcpServers": {
        "github": {
          "command": "npx",
          "args": ["-y", "@modelcontextprotocol/server-github"]
        }
      }
    }
  2. Enable and verify

    Open Cursor Settings → MCP, confirm the server is listed and its tools are enabled, then ask the agent to use it.

How to prompt it

Copy-paste prompts written to exercise this plugin, with what to expect.

Use a connected tool

You've added the GitHub MCP server and want the agent to work from live issues.

Using the GitHub tools, list my assigned open issues in this repo and draft a plan for the highest-priority one.

What to expect: Cursor calls the MCP server's tools (with your approval) and returns a plan grounded in real issue data rather than guesses.

  • Approve tool calls deliberately at first so you see exactly what the server can do.

Tips for getting the most out of it

  • Prefer project-scoped `.cursor/mcp.json` for repo-specific tools; use the global file for personal utilities.
  • Treat tool output (issue text, web pages) as untrusted — it can carry prompt-injection.

Prompts to pair with it

Real prompts from the IterPrompt library you can copy or run.

Logic Builder Tool

Turn any AI chat into a logic builder tool with this community persona prompt.

4,954 copiesOpen ↗

Advanced Color Picker Tool

Turn any AI chat into an advanced color picker tool with this community persona prompt.

3,053 copiesOpen ↗

Secure Password Generator Tool

Turn any AI chat into a secure password generator tool with this community persona prompt.

353 copiesOpen ↗

File Encryption Tool

Turn any AI chat into a file encryption tool with this community persona prompt.

958 copiesOpen ↗

Image Editor

Turn any AI chat into an image editor with this community persona prompt.

558 copiesOpen ↗

Text Analyzer Tool

Turn any AI chat into a text analyzer tool with this community persona prompt.

2,566 copiesOpen ↗
See more prompts in the library

Frequently asked questions

Is a Cursor MCP server the same as a Claude one?+

Yes — MCP is portable. A server that runs under Claude, Cline, or VS Code works in Cursor with the equivalent config block.

Pairs well with

Related guides

Alternatives to Cursor MCP Integration

Sources & verification

The facts on this page and where they come from. Anything unverified is labeled — we'd rather say "unknown" than guess.

Install steps, pricing, and availability change often. Always confirm on the official page before relying on setup details.