Salesforce MCP server security: permissions, scopes and how to lock it down

How Salesforce's hosted MCP servers limit what an AI client can read and change, which server variants are read-only, and which controls a security reviewer should require before approval.

On this page

Does the Salesforce MCP server respect user permissions and offer read-only access?

Salesforce's hosted MCP servers are Salesforce's own documented offering, and a Salesforce admin or security reviewer deciding whether AI clients may reach the org needs to know that every tool call runs under the OAuth identity of the user who authorized the connection. That call is subject to the user's object permissions, field-level security and sharing rules, and there is no service account or autonomous operation outside user context. Read-only variants exist: the SObject Reads server covers read and query only, and Salesforce recommends starting with the most restrictive setup, such as the platform/sobject-reads server, before expanding access. The supplied docs publish no separate price for the MCP servers, so ask Salesforce which editions and licenses cover each server before the rollout budget is set.

What Salesforce builds in is strong for the identity question: the user is the boundary, and a read-only server cannot write even if the user can. What depends on your configuration is how much the user can reach. A user with broad permission sets gives the AI client broad reach too, so review the permission sets and profiles assigned to the people who will connect clients. Named Queries let you expose a fixed SOQL-based slice of the data model instead of general object access. Custom tools built on Apex Invocable Actions, Flows, Apex REST or other endpoints need explicit MCP annotations, because a tool without them is assumed potentially destructive. Treat platform annotations such as readOnlyHint and destructiveHint as hints, since Salesforce says not all clients respect them.

The main gaps are the ones the platform cannot close alone. A read-only server does not stop a user with broad read access from exposing sensitive fields to a client, and annotations do not enforce anything. Confirm with your Salesforce team which client-side approvals and logging apply to the AI client you plan to allow. Then test the setup: as a restricted test user, attempt reads of fields you consider sensitive, attempt writes through a mutation or custom tool, and confirm the results match your permission model. Record the findings and retest after each permission change.

Which control is built in, configurable or missing

This table sorts each Salesforce MCP server control by whether Salesforce enforces it by default, whether an administrator must configure it, or whether it is only a hint or absent. Read the middle column first, because a control marked admin configured or enable by admin does nothing until someone turns it on. The main takeaway is that user permissions do most of the limiting, and the setup choices you make decide how much agent activity is actually restricted.

ControlStatusWhat to confirm
Per-user OAuth 2.0 with PKCEBuilt inConfirm token lifetime and how the connection is revoked in the setup documentation
Field-level security and sharing rulesBuilt in, inherited from userTest with a low-privilege user to see what the agent cannot reach
SObject All, Reads, Mutations and Deletes serversBuilt in, enable by adminChoose Reads or Mutations first, since Salesforce recommends starting with the most restrictive server
Standard servers fixed tool setBuilt in, disabled until enabledConfirm the tool list in the reference, since admins cannot modify it
Named Queries for slice-limited accessAdmin configuredReview each SOQL query for the fields and records it exposes
Custom tools from Apex, Flows and RESTAdmin built, annotations set explicitlyReview each custom tool and set its annotations by hand
Tool annotations such as readOnlyHint and destructiveHintHints only, not enforcementDo not rely on them alone, since not all clients respect them
No service accounts or machine-to-machine flowsBuilt inConfirm no integration user is used for agent access
Audit log of agent activityConfirmCheck the setup and log documentation for what is recorded and how long it is kept
Editions and pricing for hosted MCP serversConfirmThe supplied docs state no separate price, so ask Salesforce which editions and licenses apply

How a tool call is authorized inside Salesforce

The authorization decision for every Salesforce MCP tool call is made inside the Salesforce org, not in the AI client. The client first obtains an OAuth 2.0 authorization code with PKCE for a named user, and Salesforce's own documentation describes that per-user OAuth flow as the basis of access. The hosted server then exposes only the tool set enabled for that server, so a disabled standard server or an unpublished custom tool never reaches the client. When the agent calls a tool, the platform evaluates the request against that user's object CRUD rights, field-level security and record sharing rules, the same checks that apply when the user works in the Salesforce interface. The agent can never exceed the user who authorized the connection. Before approval, confirm which user will sign in and what that user can already see, because the MCP server inherits that scope exactly.

