MCPs Cursor Intermediate

Configure an MCP Server in Cursor

Set up and use MCP servers in your Cursor workspace

32 of 66

MCP in Cursor

Cursor connects to MCP servers that provide tools and resources to the AI agent.

Setup

1. Configure in Cursor settings

Add servers to .cursor/mcp.json in your project root or globally via Cursor Settings > MCP:

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

2. Verify

After saving, Cursor restarts the servers automatically. The agent can now discover and call tools from configured servers.

Useful MCP servers

ServerInstallPurpose
Playwright@playwright/mcp@latestBrowser automation and testing
Context7@upstash/context7-mcp@latestLive library docs lookup
GitHub@modelcontextprotocol/server-githubIssues, PRs, repo access

Troubleshooting

  • Server won't start: check that npx can resolve the package
  • Tool call fails: read the tool schema first to get correct parameters
  • Missing tools: restart Cursor after editing mcp.json

Source: docs.cursor.com/context/model-context-protocol

Working out which model to run this on? See The Codex. Packaging it as a reusable skill? See The Armory.