Client integration · coding agent
Cursor
Project or global mcp.json with stdio and URL-based remote MCP servers.
Overview
Cursor is an AI-first code editor with MCP support in its agent features. Servers live in .cursor/mcp.json at the project level or ~/.cursor/mcp.json globally; the two configurations are merged. Local servers require type: "stdio" in the current documentation. Remote servers use a url and optional headers, with the transport inferred from the endpoint. Cursor documents ${env:VAR} interpolation for credentials.
Configuration locations
| Scope | Path or setting | Note |
|---|---|---|
| project | .cursor/mcp.json | Project-level configuration; merged with global settings. |
| user | ~/.cursor/mcp.json | Global configuration available across projects. |
Paths are documented by the vendor and may change. Confirm the current path in your installed version.
Local and remote servers
Local servers require a type of stdio plus command, args, and optional env or envFile. Remote servers use url with optional headers; Cursor infers SSE or Streamable HTTP from the endpoint. Legacy SSE endpoints commonly end in /sse.
- Transports
- stdio, Streamable HTTP, Legacy SSE
- Authentication
- Environment variable expansion; HTTP headers; OAuth
- Category
- coding agent
- Vendor
- Anysphere
Generate a config for Cursor
The adapter emits this client's documented structure and validates transport, scope, names, and credential placeholders.
Open the generatorCLI and workflow notes
- The Cursor agent CLI exposes MCP management such as `agent mcp list` and `agent mcp login <id>`.
- MCP settings can also be inspected in the editor UI.
- There is no documented project-scoped CLI registration equivalent to editing .cursor/mcp.json.
Tool permissions
Cursor asks for tool approval according to its agent and privacy settings. Servers that can edit repositories, run commands, or access remote data should be reviewed before enabling. Keep credentials in ${env:VAR} references rather than committed literals.
Compatibility notes
- Local stdio entries use type: "stdio".
- Remote entries use url and headers; no explicit type is emitted for remote servers in the official example.
- ${env:VAR} is the documented interpolation form.
- Project and global configurations are merged, so duplicate names need care.
Limitations
- Remote transport is inferred from the URL rather than declared.
- OAuth-capable servers depend on the Cursor version and authentication flow.
- The exact merge precedence between project and global files should be verified in the current client build.
Servers with this client format
91 catalog entries list this client as a supported configuration target.
Sources & evidence
- cursor.com/docs/mcpOfficial documentation · checked Oct 23, 2026 · documented
Cursor's official MCP documentation covers configuration paths, required stdio type, remote url and headers, envFile, and ${env:VAR} interpolation.
- cursor.com/docs/cli/mcpOfficial documentation · checked Oct 23, 2026 · documented
The Cursor CLI documentation describes mcp list and login commands.