MCP annotations such as readOnlyHint and destructiveHint describe what a tool is expected to do, but Salesforce states that they are hints, not enforcement, and that not all clients respect them. The practical consequence is that a client's own confirmation prompts cannot be the control you rely on. Salesforce also says that a tool with no annotations is assumed potentially destructive, which matters for custom tools built on Flows, Apex or REST endpoints. Reviewers should check that each custom tool sets its annotations explicitly, and that the permission model for the underlying object or method is set to what the business intends, because a write that the user is allowed to perform will run regardless of how the client labels it.

Because Salesforce states there are no service accounts, no machine-to-machine flows and no autonomous operation outside user context, there is no shared identity with broad rights to over-privilege. The risk moves to the human accounts the agent acts through. A user with broad profile or permission set access gives the agent that same breadth, so the review should cover which users are permitted to connect AI clients and whether those users hold more rights than their work requires. Test this directly: sign in as a representative user, attempt a write or a read of a restricted field, and confirm the platform refuses it, then record the result as evidence.

Decisions the admin must make before enabling a server

Enabling a Salesforce hosted MCP server is less a single switch than a set of linked decisions about which tools exist, whose permissions they run under, and which clients may connect. Salesforce runs every tool call with the authorizing user's permissions, so the narrowest user and the smallest tool set define the real exposure. Settle these choices in writing before any client is approved.

Which SObject server to start with

Salesforce documents four SObject servers: SObject All, SObject Reads, SObject Mutations and SObject Deletes. Its security guidance recommends starting with the most restrictive option, the platform/sobject-reads server, and expanding only when a documented business task needs more. Each step up adds write or delete capability for every connected client. Ask which tasks require writes before enabling any server that changes data, and record that justification with the approval.

Security best practices

Which user the connection represents

Every tool call runs with the permissions of the user who authorized the connection, including object CRUD access, field-level security and sharing rules. Salesforce states there are no service accounts and no autonomous operation outside user context. A connection authorized by a broadly privileged administrator therefore gives an AI client that administrator's reach. Decide which user or permission set represents the connection, confirm it grants only the objects needed, and check who is allowed to authorize it.

Named Queries instead of general access

Administrators can define Named Queries as reusable SOQL-based APIs, so an agent reads only a specific slice of the data model. This narrows what a client can ask for, compared with general query and search over every accessible object. The trade-off is maintenance: each business question needs a defined query, and each query needs review as the data model changes. Ask the team which read tasks are repeatable enough to justify named queries and which need open access.

Which Flows and Apex actions to publish

Custom tools can expose Apex Invocable Actions, AuraEnabled methods, Apex REST methods and Flows as MCP tools. Each published action becomes a capability the client can call, so publish only those with a clear need. Salesforce notes that a tool without annotations is assumed potentially destructive, so set readOnlyHint and destructiveHint explicitly for every custom tool. Treat annotations as hints, not enforcement, because not all clients respect them, and confirm the action's own permission checks.

Which clients are permitted

Salesforce lists Claude, ChatGPT, Cursor, Postman and Agentforce Vibes as tested clients, and says other clients supporting OAuth 2.0 authorization code with PKCE should also work. Permitting only the clients your organization has reviewed keeps unvetted software from receiving access to the org. Decide the approved client list, confirm how each client stores tokens and whether staff may use personal accounts, and review that list when a new client appears.

Where agent activity is reviewed

Agent actions are performed as the authorizing user, so they appear in the same record history and access reviews as that user's manual work. Decide who reviews this activity, how often, and which events trigger investigation, such as bulk exports or deletes. Confirm with Salesforce and your logging team which logs record connection and tool activity in your org, and set alerts before enabling write-capable servers.

How the answer changes by use case

A read-only analytics assistant is the most restrictive starting point Salesforce recommends. The configuration is the SObject Reads server, which covers read and query only, or a set of Named Queries that return a fixed slice of the data model. Both keep the agent away from create, update and delete operations, and Named Queries narrow the fields and records the agent can ever see.

  • Server choice: Use the SObject Reads server for broad read access, or Named Queries when the analysts need only a defined dataset.
  • User context: Each analyst connects as their own user, so the agent sees only what that user can already see under object permissions, field-level security and sharing rules.
  • Pilot group: Limit enablement to a named group of users rather than the whole org.
  • Hints are not enforcement: Do not rely on readOnlyHint annotations alone, since Salesforce says clients may not respect them.
  • Custom tools: Confirm that no Flow, Apex or REST tool exposed to this group performs writes.

