Connect Claude to Salesforce MCP: The Complete Salesforce Claude MCP Guide

Salesforce + Claude, Salesforce and Anthropic's Claude, Salesforce Claude connector, Salesforce Claude MCP, Salesforce Claude Cowork, Claude Code Salesforce MCP, Connect Claude with Salesforce Hosted MCP Servers, Salesforce Hosted MCP Server

Quick answer: To connect Claude to Salesforce MCP, enable a Salesforce Hosted MCP Server in Setup, create an External Client App for OAuth, and add a custom Salesforce Claude connector in Claude (web, desktop, Claude Cowork, or Claude Code) that points at the server URL. As of April 2026, the Salesforce Hosted MCP Servers are generally available for Enterprise Edition orgs and above so bringing Salesforce and Anthropic’s Claude together no longer requires custom API code. Every request runs under the logged-in user’s own permissions.

Last updated: June 2026 · ~12 min read

Key takeaways (TL;DR)

  • The integration is now official and GA. Salesforce Hosted MCP Servers reached general availability in April 2026 (first previewed at TDX 2026). Any MCP-compatible client including Claude can connect with enterprise-grade authentication built in.
  • MCP is the bridge. The Model Context Protocol (MCP), an open standard originally created by Anthropic, is the secure layer that lets Claude read and act on Salesforce data without one-off custom integrations.
  • Three connection paths exist: Salesforce Hosted MCP (recommended for most teams), the local @salesforce/mcp server (best for developers in Claude Code), and third-party MCP connectors (Windsor.ai, CData, and others).
  • Security is inherited, not rebuilt. Claude operates as the authenticated Salesforce user. CRUD, field-level security (FLS), and sharing rules all still apply, and every action shows up in the audit trail under that person’s name.
  • Start read-only. Activate the sobject-reads server first, validate in a sandbox, and only graduate to write-enabled servers like sobject-all once you trust the workflow.

What is Salesforce Claude MCP?

Salesforce Claude MCP is the use of the Model Context Protocol to connect Anthropic’s Claude with a Salesforce org so Claude can securely query and act on CRM data using the logged-in user’s permissions. It replaces brittle, custom-coded API integrations with a single standardized protocol that any MCP-compliant AI client can speak.

The Model Context Protocol is an open standard drafted by Anthropic and since adopted by OpenAI, Google, Microsoft, and Salesforce that defines how AI applications connect to external tools and data. It is often described as “USB-C for AI”: instead of building a separate connector for every system an AI agent needs to touch, you expose one MCP server and any compatible client can plug in.

In Salesforce terms, an MCP server is a managed endpoint that exposes your org’s logic and assets objects, fields, SOQL queries, Flows, and Apex actions as structured tools an AI client can call. Salesforce handles the hosting, authentication, and permission enforcement. Claude is the host/client: it sends a structured request, the Salesforce MCP server validates the user and returns only authorized data, and Claude turns the result into a natural-language answer.

With Salesforce Claude MCP, Claude can:

  • Retrieve Accounts, Contacts, Leads, Opportunities, Cases, and Activities
  • Run SOQL queries and search across objects in plain English
  • Summarize a customer’s full support or sales history
  • Create, update, and relate records (when write tools are enabled and permitted)
  • Trigger Salesforce Flows and invocable Apex actions
  • Help developers write and review Apex, SOQL, and Lightning Web Components

Why connect Claude with Salesforce?

Bringing Salesforce and Anthropic’s Claude together solves a problem that is mostly about human bandwidth, not Salesforce itself. Sales reps, service agents, and executives all know the data exists they just can’t get to it fast enough without building reports, clicking through list views, or asking an admin.

When you connect Claude to Salesforce MCP, people interact with the CRM in natural language and get answers (and actions) in seconds. Instead of navigating dashboards, a user can simply ask:

  • “Show me all open opportunities over $50K with no activity in the last two weeks, grouped by owner.”
  • “Summarize this account’s support history and flag anything that signals churn risk.”
  • “Which accounts are most likely to renew this quarter, and why?”
  • “Draft a follow-up email for the Johnson lead and log a task to send it Thursday.”
  • “Explain why this opportunity has been stuck in Negotiation for 40 days.”

