The Model Context Protocol (MCP) acts as a standard connector between AI coding agents and live external capabilities—documentation indexes, Playwright headless browsers, databases, and GitHub repositories. Setting up a valid mcp.json takes two minutes once you know each client's expected file path and JSON schema.

Open MCP Config (mcp.json) Generator
Toggle Playwright, Context7, GitHub & Postgres presets and export valid JSON per editor

MCP Configuration Paths by Editor

Client / EditorConfig PathRoot Key
Cursor.cursor/mcp.jsonmcpServers
Claude Code.mcp.jsonmcpServers
Windsurf~/.codeium/windsurf/mcp_config.jsonmcpServers
VS Code.vscode/mcp.jsonservers

Starter mcp.json Template (Stdio + HTTP)

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp@latest"]
    },
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "cloudflare": {
      "url": "https://docs.mcp.cloudflare.com/mcp"
    }
  }
}

Security & Context Hygiene Tips

Frequently Asked Questions

Where do I place mcp.json in Cursor and Claude Code?

Cursor reads .cursor/mcp.json in your repo or ~/.cursor/mcp.json globally. Claude Code reads .mcp.json at repo root.

Why does VS Code reject my Cursor mcp.json?

VS Code uses "servers" instead of "mcpServers" and expects an explicit "type": "stdio" or "http" property.