Skip to content
← Writing

Salesforce MCP Explained: Setup, Tools and Metering

Salesforce MCP explained for developers: what hosted MCP servers are, how AI agents use them, setup steps and the metering to plan for.

·7 min read·Salesforce AI

Key takeaways

  • Salesforce MCP means Salesforce Hosted MCP Servers: a governed way for any MCP client (Claude, ChatGPT, Cursor or a custom agent) to read data and run automation in your org as an authorised user.
  • You don't build the integration. You choose which existing flows, Apex actions, objects and prompts to expose.

Salesforce MCP is the first time an outside AI agent can work inside your org through a front door Salesforce itself maintains, with your permission model still in charge.

My argument is simple. The hard part of Salesforce MCP isn't the connection, which takes an afternoon. The hard part is deciding what an agent is allowed to touch, and what each call will cost you once metering starts. Developers and architects who settle those two questions first will ship agents that survive a security review and a finance review.

What is Salesforce MCP?

Salesforce MCP is Salesforce's hosted implementation of the Model Context Protocol, an open standard that lets AI clients discover and call tools in your org through one governed connection.

Salesforce's Hosted MCP Servers overview describes it as a secure, governed way for AI agents to interact with Salesforce data and automation. Any compatible client, including Claude, ChatGPT, Cursor or a custom agent, can connect to an org and act on behalf of authorised users.

The timeline matters if you're reading older articles. Salesforce announced the beta on 9 October 2025. Hosted MCP Servers then moved out of beta and became generally available on 29 April 2026, for Enterprise Edition orgs and above. Anything written before that date may describe a beta, and the Headless 360 single-connection server is the part that is still Beta.

How the Salesforce MCP server works

An MCP client connects to a Salesforce-hosted server, lists the tools it exposes, and calls them as the signed-in user, so your existing access rules still apply.

There are three moving parts:

  1. The client. The AI application (Claude, ChatGPT, Cursor, a custom agent) that decides which tool to call.
  2. The server. Salesforce-hosted. It publishes tools and runs them against your org.
  3. The tools. Things your org already has, exposed with a description the model can read.

The key phrase in the docs is "on behalf of authorized users". The agent doesn't get a magic super-account. It gets whatever the authorising user can do. That's good news for governance, and it's also why a badly scoped user is the most common way this goes wrong.

SurfaceWhat the agent getsPractitioner note
FlowsRun an autolaunched flow as a toolUsually the safest first tool: admins already own it and can debug it
Apex invocable actionsApex classes annotated with @InvocableMethodYour bulk-safety and error handling now face an agent, not a human
AuraEnabled Apex methodsExisting controller methodsCheck what they return before a model reads it
Apex REST methodsYour custom REST endpointsGood for logic you already expose to integrations
APIs from API CatalogCatalogued APIsUseful when the data lives behind MuleSoft or another API
SObject AccessDirect record accessFastest to start, widest blast radius
Prompts from Prompt BuilderServer-side prompt templatesKeeps prompt logic in Salesforce, not in the client
Data 360, Tableau Next, CRM Analytics (Beta)Unified data and analyticsDecide early which datasets an agent may see

There's also a single-connection option. It's marked Beta, so Beta Services Terms apply, and I wouldn't point production work at it yet.

Can Agentforce use MCP? Salesforce MCP works both ways

MCP works both ways: outside assistants can call Agentforce, and Agentforce can call outside tools.

If you're new to the agent itself, start with what Agentforce is.

Developers also get MCP inside their tools. Agentforce Vibes uses MCP for tool discovery and execution between models and development tools.

One warning on the older local server. The open-source salesforcecli/mcp repository on GitHub now shows as archived. Before you build anything new on it, check the current MCP Solutions guide for which server Salesforce points developers to.

My take: Expose flows before you expose objects. A flow is a job with a name, an owner and a fault path. Raw SObject access is a database handed to a model that guesses. I'd rather an agent have ten narrow tools than one wide one.

How to set up Salesforce MCP, step by step