The business impact lands in five areas:

BenefitWhat changes
Faster decisionsAnswers come from live CRM data in seconds, not from manually built reports.
Higher productivityReps and agents complete lookups, summaries, and follow-ups without leaving their AI assistant.
Better CXInstant access to full customer history enables more personalized, lower-handling-time service.
Developer velocityClaude generates and reviews Apex, SOQL, LWCs, and Flow documentation as a development copilot.
Lower integration costA standardized MCP layer removes much of the custom API plumbing you’d otherwise maintain.

The 4 ways to connect Claude to Salesforce

There isn’t one path there are four, and choosing the right one is the single most important decision in your rollout. Here’s how they compare.

MethodBest forWhere Claude runsSetup effort
Salesforce Hosted MCPMost business + analytics usersclaude.ai (web), Claude Desktop, Claude CoworkLow – enable a server, add a connector
Local @salesforce/mcpDevelopers writing/deploying codeClaude Code, Cursor, VS CodeMedium – runs on your machine
Agentforce native MCP clientIn-Salesforce agentic workflowsInside Salesforce (Agentforce is the host)Admin – configured via Agent Builder
Third-party MCP connectorsNo-code analytics & multi-sourceclaude.ai via a vendor’s MCP serverLow – vendor-managed

A few notes on each:

  • Salesforce Hosted MCP is the official, Salesforce-managed option and the focus of this guide. Salesforce hosts and scales the server; you just activate it and add a Salesforce Claude connector. The same Hosted MCP connector works across claude.ai, Claude Desktop, and Claude Cowork (Anthropic’s agentic knowledge-work app), so a sales rep can run a Salesforce Claude Cowork workflow on the desktop without ever opening Lightning.
  • Local @salesforce/mcp runs on your own machine and is the better fit for developer workflows this is the Claude Code Salesforce MCP path for reading metadata, deploying, and running anonymous Apex.
  • Agentforce’s MCP client flips the direction: here Salesforce is the host, consuming external MCP servers so Agentforce agents can reach other systems. Useful, but it’s not how you bring Salesforce data into Claude.
  • Third-party connectors like Windsor.ai and CData sit between Salesforce and Claude, often adding multi-source joins or normalized analytics. They’re handy for no-code RevOps reporting but introduce another vendor into the data path.

How Salesforce + Claude works (the architecture)

The flow is deliberately simple and security-first. Five steps:

  1. User prompt. A user asks Claude a business question in natural language.
  2. MCP request. Claude’s MCP client translates that into a structured tool call and sends it to the Salesforce Hosted MCP server.
  3. Authentication. The request carries the user’s OAuth token. Salesforce validates identity and permissions before anything runs.
  4. Salesforce processing. The org executes the query or action as the authenticated user, returning only data that user is allowed to see.
  5. AI response. Claude receives the structured result and produces a clear, human-readable answer – a summary, a table, a drafted email, or a confirmation that a record was updated.

The critical design detail: MCP is itself a safety mechanism. The server defines exactly which operations are exposed, so Claude can’t call an API that hasn’t been explicitly turned on. Structured tool calls replace open-ended API access – a meaningfully smaller attack surface than handing an AI raw API credentials.

Step-by-step: Connect Claude with Salesforce Hosted MCP Servers (web/desktop)

This is the most common way to connect Claude to Salesforce MCP. It takes roughly 15–20 minutes the first time. Do it in a sandbox or Developer Edition org first – never wire a brand-new Salesforce Claude connector straight into production.

Step 1 Activate a Hosted MCP server in Salesforce

  1. In Setup, search for MCP Servers.
  2. Open the Salesforce Servers tab. You’ll see the catalog (covered in the next section).
  3. Click the server you want start with sobject-reads (read-only) for safety.
  4. Click Activate, then copy two things: the server’s API Name and the Server URL.