Confirm with Salesforce admins that the enabled server variant matches the intended scope and that the users in the pilot group hold only read-level profiles and permission sets.

Order of work for a controlled rollout

This sequence moves from confirming what the edition allows to proving, with test users and logs, that each tool and client is limited to the access the organization approved. Each step ends with a check that a reviewer can repeat.

  1. Confirm edition and pricing with Salesforce

    The admin or procurement lead asks Salesforce in writing which org edition, licenses and add-ons include the hosted MCP servers, and whether any separate charge applies. The published Salesforce Hosted MCP Servers overview does not state a separate price for the servers, so the quote must come from Salesforce or the account team. Done means a written answer naming the edition, the license terms and any usage costs, filed with the approval record.

  2. Create a least-privilege integration user and permission set

    The Salesforce admin creates a dedicated user with a permission set that grants only the objects and fields the AI use case needs, with no admin rights. Salesforce states that each tool call runs with the permissions of the user who authorized the connection, and that there are no service accounts or autonomous operation outside user context, so the permission set is the real ceiling on what the agent can do. Done means a permission report for that user lists the object and field access, reviewed and signed off by the security owner.

  3. Enable the most restrictive standard server

    The admin enables the standard server that matches the use case, starting with the read-only option such as platform/sobject-reads, since Salesforce recommends the most restrictive setup and expanding only as needed. Standard servers have a fixed tool set that admins cannot modify and stay disabled until an administrator turns them on, so the choice of server is the main scope decision. Done means the enabled server list shows only the one approved server, and the change record names who enabled it and why.

  4. Test each tool for CRUD and sharing behavior

    A tester signs in as a test user with a narrow profile and calls each enabled tool, recording whether create, read, update, delete, query and search succeed or fail as the permission set predicts. The test also checks record sharing and field-level security by querying records the test user should not see and confirming they are excluded. Done means a signed test log shows an expected result for every tool, and any unexpected write or hidden-record exposure is fixed before the next step.

  5. Review and annotate custom tools

    If custom tools are planned, the developer reviews each Apex Invocable Action, AuraEnabled method, Apex REST method, Flow or Named Query and sets its MCP annotations explicitly, such as readOnlyHint and destructiveHint. Salesforce notes that annotations are hints rather than enforcement and that not all clients respect them, and a tool with no annotations is assumed potentially destructive. Done means an inventory lists every custom tool with its annotations and its permission check, and tools that delete or change records have a named owner.

  6. Add Named Queries where slice access is needed

    Where the agent needs only part of the data model, the admin defines Named Queries as reusable SOQL-based tools so the agent queries a specific slice rather than the broader object set. This narrows what a prompt can ask for, although it does not replace the permission set beneath it. Done means each Named Query is documented with its object, fields and filters, and a test user confirms that it returns only the intended slice.

  7. Restrict clients and confirm connected apps

    The admin limits which MCP clients may connect, such as the tested clients Salesforce lists (Claude, ChatGPT, Cursor, Postman and Agentforce Vibes) and any others the security team approves, since Salesforce says other clients using OAuth 2.0 authorization code with PKCE should also work. The admin confirms the OAuth connection and access settings in the org match the approved client list, and that the connection is tied to the named test or pilot user. Done means a screenshot or export of the approved client settings is filed, and unapproved clients are blocked or unconfigured.

  8. Verify logs show agent activity

    Before any wider rollout, the security team runs a set of test calls through the approved client and checks that the org's event and login logs record the activity under the expected user, with the tool calls the team made. The team confirms the logs can be retained and searched for the period the policy requires, and identifies any gaps with Salesforce documentation. Done means a log extract showing the test calls, reviewed by the security owner, is attached to the approval record and the rollout is cleared or held.

Every tool call is checked against the authorizing user's permissions

