How to Integrate Salesforce with Claude AI Using MCP Server (Step-by-Step Guide)

Artificial Intelligence is rapidly transforming how users interact with business applications. Instead of manually navigating Salesforce records, users can now ask natural-language questions and perform actions directly via AI assistants like Claude.

With the introduction of the Model Context Protocol (MCP), connecting AI models to enterprise systems has become significantly easier.

MCP acts as a universal bridge between AI assistants and external applications, enabling Claude to securely access Salesforce data and perform authorized operations.

Salesforce now provides MCP capabilities that allow organizations to expose CRM data, metadata, and business processes to AI clients through a standardized protocol.

In this tutorial, we will learn how to integrate Salesforce with Claude AI using MCP Server.

What is MCP (Model Context Protocol)?

Model Context Protocol (MCP) is an open standard that enables AI models to communicate with external systems, tools, databases, and applications through a common protocol.

Instead of creating custom integrations for every AI model and every application, MCP provides a standardized client-server architecture where:

  • Claude acts as the MCP Client
  • Salesforce acts as the MCP Server
  • MCP handles communication between them

This approach reduces development complexity and enables AI assistants to securely access business data and execute approved actions.

Why Integrate Salesforce with Claude AI?

By integrating Salesforce with Claude AI, users can:

  • Retrieve Accounts, Contacts, Leads, Opportunities, and Cases using natural language
  • Create and update Salesforce records directly from Claude
  • Query real-time CRM data
  • Generate account summaries
  • Analyze sales pipelines
  • Automate repetitive business tasks
  • Improve employee productivity

Example Prompts

After integration, users can ask:

  • Show my open opportunities above $50,000
  • Create a new case for customer ABC Corporation
  • Summarize recent activities for Acme Inc.
  • List leads created this month
  • Show top opportunities closing this quarter

Salesforce Claude AI MCP Server Integration Architecture

The integration follows the architecture below:

Salesforce Claude AI MCP Server

Workflow:

  1. User sends a request to Claude.
  2. Claude forwards the request to the MCP Server.
  3. MCP Server authenticates with Salesforce.
  4. Salesforce returns data.
  5. Claude converts the response into a natural language answer.

Integrate Salesforce with Claude AI Using MCP Server

Below, I will explain each step and configuration we need for the Salesforce Claude AI Integration.

Prerequisites

Before starting, ensure you have:

Step 1: Enable MCP Support in Salesforce

Salesforce now offers Hosted MCP Server capabilities that enable AI clients, such as Claude, to connect securely to Salesforce resources.

Administrators can enable MCP functionality and expose approved Salesforce capabilities to external AI systems.

Salesforce Standard MCP Servers and Their Uses

Salesforce provides several standard MCP (Model Context Protocol) servers that allow AI assistants such as Claude, ChatGPT, or Agentforce to securely access Salesforce data, metadata, and business processes.

  • Setup Quick Find → Under Integration MCP ServersSalesforce Servers → Click the Server that you want to use.
Salesforce Claude AI Integration
SalesforceMCP ServerPurpose
sobject-allProvides unified access to Salesforce objects to read, create, update, and delete records. Useful when an AI agent needs complete CRUD operations across multiple objects.
data-cloud-queriesEnables querying Salesforce Data Cloud data using SQL-like queries. Ideal for retrieving customer profiles, segments, and unified customer data for analytics and AI insights.
sobject-mutationsHandles record creation, updates, and modifications in Salesforce objects. Used when an AI agent needs to perform actions such as creating Cases, updating Opportunities, or modifying Accounts.
metadata-expertsGives access to Salesforce metadata such as objects, fields, flows, Apex classes, validation rules, and page layouts. Useful for administrators, developers, and AI assistants that need org structure information.
salesforce-api-contextProvides context on available Salesforce APIs, endpoints, capabilities, and authentication details. Helps AI agents understand how to interact with Salesforce services.
sobject-readsProvides read-only access to Salesforce records. Commonly used for retrieving Accounts, Contacts, Opportunities, Cases, and other object data without making any changes.
sobject-deletesAllows deletion of Salesforce records from supported objects. Useful when AI agents need to remove obsolete or unwanted records while following security permissions.
engagement-interactionEnables access to engagement and interaction data, such as customer activities, communications, and engagement history. Often used for customer service, marketing, and personalization scenarios.

Open the Details tab to view the MCP server information. The Server URL will be required when configuring the MCP connection in Claude AI. Before using the server, click Activate to enable it.

Salesforce MCP Server Setup

Salesforce sObject-All MCP Server Tools and Their Uses

The sObject-All MCP Server provides a complete set of tools for reading, searching, creating, updating, and managing Salesforce records.