⚠️ Sandbox vs. production URLs differ. Sandbox/scratch server URLs contain /sandbox/ in the path. Grabbing the wrong one is the single most common cause of a silent connection failure.

Step 2 Create an External Client App (OAuth)

  1. In Setup, search for External Client App Manager → New External Client App.
  2. Fill in the basic information (name and API name can be anything sensible).
  3. Expand API (Enable OAuth Settings) and check Enable OAuth.
  4. Set the callback URL to: https://claude.ai/api/mcp/auth_callback
  5. Set OAuth scopes to: mcp_apirefresh_tokenoffline_access.
  6. Enable Require Proof Key for Code Exchange (PKCE) and Require Secret for Refresh Token Flow to harden the flow.
  7. Save, then open the Settings → OAuth Settings and copy the Consumer Key (you’ll paste this into Claude).

The mcp_api scope is purpose-built: it grants access to MCP only, not to your existing REST APIs. That separation is a feature it keeps the AI integration narrowly scoped.

Step 3 Add a custom connector in Claude

  1. In claude.ai, open the sidebar and click Customize (or Settings) → Connectors.
  2. Click the + → Add custom connector.
  3. Give it a clear name (e.g., Salesforce — Prod (read-only)) and paste the Server URL from Step 1.
  4. Open Advanced settings and paste the Consumer Key into the OAuth Client ID field. (You typically don’t need the Consumer Secret in this flow.)
  5. Click Add, then Connect. Claude redirects you to your Salesforce org to authorize. Approve, and the connector turns green.

Step 4 Tune per-tool approvals

Before you start prompting, open the connector in Claude and set approval rules per tool. A sensible default:

  • Read tools (get_user_infofindsoqlQuerygetObjectSchemagetRelatedRecords) → Always allow
  • Write tools (createSobjectRecordupdateSobjectRecordupdateRelatedRecord) → Ask every time

Reads are safe to automate; writes deserve a human in the loop.

Step 5 Validate permissions

Confirm Claude only surfaces data the connected user is allowed to see, then test the same prompts as a lower-privilege user. If permissions are correctly inherited, the lower-privilege user should get a narrower result set automatically.

Tip: If Claude answers from general knowledge instead of calling the connector, tell it explicitly: “Use the Salesforce SObject Read connector to answer this.”

Step-by-step: Claude Code Salesforce MCP setup

Developers usually want Claude inside their IDE workflow. There are two routes to connect Claude to Salesforce MCP from Claude Code.

Option A  Hosted MCP from Claude Code. Same Hosted MCP servers as above, configured via the command line. The OAuth callback differs: Claude Code uses http://localhost:38000/callback (used when you only have an enterprise-provisioned Anthropic API key). You register the server with a name following the convention salesforce-<server-api-name> (for example, salesforce-sobject-all).

Option B Local @salesforce/mcp. For pro-code work, the local server is the stronger fit. It wraps the Salesforce DX tooling and exposes capabilities like deploying metadata, reading the schema, and running anonymous Apex as MCP tools ideal for Claude Code, Cursor, and VS Code.

A practical rule of thumb: use Hosted MCP for data and analytics work, and the local server for development and deployment work.

The Salesforce Hosted MCP server catalog

One reason this integration is powerful: you don’t get one generic server you get a catalog of purpose-built ones, each with a clear scope. Activate only what each team needs.

ServerWhat it exposesTypical use
sobject-readsRead-only schema, SOQL, search, related recordsSafest starting point; analytics & lookups
sobject-allEverything in reads plus create / update / delete“All-in-one” for full data workflows (~90% of demos)
flowsTrigger Salesforce Flows“When X happens, run our standard playbook”
invocable-actionsRun invocable Apex actionsDomain-specific business logic
data-cloud-sqlQuery Data Cloud via SQLUnified, cross-source customer data
tableau-nextTableau analytics accessEmbedded BI questions
prompt-builderSalesforce prompt templatesReusable, governed prompt workflows
custom-serversISV/partner-built tools (Apex-backed)Industry-specific schemas and actions

 