The request starts at the AI client, such as Claude, ChatGPT or Cursor, which sends the user through OAuth 2.0 login with PKCE so the call runs as that named user. The enabled hosted MCP server then exposes only its fixed standard tool set or the custom tools an admin has defined. Before any record is returned or changed, Salesforce checks the user's object permissions, field-level security and sharing rules, and a denied check ends the call. Reviewers should confirm which servers are enabled, which tools each one exposes, and whether the audit log records each call under the user's identity.

Shows how a tool call passes user login, enabled server, permission checks and audit logging.

What reviewers ask about Salesforce MCP permissions

Does the agent use its own identity when it calls Salesforce?

No. Every tool call runs with the permissions of the user who authorized the connection, including object CRUD access, field-level security and record sharing rules. Salesforce states there are no service accounts, no machine-to-machine flows and no autonomous operation outside user context. Authentication is per-user OAuth 2.0 with PKCE. The practical consequence is that a reviewer should evaluate each staff member's profile and permission sets, because the agent can reach no more than that person can. Confirm the exact OAuth configuration and user restrictions with your Salesforce admin before rollout.

Can an admin change the standard MCP tool set?

No. Standard servers are pre-configured by Salesforce with a fixed tool set that administrators cannot modify, and they stay disabled until an administrator enables them. Control therefore comes from choosing which standard server to enable, such as an SObject server with reads only, and from the permissions of the users connected to it. If you need a narrower surface than a standard server offers, the documented route is a custom tool or a Named Query, which an admin defines. Confirm the current tool list for each server in the Salesforce reference before approving it.

Are MCP tool annotations enforced by Salesforce?

No. Salesforce says annotations such as readOnlyHint and destructiveHint are hints, not enforcement, and not all clients respect them. A read-only hint does not stop a write, so the reliable control is the server choice and the user's permissions. For custom tools backed by Flows, Apex or REST endpoints, the team should set annotations explicitly, because a tool with no annotations is assumed potentially destructive. Treat annotations as a signal for client behavior and review, not as a security boundary.

Can writes be blocked entirely for AI clients?

Yes, by choosing a read-only server and by removing write rights from the connected users. Salesforce documents an SObject Reads server for read and query only, and it recommends starting with the most restrictive setup and expanding access only as needed. Blocking writes at the user level means reviewing the object permissions, field-level security and sharing rules granted to each person who will authorize a connection. Check with your Salesforce admin whether any custom tool in the org can change data, because a custom Apex, Flow or REST tool may write even when the SObject server is read-only.

How can deletes be limited for the agent?

Deletes are limited by choosing a server that does not include them and by withholding the delete permission from users. The SObject All server covers create, read, update, delete, query and search. The SObject Mutations server covers create and update without delete, and the SObject Deletes server covers delete only, so a reviewer can keep deletes out of the agent's reach by not enabling those servers. Custom tools need their own review, since a Flow or Apex method can delete records regardless of the SObject servers. Ask your admin to list every enabled server and custom tool for each connected group.

What does the cost of securing this setup depend on?

The Hosted MCP Servers documentation published for this review does not state a separate price for the MCP servers, so no fee should be assumed from it. Cost depends on your Salesforce edition and licenses, the number of users who will connect, the number of custom tools that need review, and whether you engage an outside firm. Ask Salesforce for written confirmation of any licensing that applies to your org. For an outside review, DeployOpen does not publish prices. A quote follows from a written scope that covers the servers, custom tools, users and retest in your org.

Can our own team test this setup without outside help?

Yes, a Salesforce admin and a security engineer can review the setup in a sandbox or test org. The work includes listing enabled servers and custom tools, confirming the OAuth connection and user restrictions, running a test user with a limited profile, and checking that writes and deletes fail as intended. Testing should also cover prompt injection and whether a client ignores annotations. DeployOpen offers an AI agent rollout security review that tests tool and file permissions, data exposure, credential handling, SSO and admin settings, then delivers findings, fixes and a retest, if an independent review is needed.

Evidence a security reviewer should request

This table lists the evidence a reviewer should request before approving the Salesforce hosted MCP setup, with the question each item answers and where the admin finds it. Use it as a checklist: an item that cannot be produced, or that shows broader access than the agent's use case needs, is a finding to resolve before rollout.

