Sachin Uppal

MJO · Connect guide · Cursor

How to connect an MCP server to Cursor

By Sachin Uppal · 26 November 2026 · 3 min read · vendor docs checked 26 Nov 2026

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

Cursor reads MCP servers from mcp.json, globally or per project, and installs listed servers from its Marketplace with one click. A remote server is just a url; Cursor handles OAuth sign-in itself.

For MCP Journey Optimization, Cursor shows both ends of the Install stage: an "Add to Cursor" button for listed servers and a JSON file for everyone else. The comparison with every other client is in the field guide.

What you need

Steps

If the server is in the Cursor Marketplace

Open the Marketplace, find the server and click Add to Cursor. Cursor's docs say this installs it and authenticates with OAuth.

Any other remote server

  1. Open (or create) the config file: ~/.cursor/mcp.json for every project, or .cursor/mcp.json in a project for that project only.
  2. Add your server under mcpServers with its url:
    {
      "mcpServers": {
        "crushedwithit": {
          "url": "<your server URL>"
        }
      }
    }
    If the provider gave you a key instead of a sign-in, add a headers object. Cursor supports ${env:NAME} interpolation in url and headers, so the key can stay out of the file.
  3. Save. Open Customize in the sidebar to see the server and its toggle.
  4. Sign in when prompted. Cursor's docs say it uses the authorization code flow with PKCE, finds the authorization server through protected resource metadata (RFC 9728), and with dynamic client registration registers as a public client with no secret. For providers that need fixed credentials, add an auth object with CLIENT_ID, optional CLIENT_SECRET and optional scopes.

What it looks like (captured 26 Nov 2026)

Real screens from adding the CrushedWithIt server to Cursor. The second and third show a real failure we hit on 26 Nov 2026: CrushedWithIt's sign-in server refused Cursor's app-scheme redirect address (cursor://), exactly the Authorize-stage leak essay 3 describes. The fix was on our side, not Cursor's, and shipped the same day: the server now accepts a native app's own redirect scheme, so Cursor reaches the sign-in page. If your own server shows this error, accept private-use URI schemes for native clients (RFC 8252 §7.1).

Cursor mcp.json with a crushedwithit server URL
1. The server in mcp.json (user file ~/.cursor/mcp.json or project .cursor/mcp.json).
Cursor Configure crushedwithit dialog showing source User and an error
2. Customize > MCPs: the server, where its config comes from, and its status.
Cursor MCP output log: redirect_uris must list https or loopback http addresses
3. Show Output tells you why: the server rejected the client's redirect address during registration. Fixed on 26 Nov 2026.

Try it

Cursor uses MCP tools when they are relevant, and you can ask for one by name. Tool approval is required by default; click the arrow next to the tool name to see its arguments before approving. With the CrushedWithIt server as the example:

Use the crushedwithit tools to show my account and how many credits I can spend now.

Common errors and fixes

What you seeFixBasis
Server fails, tool call marked failedOpen the Output panel (Cmd+Shift+U), choose MCP Logs, and look for connection errors, authentication issues or crashes.Cursor docs
Asked to sign in againCursor renews tokens with a refresh token. If the server issues none, you sign in again whenever the token expires; server builders should issue refresh tokens.Cursor docs
Server not in chatCheck its toggle in Customize: disabled servers don't load or appear in chat.Cursor docs
Config copied from another client doesn't workGeneral: keys differ by client. Cursor uses url; Windsurf documents serverUrl; VS Code's mcp.json uses servers and type.Each vendor's docs
401 with no sign-in prompt (server builders)General, from the MCP spec: return 401 with a WWW-Authenticate header pointing to your protected resource metadata.MCP authorization spec

How to disconnect

Sources

Cursor's docs point to the Customize page without a fuller menu path, so this guide doesn't add one.

Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).

Cite as: Uppal, S. (2026). How to connect an MCP server to Cursor. sachinuppal.com.