Use a Salesforce Hosted MCP Server when a person's AI client needs to read or change org data, and build your own MCP server only for tools whose data lives outside Salesforce, such as your own product. The Salesforce DX MCP Server is the local option for coding assistants. It reaches end of life on November 2, 2026, and Salesforce now delivers that tooling as skills.
For a SaaS company deciding how its Salesforce integration or marketplace app should work with customers' agents, that choice has a sharper edge. A hosted server runs as a signed-in user and never calls your backend. A managed package can't ship a hosted server configuration yet. What you ship instead is packaged Apex and Flow logic that each customer's admin adds as tools, or a registration for your own MCP server that Agentforce can call. Appnigma's marketplace apps service builds that Salesforce side, so your product sits "inside Salesforce or HubSpot" with a native app, listing preparation and review support.
Updated October 2026. Checked against Salesforce's Hosted MCP Servers developer guide, the DX MCP Server documentation and the API Catalog Connect API guide. This update adds the DX MCP Server end of life notice, the Flex Credits billing requirement and the current standard server list. It also adds the GA scope and URL changes and the ISV packaging rules, and corrects the connected app timeline.
Three things called a Salesforce MCP server
The Salesforce DX MCP Server, the Salesforce Hosted MCP Servers and a server you build all speak Model Context Protocol, the open standard AI clients use to call tools. They differ on who signs in and whose infrastructure carries the calls.
| Salesforce DX MCP Server | Salesforce Hosted MCP Servers | A server you build | |
|---|---|---|---|
| Where it runs | The developer's machine, started with npx | Salesforce's infrastructure | Your infrastructure |
| What the agent touches | Metadata, code, tests and org admin tasks | Records, Flows, Apex actions, analytics | Whatever your server exposes |
| Who signs in | Orgs already authorized in Salesforce CLI | Each user, through OAuth with PKCE | Your design |
| OAuth app | None of its own | An External Client App in the customer org | Your own identity provider |
| Edition and billing | Open source on npm | Enterprise Edition and above, Flex Credits | Your hosting |
| Turned on by | One command | An admin in Setup | You |
| Status | End of life on November 2, 2026 | Generally available since April 2026, with some servers in beta | Yours to maintain |
A developer asking a coding assistant to deploy a Lightning web component used the DX server, and after November 2026 uses Salesforce's skills instead. A sales rep asking Claude to update an opportunity wants a hosted server. Your product's own data, held in your database, needs a server you run.
For a vendor, the OAuth row matters most. Only the third column puts the credential in your hands. With the hosted servers, every connection depends on an app the customer's admin creates, so your onboarding guide becomes part of the product.
The Salesforce DX MCP Server reaches end of life in November 2026
The Salesforce DX MCP Server is the @salesforce/mcp npm package, a local process that reuses orgs already authorized in Salesforce CLI and gives a coding assistant "over 60 MCP tools," per its README. Salesforce has announced that it is retiring. The end of life notice says the package "reaches end of life on November 2nd, 2026," after which it is "no longer maintained or supported."
The same notice says the npm package "stays installable, so existing and pinned setups (0.30.15) keep working," and both GitHub repositories become read-only. Its replacement is not another MCP server. "Salesforce tooling is now delivered as skills," published in forcedotcom/sf-skills. That README installs them in Claude Code, Cursor or Codex with npx skills add forcedotcom/sf-skills, and Agentforce Vibes installs them automatically.
For a SaaS team, the practical move is to stop writing internal setup guides or customer docs around the DX server now. Teams that keep it running until a migration is done should check one setting first.
{
"mcpServers": {
"Salesforce DX": {
"command": "npx",
"args": ["-y", "@salesforce/mcp@0.30.15", "--orgs", "my-dev-sandbox",
"--toolsets", "orgs,metadata,data"]
}
}
}The --orgs flag decides which authorized orgs the model may touch. The README warns that DEFAULT_TARGET_ORG and DEFAULT_TARGET_DEV_HUB "are resolved dynamically on every tool call, not pinned when the server starts." Run sf config set target-org against production in another terminal and the assistant follows it there. Passing the alias of one sandbox, as above, closes that gap.
What a Salesforce Hosted MCP Server needs in each org
Salesforce Hosted MCP Servers need four things set in every customer org before an AI client connects, and a vendor can't set any of them remotely. The GA announcement describes them as "a production-ready capability for every Enterprise Edition org and above."
First, billing. The Hosted MCP Servers overview says the servers "are intended only for customers with Flex Credits and you may be billed for server usage." Ask whether a customer has Flex Credits before you promise an agent workflow in a sales call. Our explainer on how Flex Credits work for ISVs covers the credit model itself.
Second, an admin enables the servers. They are "disabled in your org by default," per Activate MCP Servers, and the toggle lives under API Catalog in Setup. A server can take up to 2 minutes to go live after the toggle.
Third, an OAuth app. The External Client App setup page is blunt about it. "Connected Apps aren't supported." The External Client App (ECA) needs the mcp_api and refresh_token scopes, the callback URL of the client, and JWT-based access tokens. A new ECA "can take up to 30 minutes to become available." Our External Client App guide walks through creating one.
Fourth, the client points at the right URL. Production orgs use https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME> and sandboxes add /sandbox/ before the server name, per the Claude configuration page.
Those two waits shape a customer onboarding call. Have the admin create the ECA in the first five minutes, then walk through server activation and your packaged tools while it propagates. Testing the connection at minute 35 works. Testing it at minute 5 produces an authorization error that looks like a misconfiguration and isn't.
The standard servers come from Salesforce with fixed tools. The servers reference lists four SObject servers (All, Reads, Mutations and Deletes) alongside Content, Data 360 and Tableau Next servers. Headless 360, Metadata Grounding and CRM Analytics are listed as beta. Custom servers are where an admin combines those tools with the org's own logic, covered in the ISV section below.
How hosted servers decide what an agent can see
Every tool call on a hosted server runs as the user who authorized the connection. The security best practices say the agent inherits the user's object permissions and field-level security and follows sharing rules. They add that "There are no service accounts, no machine-to-machine flows." Dynamic client registration isn't supported either, so an admin creates each ECA by hand.
For a SaaS product, the second sentence is the design constraint. Your backend can't hold a hosted MCP connection to a customer org the way it holds a REST integration user. Hosted MCP is for a person working through an AI client. Background syncs from your product still belong on the REST or Bulk APIs with your own OAuth app.
Audit is the other half. MCP traffic shows up in the org's API logs with the user attached, filterable by API_CLIENT_CATEGORY set to SALESFORCE_HOSTED_MCP. That gives a customer's security team a direct answer when they ask what the agent did.
How an ISV exposes its product to customer agents
The Custom MCP Servers guide has a short section written for ISVs, and its first line decides the architecture. "ISV managed packages cannot yet include MCP server configurations directly." What a managed package can ship is the logic behind the tools.
The same guide says ISVs can include Apex classes annotated with @InvocableMethod, @AuraEnabled or @RestResource, or Autolaunched Flows. The Apex Actions page adds that the class needs "a global method annotated @InvocableMethod," and the Flows page rules out screen flows and scheduled flows. After install, "a subscriber administrator can configure a custom server in their org and add those packaged actions as tools." So the work splits in two. Your package carries well described actions, and your install guide tells the admin which ones to put on which custom server.
Three choices in that package decide whether agents use it well.
Tool grain. Salesforce's general best practices warn against tools that only make sense in a fixed call sequence and against tools that bundle a whole workflow. An action that returns an account with its open invoices from your product, in one call, is the kind of self-contained result an agent can reason about.
Annotations. A custom tool with no annotations "is assumed potentially destructive and open-world," so clients prompt for confirmation on every call. Read-only actions should set readOnlyHint to true and destructiveHint to false.
Names and descriptions. The guide calls the tool name and description "as important as the backing implementation." The admin copies them into the custom server, and the model reads them to decide what to call.
Once a customer adds a packaged action to a custom server, its inputs and outputs become a contract with agents you never see. Changing a required input in a package upgrade breaks those prompts silently, so version agent-facing actions the way you version a public API. Add a new action and retire the old one over a release cycle.
Testing from your own orgs has two documented snags. The ECA page says you can't create an External Client App in a scratch org through Setup. Create it in a Dev Hub org, add it to a package and install that package in the scratch org. That same route lets you ship the ECA inside your managed package, and the ISVforce Guide applies security review requirements to any ECA "in use by more than two customer production orgs." Our security review guide covers what reviewers check. The Metadata Grounding server isn't available in scratch orgs or in Developer Edition orgs with a namespace, which is where most managed packages are built.
The other direction is an agent inside Salesforce calling your product. Agentforce can use an external MCP server registered in the org's API Catalog, and this part can ship in a package. The MCP for Agentforce packaging page covers "securely packaging, and distributing your MCP server registration" through an external credential, a named credential, an external service registration and a permission set. The agent actions that point at your server's tools are not packageable, so the admin still builds those after install.
If your product already runs an MCP server for Claude or ChatGPT users, that same server is what the package registers. The Connect API example shows Salesforce fetching the server's tools so an admin can allowlist them, and flags a "tool poisoning risk" on what it finds. Keep tool descriptions plain and stable, because a customer's security team will read them before anyone allowlists them.
Distribution follows the same path as any managed package. The AgentExchange install guide says AgentExchange apps can contain "MCP server tools, or MCP servers" alongside subagents and actions. Our guide to Salesforce AgentExchange covers the listing itself.
| Question | Customer connecting its own org | ISV shipping to many orgs |
|---|---|---|
| Who creates the ECA | The customer's admin | The admin from your install guide, or your package ships it |
| What you ship | Nothing | Packaged Apex actions, Autolaunched Flows and an external MCP server registration |
| Who assembles the custom server | The admin | The admin, following your recommended tool list |
| Who keeps tools working after upgrades | Salesforce, for standard servers | You, for every packaged action |
When a self-built MCP server still makes sense
For Salesforce data alone, Salesforce's own advice is direct. The general best practices page says a custom proxy around the REST APIs "bypasses the platform's security controls" and tells teams to "Use the hosted server as intended." Rebuilding per-user permission checks in your own code is work the platform already does.
A server you build fits when the tools belong to your product. Your billing records, your usage events and your workflow engine live in your database, and no Salesforce server can reach them. That server then needs what any multi-tenant integration needs, including per-customer OAuth clients, token refresh, rate limits per tenant and a versioning plan for when tool names change. Budget it as an integration project, not a weekend script. If you'd rather hand that off, Appnigma's done for you service covers implementation, backend changes and testing, with ongoing maintenance from a named integration engineer.
Is the Salesforce Hosted MCP Server still in beta?
No. Salesforce announced general availability in its April 2026 post, Salesforce Hosted MCP Servers Are Now Generally Available, after a beta that began in October 2025. Some individual servers are still labelled beta, including Headless 360, Metadata Grounding and CRM Analytics.
Tutorials written during the beta still circulate, and three of their steps no longer work. The beta to GA transition guide says the v1-beta.2 URL path is retired and servers must now be enabled by an admin. The beta scopes api, sfap_api, refresh_token and einstein_gpt_api were replaced by mcp_api and refresh_token. Tokens issued during the beta aren't valid at GA, so every user authorizes again.
Mistakes that block an MCP connection in a customer org
These are the failures that show up when a setup guide meets a real customer org. Each one comes from the documented setup rules.
- Creating a connected app instead of an External Client App. Hosted servers don't accept connected apps, and the ISVforce Guide says that starting in Spring '26 "you can't create new Connected Apps."
- Copying a beta tutorial's scopes or
v1-beta.2URL. - Testing in a sandbox against the production URL, or the reverse.
- Giving up inside the 30 minutes a new ECA can take to start working.
- Enabling the ECA but not the servers, which fails "even with correct authentication."
- Packaging a read-only action without
readOnlyHint, so every call asks the user to confirm. - Putting every standard and custom tool on one server. The custom servers guide says that "Beyond a few dozen tools," clients struggle to pick the right one.
Frequently Asked Questions
Does Salesforce have an MCP server?
Yes. Hosted MCP Servers expose org data to AI clients such as Claude and ChatGPT as the signed-in user. The local DX MCP Server reaches end of life on November 2, 2026.
Is the Salesforce MCP server free?
The DX MCP Server is open source on npm until its November 2026 end of life. Hosted MCP Servers are "intended only for customers with Flex Credits," and usage may be billed.
How do I connect Claude to a Salesforce hosted MCP server?
Add a custom connector in Claude with the server URL and the consumer key of an External Client App. That app needs the callback https://claude.ai/api/mcp/auth_callback and the mcp_api and refresh_token scopes.
Do hosted MCP tool calls count against API limits?
For API Catalog tools, yes. The API Catalog tools page says "the same permissions and rate limits apply" as a REST call by that user.
Can a managed package include a Salesforce MCP server?
Not a hosted server configuration, yet. A package can ship the Apex and Autolaunched Flows a subscriber's admin adds to a custom server, plus a registration for your own external MCP server.
Can Appnigma build the Salesforce side of our agent integration?
Yes. Appnigma's marketplace apps service builds the native Salesforce app and handles listing preparation and review support, and its done for you service adds a named integration engineer for ongoing maintenance.
Related Articles
- OAuth 2.0 flows for a Salesforce external client app
- Connected app vs external client app compared
- Embedding Agentforce 360 in ISV products
- Building Agentforce components for AgentExchange
Sources
- Salesforce Hosted MCP Servers overview, Salesforce Developers
- Standard MCP Servers Reference and Custom MCP Servers, Hosted MCP Servers guide
- Activate MCP Servers and Create an External Client App, Hosted MCP Servers guide
- Security Best Practices and General Best Practices, Hosted MCP Servers guide
- Transition from Beta and Configure Claude, Hosted MCP Servers guide
- Salesforce Hosted MCP Servers Are Now Generally Available, Salesforce Developers Blog
- Example: Register and Manage an External MCP Server, API Catalog Connect API guide
- salesforcecli/mcp repository, end of life notice and Salesforce Skills Library, GitHub
- What is the Model Context Protocol?, modelcontextprotocol.io