Evidence itemWhat it provesWhere the admin finds it
Permission set and profile exports for the integration userWhich object permissions, field-level security and system permissions the user behind the connection holds, since every tool call runs with that user's rightsExport from Salesforce Setup for the user's profile and permission sets, as described in the Security best practices guide
Enabled servers and tool setsWhich standard MCP servers are switched on, such as SObject Reads or SObject All, and which custom tools are exposedStandard MCP servers reference and the MCP server configuration in Setup
OAuth connected app configurationWhich external client app is used, its OAuth scopes, token lifetime and any user or IP restrictionsExternal Client App settings in Setup, cross-checked with the Connecting an MCP client guide
Sharing rule and field-level security test results per objectWhether the agent sees only the records and fields the test user is allowed to see, tested for each object in scopeTest run by the reviewer as a test user in a sandbox org, using the connected client
Custom tool annotation inventoryWhether each Flow, Apex, REST or Named Query tool sets readOnlyHint and destructiveHint explicitly, since a tool with no annotations is treated as potentially destructiveSource of each custom tool in Setup and the tool definitions in the org, reviewed against General best practices
Client allowlistWhich AI clients are approved to connect, such as Claude, ChatGPT or Cursor, and which are blockedApproved client list kept by the security team, matched to the clients Salesforce documents as tested
Log samples showing agent activityThat tool calls from the connected client appear in the org's logs with the user's identity, so actions can be tracedEvent and login logs in Setup, sampled from a test session the reviewer runs

Questions buyers ask before approving the Salesforce MCP server

The first question most buyers ask is what the Salesforce MCP server costs, and the honest answer is that the Hosted MCP Servers documentation does not state a separate price for the servers. Before approval, ask Salesforce in writing whether access requires a specific Salesforce edition, add-on license or Agentforce entitlement, whether it is metered by usage, and whether any charge applies to the AI client itself. Those answers belong in the procurement file, because they decide whether the cost is one-time setup, a recurring license, or usage-based.

Effort is driven less by the license than by the shape of the configuration. The main drivers are the number of custom tools you expose (Apex Invocable Actions, AuraEnabled methods, Apex REST methods, Flows and Named Queries), the number of SObjects an agent may touch, and how many of those tools need annotations set explicitly. Each custom tool needs its own review of field-level security, sharing rules and what a write could change. A narrow start on a read-only SObject server with a few Named Queries is far less work to review than a broad custom tool catalog, and the review effort grows with each addition.

An internal Salesforce admin can usually enable the standard servers and set up the External Client App on their own, provided they have the right permissions and the security team agrees on the scope. Where the setup depends on custom Apex or Flow tools, or on permission sets that must be designed and tested, an outside implementation partner may be worth the cost. Ask any partner for a fixed scope in writing, with named deliverables, a retest and a list of which controls they will verify, so the work is reviewable before it starts.

How DeployOpen works on this

DeployOpen tests and hardens Salesforce MCP setups as part of AI agent rollout security reviews, covering prompt injection, tool and permission exposure, credential handling, and SSO and admin settings. The work starts from the permissions each connected user actually holds in the org, then tests what an AI client can reach through the hosted servers.

How we scope

  • Scope is agreed in writing before work starts, listing which hosted servers, org sandboxes or production orgs, and user profiles are in view.
  • We map which SObject server variants, Named Queries and custom tools are enabled and which user permissions they inherit.
  • The written scope states whether the review covers testing before rollout, after rollout, or both, and who signs off on findings.

How we build

  • We test whether each tool call respects field-level security, object permissions and sharing rules for the authorizing user.
  • We check that custom tools backed by Flows, Apex or REST endpoints declare MCP annotations, and that no tool relies on annotations alone for safety.
  • We attempt prompt injection and over-broad tool requests from a connected client to confirm what the restricted setup blocks.

How we hand over

  • The findings report lists each exposure with the permission, tool or setting involved, its risk, and the recommended fix.
  • Fixes cover narrowing server choice, tightening profiles and permission sets, adding Named Queries, and documenting the approved client list.
  • A retest confirms the fixes hold, and the documentation gives your security and compliance teams evidence they can review.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
  • Retainers can cover re-testing when Salesforce changes a hosted server version or when new custom tools are added to the org.
  • Ask any quote to name the specific servers, orgs and retest points so the recurring work matches what your team actually changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.