Content
# 🤖 Integrate Claude AI with Salesforce using MCP Servers
A complete, step-by-step guide to connecting **Claude AI** to your **Salesforce org** using the **Model Context Protocol (MCP)** and Salesforce Headless 360 — no code required.
📺 **[Watch the full video tutorial on YouTube](https://youtu.be/kkedr2CeG9A)**
📝 **[Read the full blog post on sfdcgirl.com](https://www.sfdcgirl.com/2026/05/integrate-claude-with-salesforce-using-mcp-servers.html)**
---
## 📌 What You'll Learn
- What **Salesforce Headless 360** is and why it matters
- What the **Model Context Protocol (MCP)** is and how it works
- The difference between **DX MCP Server** and **Hosted MCP Servers**
- How to set up an **External Client App** with OAuth 2.0 + PKCE
- How to **connect Claude.ai to your Salesforce org** step by step
- Real-world use cases once connected
---
## 🧱 Prerequisites
- A Salesforce org (Developer Edition is free and works perfectly)
- A Claude.ai account (Pro, Team, Max, or Enterprise plan)
- System Administrator profile in Salesforce
---
## ⚙️ Setup Overview
### Step 1 — Enable MCP Server in Salesforce Setup
1. Go to **Setup → Quick Find → MCP Settings**
2. Toggle MCP Server to **Enabled** and save
### Step 2 — Create an External Client App
1. Go to **Setup → External Client App Manager → New External Client App**
2. Fill in Label, Name, Description, and Contact Email
3. Enable OAuth and configure:
| Setting | Value |
|---|---|
| Callback URL | `https://claude.ai/api/mcp/auth_callback` |
| OAuth Scopes | `mcp_api`, `refresh_token` |
| JWT-based access tokens | Enabled |
| PKCE | Required |
4. Save and copy your **Consumer Key**
### Step 3 — Activate Your MCP Server
1. Go to **Setup → MCP Servers**
2. Toggle your desired server (e.g. `sobject-all`) to **Active**
3. Note your MCP endpoint URL:
```
https://api.salesforce.com/platform/mcp/v1/platform/sobject-all
```
### Step 4 — Connect Claude to Salesforce
1. In Claude.ai, go to **Settings → Integrations**
2. Click **Add MCP Server**
3. Enter your Salesforce MCP endpoint URL
4. Enter your **Consumer Key** as the OAuth Client ID
5. Click **Connect** and authenticate with Salesforce
6. Test with: *"List the 5 most recently modified Accounts in my Salesforce org"* 🎉
---
## 🌐 Hosted MCP Endpoints Available
| Endpoint | Description |
|---|---|
| `sobject-all` | Full sObject read + write access |
| `sobject-reads` | Read-only sObject access |
| `sobject-mutations` | Create & update records |
| `sobject-deletes` | Delete records |
| `flows` | Trigger Salesforce Flows |
| `invocable-actions` | Invoke Apex actions |
| `data-360` | SQL-based analytics |
| `api-catalog` | API discovery |
| `prompt-builder` | Salesforce prompt templates |
---
## 💡 Real-World Use Cases
- **Natural language data queries** — "Show me all open Opportunities closing this quarter over $50k"
- **Trigger Flows** — kick off approvals, escalations, or automations via conversation
- **Developer productivity** — deploy metadata, run Apex tests, check org details
- **Pipeline intelligence** — deal risk scoring and pipeline health via Claude
- **Multi-channel Agentforce** — build once, render everywhere via AXL
---
## 🛠️ Troubleshooting
| Issue | Fix |
|---|---|
| OAuth fails | Check Login IP Ranges — cloud-hosted AI services must be permitted |
| Consumer Key not visible | Wait 2–5 minutes after saving the External Client App |
| MCP server not in Setup | Go to Setup → MCP Settings and enable it |
| Claude can't see tools | Verify server Status is **Active** in Setup → MCP Servers |
| Old beta URL not working | Update to GA pattern: `/v1/platform/<server>` |
| Session timeouts | Set Setup → Session Settings → Force relogin after to **None** |
---
## 📚 Resources
- [Salesforce Hosted MCP Documentation](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide)
- [sfdcgirl.com Blog](https://sfdcgirl.com)
- [YouTube: SFDC Girl](https://www.youtube.com/c/SFDCGirl)
---
## 👩💻 About the Author
**Monika Ramchandani** — Salesforce Technical Lead, Founder of [SFDC Girl](https://sfdcgirl.com), TDX Speaker, Agentforce Hackathon Winner, and Salesforce Marketing Champion '25.
[](https://www.linkedin.com/in/monikasfdc/)
[](https://www.youtube.com/c/SFDCGirl)
[](https://sfdcgirl.com)
[](https://x.com/monikasfdc)
---
⭐ If this helped you, please star this repo and subscribe to the [YouTube channel](https://www.youtube.com/c/SFDCGirl) for more Salesforce, Agentforce & AI content!