Check your edition, pick one narrow server or tool, activate it, give the agent a minimal user, then connect your client and test in a sandbox.

Salesforce changes Setup labels between releases, so treat the Get Started guide as the source for exact clicks. The sequence below is how I'd work through it:

  1. Define one job. For example, "find an account and summarise open cases." One job, one reader, one outcome.

  2. Pick the server and tools. Start with the narrowest option that does the job: a single flow or invocable action, not the whole org.

  3. Create a minimal user. Use a dedicated user with a permission set that is read-only first. This is my practice, not a Salesforce requirement.

  4. Set up OAuth for the client. Follow the guide for the current connection method. Don't hand-roll something older.

  5. Point the client at the server URL. Each client has its own config format. The skeleton below is illustrative only.

  6. Test with real prompts in a sandbox. Check which tools the client lists and which it actually calls.

{
  "mcpServers": {
    "salesforce": {
      "url": "<server URL from the Hosted MCP Servers docs>"
    }
  }
}

Replace the placeholder with the URL from the docs for the server you activated. Your client's own documentation defines the real file format.

Does Salesforce MCP cost extra? Headless Platform Interaction metering

The overview page also has a Billing Considerations section, so read it for the current wording.

So you can't price this yet, but you can size it. For example, a services company might run five agents that each handle 200 tasks a day. If each task makes eight calls, that's 8,000 calls a day. Redesign the same agents to make one call per task and it's 1,000. Same outcome, an eighth of the meter, whatever the rate turns out to be.

This is separate from how Agentforce agents consume credits. For that side, see my Flex Credits rate card explainer and the Agentforce pricing calculator.

My take: A pricing calculator should arrive before usage billing does. Until it does, architects shouldn't wait. Build your call inventory now, because the team that can answer "how many calls a day?" on the first day of metering will keep its budget.

Common mistakes with Salesforce MCP

Most failures come from scope, not from the protocol.

  • Exposing SObject access first. It's the quickest demo and the hardest thing to audit.

  • Authorising as an admin. The agent inherits everything that user can do. Use a purpose-built user.

  • Chatty tool design. Five small calls where one would do will cost more under metering and hit governor limits harder on the Apex side.

  • Treating an invocable method as agent-ready. Code written for a human-triggered flow may not handle a model passing odd inputs. Validate and return clear errors.

  • No inventory. If you can't list every agent and integration that touches the org, you can't estimate metering or answer an audit.

Try this week

Try this week:

  • List every agent and integration that already calls Salesforce, with an estimate of calls per day.
  • Pick one flow that is boring, frequent and low-risk, and expose it as a tool in a sandbox.
  • Create a read-only integration user and connect one MCP client to it.
  • Rewrite one multi-step agent task so it makes a single call.

If you'd like help scoping this for your org, get in touch.

Frequently asked questions

What is the Salesforce MCP server?

It's Salesforce Hosted MCP Servers, a Salesforce-run service that lets MCP-compatible AI clients connect to your org. The client can then use the tools you expose, such as flows, Apex actions and record access, as an authorised user.

Is Salesforce MCP generally available?

Which AI clients can connect to Salesforce MCP?

Any client that supports the Model Context Protocol. Salesforce's documentation names Claude, ChatGPT and Cursor, plus custom agents. The exact connection steps depend on the client.

Does Salesforce MCP cost extra?

Estimate your call volume now, and check the Billing Considerations section of the Hosted MCP Servers overview for current billing wording.

What's the difference between the hosted MCP servers and the DX MCP server?

The hosted servers run on Salesforce and expose business data and automation to agents. The open-source local server on GitHub was aimed at developer operations and is now archived, so check Salesforce's MCP Solutions guide before choosing it for new work.

Want to put this to work in your business?

Join one of my live sessions, or tell me what you're trying to do with AI.

Newsletter

Get the next one by email.

New writing on Salesforce AI, AI agents and the AI-Native Enterprise. Confirm by email; unsubscribe any time.

Keep reading