Salesforce MCP Server

How to Connect Cursor to Salesforce

4 min read Cirra AI

TL;DR
  • To connect Cursor to Salesforce, add any Salesforce MCP server through Cursor’s Settings UI or, for team-shared setups, an mcp.json file.
  • You’ll need Cursor, a Salesforce MCP server and its connector URL, and Salesforce System Administrator access.
  • These steps work with any Salesforce MCP server. Cirra AI is used for the example below and covered in detail at the end.

What You Need

What you need
  • Cursor, with MCP support enabled (on by default in current versions).
  • A Salesforce MCP server and the connector URL it gives you.
  • Salesforce System Administrator access, or a user with the specific permissions you want Cursor to operate under.

Connect Cursor to Salesforce Through an MCP Server

  1. Open Cursor Settings (Cmd/Ctrl + ,) and go to Tools & MCP.

  2. Click “+ Add New MCP Server.”

  3. Enter a Name and the Server URL your Salesforce MCP server gives you, choosing HTTP/SSE as the transport for a remote server.

  4. Save. Cursor shows the server with a status indicator once it connects.

Cursor's MCP & Integrations settings panel showing the cirra-ai MCP server listed under MCP Tools with a Connect button, and an Add Custom MCP Server option below it
  1. Complete the Salesforce authorization flow if prompted.

Cirra AI MCP Server authorization request dialog listing the requested permissions with a Deny and an Allow Access button
  1. Start a new chat and describe a Salesforce task to confirm the connection is live.

Prefer a config file?

For a team-shared setup you can version control, add the same details to .cursor/mcp.json instead of using the UI. Both methods produce the same result.

Example mcp.json entry (replace the URL with the one your server provides):

{ "mcpServers": { "salesforce": { "url": "<your-mcp-server-url>" } } }

Verify the Connection

Ask Cursor something specific to your org, such as “What custom objects exist in my Salesforce org?” If it returns your org’s actual custom objects, the connection is working. If it gives a generic answer, the connection did not initialize. Re-check the Server URL in Settings → Tools & MCP (or mcp.json, if you used the config file) and restart Cursor.

What Cursor Can Do Once Connected

This depends entirely on which Salesforce MCP server you connect, not on Cursor itself. An operational-only server lets Cursor read and update records and run SOQL queries. A server with metadata write access lets Cursor also create objects and fields, build Flows, and manage permission sets, directly from chat, alongside your regular coding work.

Troubleshooting

Server doesn’t appear as connected. If you used the UI, confirm the URL and transport type are correct in Settings → Tools & MCP. If you used mcp.json, check the JSON syntax for a missing comma or bracket, then restart Cursor.

Cursor gives generic answers instead of org-specific ones. Confirm the server shows a connected status in Settings → Tools & MCP and start a new chat.

Authorization fails during setup. Confirm you’re authorizing with a Salesforce user that has the permissions the connector needs.

Frequently Asked Questions

Does Cursor have a UI for adding MCP servers?
Yes. Cursor Settings → Tools & MCP includes an “Add New MCP Server” dialog, so you don’t need to edit a config file by hand. Editing .cursor/mcp.json directly still works too, and is the better option if you want a setup that’s version-controlled and shared across a team.
Is my Salesforce org safe when connected to Cursor through an MCP server?
That depends on which Salesforce MCP server you use, since the server enforces the access rules, not Cursor. With Cirra AI, every connection runs on granular, category-level access controls across Metadata, User Data, Personal Setup Data, and Business Data, each set to None, Read Only, or Read and Write, and every action is logged in an exportable audit trail.

Using Cirra AI as Your Salesforce MCP Server

Cirra AI is the Salesforce MCP server used in the example above. Unlike Salesforce’s own hosted MCP server, the Cirra AI Salesforce Admin MCP Server writes to the metadata layer directly in conversation: creating objects and fields, building Flows, and managing permission sets and page layouts.

Governance is built into every connection: granular, category-level access controls plus an exportable audit trail mean you stay in control of what Cirra AI can touch. If your team manages more than one Salesforce org, a multi-team hierarchy lets you connect and switch between them from a single setup, rather than reconfiguring per project.

A free plan is available with no credit card required. Connecting your first org takes under 10 minutes.

For the full picture of what’s available across Salesforce MCP servers, see the Salesforce MCP Server guide. If your team uses Claude instead, see connecting Claude to Salesforce.

Start Using Cirra AI’s Salesforce MCP Server

A free plan is available with no credit card required. Connecting your first org takes under 10 minutes.