Skip to main content
Watch: I Built an AI App Without Leaving Databricks

MCP client - Anysphere - verified

How to add an MCP server to Cursor

Where to add MCP servers in Cursor: Project: .cursor/mcp.json; Global: ~/.cursor/mcp.json. Its docs list support for stdio, Streamable HTTP and SSE. It handles OAuth sign-in for remote servers.

Cursor homepage - Cursor in our tools directory - Compare all MCP clients

Kind
Editor
stdio
Yes
Streamable HTTP
Yes
SSE
Yes

Add a server

Where the config lives
Project: .cursor/mcp.json; Global: ~/.cursor/mcp.json

The example from the Cursor docs, copied verbatim. Swap in your server's name, command or URL.

JSON
{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "mcp-server"],
      "env": {
        "API_KEY": "value"
      }
    }
  }
}

Source: cursor.com/docs/mcp

Which server?

Pick a server from the verified directory of official MCP servers. Each one lists its transport, auth and the setup snippets its vendor publishes, so you can match it to what Cursor supports.

MCP support

What the Cursor docs say it supports. Not stated means the docs do not say either way.

Cursor MCP features, transports and OAuth, each with its source
FeatureValueSource
ToolsCalls the functions a server exposes.Yescursor.com/docs/mcp
ResourcesReads data and files a server exposes as resources.Yescursor.com/docs/mcp
PromptsOffers a server's prompt templates to the user.Yescursor.com/docs/mcp
SamplingLets a server ask the client's model for a completion.Not statedDocs do not say
RootsTells a server which directories it may work in.Yescursor.com/docs/mcp
ElicitationLets a server ask the user for input mid-task.Yescursor.com/docs/mcp
DiscoveryPicks up tools, prompts or resources a server adds or removes while connected.Not statedDocs do not say
InstructionsUses the instructions a server sends when it connects.Not statedDocs do not say
stdioStarts a local server as a subprocess.Yescursor.com/docs/mcp
Streamable HTTPConnects to a remote server over the current HTTP transport.Yescursor.com/docs/mcp
SSEConnects over the older HTTP+SSE transport.Yescursor.com/docs/mcp
OAuthSigns in to remote servers with OAuth.Yescursor.com/docs/mcp

Worth knowing

Cursor's MCP docs list Tools, Prompts, Resources, Roots, Elicitation and the MCP Apps extension as supported and do not mention sampling.

FAQ

Where is the Cursor MCP config?

Project: .cursor/mcp.json; Global: ~/.cursor/mcp.json. The example on this page is copied from https://cursor.com/docs/mcp

Does Cursor support remote MCP servers over Streamable HTTP?

Yes, per https://cursor.com/docs/mcp. Its docs list support for stdio, Streamable HTTP and SSE.

Does Cursor support OAuth for MCP servers?

Yes. It handles OAuth sign-in for remote servers. Source: https://cursor.com/docs/mcp

Which MCP features does Cursor support?

Its docs list Tools, Resources, Prompts, Roots and Elicitation. They do not state Sampling, Discovery and Instructions.

Sources

Last verified from the pages below.

Newsletter

New MCP servers, the week they ship

One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.