ToolPurpose
Get Related Records (getRelatedRecords)Retrieves child records associated with a parent record through Salesforce relationships. Useful for fetching related Contacts, Opportunities, Cases, or custom object records.
Get Recently Viewed Records (listRecentSobjectRecords)Returns records that the current user recently viewed or modified. Helpful when users refer to recent Accounts, Opportunities, or Cases without providing record IDs.
Query Records (SOQL) (soqlQuery)Executes a SOQL query to retrieve Salesforce data. Use it when you know the object, fields, and filter criteria needed to fetch records.
Search Across Objects (SOSL) (find)Searches text across multiple Salesforce objects simultaneously. Ideal when you know a keyword but are unsure which object contains the information.
Get Current User Info (getUserInfo)Returns details about the logged-in user, including identity, role, locale, and preferences. Useful for personalization and context-aware responses.
Get Object Schema (Enhanced) (getObjectSchema)Retrieves Salesforce object metadata, including fields, relationships, and data types. Helps AI agents understand Salesforce data structure before querying it.
Create Record (createSobjectRecord)Creates a new Salesforce record in a specified object. Commonly used for creating Accounts, Contacts, Leads, Cases, Opportunities, and custom object records.
Update Record (updateSobjectRecord)Modifies an existing Salesforce record using its record ID. Useful for updating field values, statuses, ownership, and other record details.

In this step, we activated the sObject-All MCP Server, which will later be used to connect Salesforce to Claude AI. Once activated, the server becomes available for MCP-based integrations.

Step 2: Create an External Client App in Salesforce

Authentication is a critical part of the integration. Salesforce recommends configuring an External Client App (ECA) so that Claude can authenticate using OAuth 2.0.

User permissions and Salesforce security controls continue to apply after authentication.

  • Setup → Quick Find → External Client Apps → New External Client App
External Client App in Salesforce

Configure the External Client App:

Enter the following details:

  • External Client App Name – Specify a user-friendly name for the integration, such as Salesforce Claude AI Integration.
  • API Name – Salesforce automatically generates this value based on the app name, but you can modify it if needed.
  • Contact Email – Enter a valid email address that will be used for notifications and communication related to the client application.

After filling in these fields, proceed with the remaining configuration settings.

Configure External Client App in Salesforce

In this step, configure the OAuth settings required for the Claude AI integration.

  • Callback URL – Enter https://claude.ai/api/mcp/auth_callback. This is the URL where Salesforce sends the authorization response after Claude AI successfully authenticates.
  • Access Salesforce hosted MCP servers (mcp_api) – Grants Claude AI permission to access Salesforce MCP servers and use the tools exposed through them.
  • Perform requests at any time (refresh_token, offline_access) – Allows Claude AI to obtain a refresh token and maintain access without requiring the user to sign in again for every request.

After adding the Callback URL and selecting these OAuth scopes, save the configuration and continue with the setup.

Salesforce External Client App Configuration

For the Claude AI and Salesforce MCP integration, enable the following security options:

  • Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows – Adds an extra layer of security to the OAuth authorization process by protecting authorization codes from interception. This is recommended for modern OAuth integrations, including Claude AI.
  • Issue JSON Web Token (JWT)-based access tokens for named users – Configures Salesforce to issue JWT-based access tokens, enabling secure, standardized authentication when Claude AI accesses Salesforce resources.

After selecting these options, click Create to create the External Client App.

Create an External Client App

The External Client App has now been created successfully. Next, navigate to the Settings tab and expand OAuth Settings. Then click Consumer Key and Secret to view the credentials generated by Salesforce.

Get Consumer key in Salesforce External App

When you click Consumer Key and Secret, Salesforce sends a verification code to the email address specified during the External Client App configuration. Enter the verification code to verify your identity.

After successful verification, you will be redirected to the Consumer Key and Secret page. These credentials will be required when configuring the Salesforce MCP connection in Claude AI:

  • Consumer Secret – Acts as the Client Secret used to securely authenticate the application with Salesforce.
  • Consumer Key – the Client ID used by Claude AI to identify the application.
Consumer Key and Consumer Secret in Salesforce

Step 3: Connect Claude to Salesforce MCP Server

Now, in the steps below, I will explain how we will connect Claude with Salesforce.

  • Open Claude → Click Profile Settings Connector Customize
Claude AI and Salesforce Connection Using MCP Server
  • On Customize page → Click ‘+’ icon→ Add Custom Connector
Add Custom Connector to Claude AI

Configure the Custom Connector in Claude AI

Fill in the following fields:

  • Connector Name – Enter a descriptive name for the connection, such as Salesforce Org.
  • Server URL – Paste the MCP Server URL copied from Salesforce (for example, the sObject-All MCP Server URL).
  • Client ID – Enter the Consumer Key obtained from the Salesforce External Client App.
  • Client Secret – Enter the Consumer Secret obtained from the Salesforce External Client App.