For most teams, the pattern is: sobject-reads for the sales/ops floor, sobject-all for a small trusted group, and flows once you’re ready to let Claude kick off automations.

Security and governance: how Salesforce + Claude stays safe

This is where the GA architecture earns enterprise trust. Six things are true by design:

  1. Every transaction runs as the authenticated user. There are no anonymous service accounts. Your existing CRUD, field-level security, and sharing rules apply automatically there’s no new permission model to learn.
  2. Accountability is preserved. If Claude updates a record, that user’s name appears in the audit trail. If their permissions don’t allow an action, Claude can’t perform it either. The human stays in the driver’s seat.
  3. A dedicated OAuth scope. The mcp_api scope grants MCP access without exposing your existing REST APIs a clean, narrow blast radius.
  4. Secure-by-default. Hosted MCP servers must be explicitly enabled in Setup. Nothing is exposed until an admin turns it on.
  5. Structured tool calls. Because the server defines exactly which operations exist, an AI client can’t invoke anything that wasn’t deliberately published.
  6. Trust Layer + gateways. For regulated industries, the Einstein Trust Layer governs data handling, and emerging MCP gateways (e.g., MuleSoft AI Gateway) provide centralized policy across all your MCP servers.

Best-practice security checklist:

  •  Start with sobject-reads (read-only) before enabling any write server.
  •  Create a Permission Set specifically for MCP access; assign it only to users who need it.
  •  Consider a dedicated integration user with delete/update permissions removed for read-only scenarios.
  •  Validate everything in a sandbox before production.
  •  Set write tools to “Ask every time” in Claude.
  •  Review Einstein Trust Layer settings if you’re in healthcare, finance, or another regulated sector.
  •  Enable audit logging and monitor API consumption.

Enterprise use cases by team

 

Sales & RevOps

Pull stale-deal lists, rank pipeline by value, and surface single-threaded accounts then have Claude draft personalized follow-ups. With a Salesforce Claude Cowork setup on the desktop, a rep can run these multi-step workflows in plain English without opening Lightning. Example: “List open opportunities closing this quarter with no activity in 14 days, grouped by rep, ranked by value, so I can coach this week.”

Customer service

Generate instant summaries of a customer’s case history to cut average handling time, and draft responses grounded in real account context.

Marketing

Analyze campaign performance and segmentation conversationally, and connect Data Cloud (via data-cloud-sql) for cross-source customer insight.

Executives & finance

Get pipeline summaries and forecasts without touching a dashboard. A finance team can prompt: “Compare this quarter’s closed-won opportunities against GL revenue and flag discrepancies over $10,000.”

Salesforce developers

Use Claude Code with the local server to read metadata, write and review Apex, optimize SOQL, build LWCs, document Flows, and run tests  a development copilot rather than a replacement.

Salesforce consultants & partners

Accelerate solution design, documentation, and implementation planning, and stand up read-only Claude connectors as a fast, low-risk client demo.

Hosted vs. Local vs. Third-party: which should you choose?

 

  • Choose Hosted MCP if your users live in claude.ai or Claude Desktop and you want Salesforce-managed infrastructure with built-in governance. This is the default recommendation for sales, service, marketing, and exec users.
  • Choose the local @salesforce/mcp server if your primary users are developers working in Claude Code, Cursor, or VS Code who need metadata, deployment, and Apex execution.
  • Choose a third-party connector (Windsor.ai, CData, and similar) if you need no-code setup, normalized analytics, or to blend Salesforce with other data sources in a single Claude conversation accepting that you’re adding another vendor to the data path.

Many organizations run more than one: read-only Hosted MCP for the business floor, local server for the dev team, and a third-party connector for cross-source RevOps reporting.

