MCP Servers

MCP servers can be installed with Cursor deeplinks. It uses the same format as mcp.json with a name and transport configuration.

Install links:

cursor://anysphere.cursor-deeplink/mcp/install?name=$NAME&config=$BASE64_ENCODED_CONFIG
ComponentDescription
cursor://Protocol scheme
anysphere.cursor-deeplinkDeeplink handler
/mcp/installPath
nameQuery parameter for server name
configQuery parameter for base64 encoded JSON configuration
  1. Get name and JSON configuration of server
  2. JSON.stringify the configuration then base64 encode it
  3. Replace $NAME and $BASE64_ENCODED_CONFIG with the name and encoded config

Helper for generating links:

Example

Try this JSON in the MCP install link generator:

Single MCP server config
{
  "postgres": {
    "command": "npx",
    "args": [
      "-y",
      "@modelcontextprotocol/server-postgres",
      "postgresql://localhost/mydb"
    ]
  }
}

Result:

FormatExample
Text linkcursor://anysphere.curs…
Dark buttonAdd postgres MCP server to Cursor
Light buttonAdd postgres MCP server to Cursor

Install server

  1. Click the link or paste into browser
  2. Cursor prompts to install the server
  3. Use the server in Cursor