After entering these details, click Add to create the Salesforce MCP connector in Claude AI.

Add Custom Connector in Claude AI to Connect with Salesforce Org

In the above step, we just added the connector. Now we need to connect Salesforce with Clude AI. For that, click the Connect button.

Connect Salesforce with Claude AI

As you click Connect, we need to allow access for that click, and then click the Allow button.

Allow Access to Connect Salesforce with Claude AI

Claude AI lets you control how each MCP tool is used. You can choose one of the following permission levels:

  • Always allow – Claude can use the tool automatically without asking for confirmation each time. This is useful for trusted read-only operations.
  • Needs approval – Claude asks for your permission before executing the tool. This is the recommended option for most scenarios, especially when tools can access or modify Salesforce data.
  • Blocked – Claude cannot use the tool. Select this option for tools that you do not want available to the AI assistant.

For write and delete operations, it is generally recommended to use Needs approval so that you can review actions before records are created, updated, or deleted.

Integrate Salesforce with Claude AI

The setup is now complete. We are ready to use Claude AI with Salesforce MCP servers to access Salesforce data and perform supported operations directly from Claude.

Step 4: Test the Integration in Claude

Now, start a new chat in Claude AI and enter a prompt related to your Salesforce data.

Using the tools available on the connected MCP server, Claude AI can retrieve, create, update, and query records, access metadata, and perform other permitted operations.

For example, you can ask:

Show my top 10 open opportunities.
Integrate Salesforce with Claude AI Using MCP Server
List all accounts created this month.
MCP Server Integrate Salesforce with Claude AI

In this way, we successfully connected Salesforce MCP Servers with Claude AI. Claude can now use the MCP tools to access Salesforce data and perform actions in response to user prompts.

AI-Powered CRM Assistant

Organizations can build internal assistants that:

  • Query CRM data
  • Create records
  • Update opportunities
  • Retrieve account information
  • Execute business workflows

Security Considerations

When implementing Salesforce MCP integrations:

  • Use OAuth 2.0 authentication
  • Apply least-privilege access
  • Restrict tool permissions
  • Audit AI-generated actions
  • Monitor API usage
  • Validate MCP server configurations

Because MCP enables AI systems to interact with business systems, organizations should establish governance and security controls before production deployment.

Benefits of Using MCP Instead of Traditional APIs

Traditional APIsMCP Integration
Custom coding requiredStandardized protocol
Separate integrationsSingle integration model
Higher maintenanceEasier management
Limited AI supportAI-native architecture
Complex orchestrationBuilt for AI agents

Common Issues and Troubleshooting

  1. Authentication Failed – Verify:
    • Client ID
    • Client Secret
    • OAuth Scopes
    • Callback URL
  2. Claude cannot Discover Tools – Check:
    • MCP Server is running
    • Connector configuration is correct
    • Firewall access is allowed
  3. Salesforce Permission Errors – Ensure:
    • API Enabled permission
    • Object permissions
    • Field-level security access

Best Practices

  • Use Sandbox before Production
  • Restrict permissions by role
  • Log AI actions
  • Monitor API consumption
  • Regularly review OAuth connections
  • Test prompts thoroughly
  • Apply governance policies

Frequently Asked Questions (FAQs)

1. What is MCP in Salesforce?

MCP (Model Context Protocol) is a standardized protocol that enables AI systems such as Claude to securely access Salesforce data, tools, and actions.

2. Can Claude AI access Salesforce records?

Yes. Through an MCP Server, Claude can retrieve and update Salesforce data based on user permissions and approved access.

3. Is Salesforce MCP officially supported?

Yes. Salesforce provides Hosted MCP Server capabilities and documentation for connecting AI clients such as Claude.

4. Does MCP require coding?

Basic configuration can be completed with minimal coding. Advanced implementations may require custom MCP tools and workflows.

5. Is Salesforce MCP secure?

When implemented using OAuth authentication, role-based access controls, and governance policies, MCP can be deployed securely in enterprise environments.

Conclusion

Integrating Salesforce with Claude AI using the MCP Server enables organizations to transform Salesforce into an AI-powered conversational platform.

Instead of navigating multiple screens, users can interact with Salesforce using natural language while maintaining enterprise-grade security and governance.

With Salesforce’s growing support for MCP and Claude’s native compatibility with the protocol, organizations can build intelligent CRM assistants that access real-time business data, automate processes, and improve productivity across sales, service, and operations teams.

You may like to read:

live webinar

Salesforce Data Cloud with Agentforce Data Library

In this live webinar, we will showcase how Salesforce AI Agents use business data and documents to provide intelligent responses using Agentforce Data Library and Salesforce Data Cloud.

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.