Hosted vs. Local vs. Third-party: which should you choose?

  • Choose Hosted MCP if your users live in claude.ai or Claude Desktop and you want Salesforce-managed infrastructure with built-in governance. This is the default recommendation for sales, service, marketing, and exec users.
  • Choose the local @salesforce/mcp server if your primary users are developers working in Claude Code, Cursor, or VS Code who need metadata, deployment, and Apex execution.
  • Choose a third-party connector (Windsor.ai, CData, and similar) if you need no-code setup, normalized analytics, or to blend Salesforce with other data sources in a single Claude conversation accepting that you’re adding another vendor to the data path.

Many organizations run more than one: read-only Hosted MCP for the business floor, local server for the dev team, and a third-party connector for cross-source RevOps reporting.

Final thoughts

The “Salesforce + Claude” conversation has moved from theory to production. With Hosted MCP servers generally available, your own org becomes a secure, governed MCP endpoint, and the decision to connect Claude to Salesforce MCP takes minutes no custom middleware, no service accounts, no new security model. The result is conversational access to CRM data and actions that respects every permission you’ve already configured.

The winning rollout pattern is consistent: start read-only, validate in a sandbox, scope access with permission sets, keep writes human-approved, and expand server-by-server as trust grows. Teams that adopt this discipline get the productivity upside of AI-powered CRM without compromising governance.

Planning a deployment? Working with a certified Salesforce partner can help you scope the right servers, configure OAuth and permission sets correctly, and roll out Claude safely across sales, service, and development teams.


Sources & further reading

What is Salesforce Claude MCP?

It’s the use of the Model Context Protocol an open standard originally created by Anthropic to connect Claude with a Salesforce org so Claude can securely query and act on CRM data under the logged-in user’s permissions, without custom API code.

Yes. Salesforce Hosted MCP servers became generally available in April 2026 for Enterprise Edition orgs and above, and Salesforce publishes official documentation for connecting Claude (web, desktop, and Claude Code).

Yes, when configured correctly. Claude runs as the authenticated Salesforce user, so CRUD, field-level security, and sharing rules all apply, every action is auditable under that user’s name, and the mcp_api OAuth scope keeps access scoped to MCP only.

Yes if you activate a write-capable server like sobject-all and the connected user has permission. With the read-only sobject-reads server, Claude can only read. Setting write tools to “Ask every time” keeps a human in the loop.

No. The Hosted MCP path is admin-driven: activate a server in Setup, create an External Client App, and add a custom connector in Claude. Developers benefit most from the separate local @salesforce/mcp server for Claude Code.

Hosted MCP is Salesforce-managed and best for data/analytics work from claude.ai or Claude Desktop. The local server runs on your machine and is best for developer tasks in Claude Code reading metadata, deploying, and running Apex.

Agentforce is Salesforce’s in-platform agent framework, where Salesforce is the host consuming external tools. Connecting Claude via Hosted MCP works the other direction it brings your Salesforce data into Claude, so you don’t have to log into Lightning for everyday lookups.

Standard objects like Accounts, Contacts, Leads, Opportunities, Cases, Activities, and Campaigns, plus your custom objects all subject to the connected user’s permissions.

The Salesforce Claude connector is the custom connector you add inside Claude that points at a Salesforce Hosted MCP Server URL and authenticates via OAuth. Once connected, Claude can query and act on your Salesforce data using the logged-in user’s permissions.

Yes. The same Hosted MCP connector works in Claude Cowork (Anthropic’s agentic knowledge-work app). A Salesforce Claude Cowork setup lets reps run multi-step CRM workflows lookups, summaries, drafting, and logging activities in plain English from the desktop.

For Claude Code, you can connect to a Hosted MCP server via the command line (callback http://localhost:38000/callback) or run the local @salesforce/mcp server. The local server is the better Claude Code Salesforce MCP path for developer tasks like reading metadata, deploying, and running anonymous Apex.