Skip to content
← All guides

Salesforce MCP server security: sobject-reads vs sobject-all

Salesforce’s hosted MCP servers act with the signed-in user’s rights. Compare sobject-reads and sobject-all, then limit them in Claude Code and Codex.

5 min read

Salesforce’s hosted MCP servers are Salesforce’s own remote servers, and the one you pick sets what an agent can do. platform/sobject-reads is read and query only, while platform/sobject-all can create, read, update and delete records. Servers are disabled by default and an admin turns each one on. The agent acts with the signed-in user’s permissions, so choose sobject-reads first.

Who maintains it and how it connects

Salesforce maintains the hosted servers, with docs at developer.salesforce.com and a community wiki at forcedotcom/mcp-hosted. Access needs Enterprise Edition or above, and Developer Edition orgs can also use them. The FAQ says three things changed at general availability. The URL version is v1, the OAuth scopes are mcp_api and refresh_token, and each server is activated in Setup, under API Catalog, then MCP Servers.

Connected Apps are not supported. You create an External Client App (ECA) with OAuth enabled and a callback URL for your client. Salesforce uses the authorization code flow only, with no service accounts or client credentials. The mcp-remote npm bridge is not supported.

What the servers can do

ServerCapability
platform/sobject-readsRead and query only. Salesforce says no tool can create, update or delete a record
platform/sobject-allRead, write and delete records, plus prompt templates
Custom serverTools you choose, including Apex Invocable Actions, Apex REST endpoints, Flows or Named Queries

Salesforce’s official tool reference blocked automated fetching, so this guide names no individual tool. Salesforce publishes the list in its servers reference.

What the agent can reach

Salesforce says the agent gets the same permissions as the person who signs in, and no more. That includes object-level access, field-level security, record sharing rules and record-level security. If the agent updates a record, the signed-in user’s name appears in the audit trail as the editor. Salesforce also says no language model runs on its side, since the MCP server is deterministic and the model is in your client.

Risks

  • Record text. Case descriptions, emails, notes and any field filled by customers or leads can contain text the model reads.
  • Your full rights. A user with broad object permissions gives the agent those permissions through sobject-all.
  • Data to the model. Records the tools return go to the model provider behind your client.
  • One credential, many clients. Salesforce recommends one ECA per client for the cleanest governance.

Limit it on the Salesforce side

  1. Start with sobject-reads, which Salesforce recommends for safe exploration.
  2. Use profile and permission set assignments on the ECA to control which users can sign in through which clients.
  3. For narrow access, build a custom server. Named Queries let an admin fix the exact objects, fields and filters.
  4. Test in a sandbox first.

Limit it in Claude Code

Get the server URL and callback details from Salesforce’s current docs, then add it as an HTTP server and sign in through /mcp.

{
  "permissions": {
    "ask": ["mcp__salesforce__*"]
  }
}

Replace salesforce with the name you gave the server. After you see the tool names in /mcp, deny the create, update and delete tools by name with mcp__salesforce__<tool> when you must connect sobject-all.

Limit it in Codex

[mcp_servers.salesforce]
url = "<server URL from Salesforce's servers reference>"
default_tools_approval_mode = "prompt"

Run codex mcp login salesforce. Add disabled_tools for write and delete tools once you have their names. The Salesforce pages this guide could read did not give Claude Code or Codex setup steps, so confirm that your client can complete the ECA flow.

Checklist

  1. Use a sandbox org and a user with a narrow permission set.
  2. Prefer sobject-reads.
  3. Ask before writes and deletes.
  4. Treat record text as untrusted.
  5. Check the audit trail and field history after a session. See the MCP security hub and the Atlassian guide.

Checked against the vendor documentation on November 25, 2026. Salesforce hosted MCP FAQ · Security and permissions · Hosted MCP docs · Codex MCP

What Excellent covers

Excellent does not inspect MCP servers themselves. Its free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code, so it can show what an agent did after it called a tool. It does not read Cursor’s, OpenClaw’s or Claude Cowork’s logs. For a local report without installing an app, run the free scan. Its script uses Python 3.9 or later when your Mac has it and the shell when it doesn’t, reads the logs locally and makes no network requests. See a sample report.

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Commands sent into an already running Codex shell fall outside that check. Agent coverage · Pricing. Pro is US-only for now.

Related guides

View all