Enterprise1-minute read7 languages

How to Connect Salesforce to MCP for AI Agents

Integrate Salesforce CRM with AI agents via MCP. Query leads, manage opportunities, and automate workflows through the AnythingMCP dashboard.

HCBy HelpCode teamUpdated 1 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Integrate Salesforce CRM with AI agents via MCP. Query leads, manage opportunities, and automate workflows through the AnythingMCP dashboard.

Supercharge Salesforce with AI Agents

Salesforce holds your most valuable customer data — leads, opportunities, accounts, cases, and custom objects. By connecting Salesforce to MCP, AI agents can read CRM data, update records, and automate sales workflows through natural language.

Connection Methods

MethodAPIBest For
REST APISalesforce RESTStandard CRUD operations
SOQLQuery APIComplex data queries
Bulk APIBulk 2.0Large data operations

Step-by-Step Guide

Step 1: Deploy AnythingMCP

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 2: Create a REST Connector

Open the AnythingMCP dashboard at http://localhost:3000 and create a new REST connector. Set the base URL to your Salesforce org's REST API endpoint (e.g., https://yourorg.my.salesforce.com/services/data/v59.0).

Step 3: Configure Salesforce OAuth

In the connector settings, configure OAuth 2.0 authentication with your Salesforce Connected App credentials. AnythingMCP handles token refresh automatically.

Step 4: Import and Customize Tools

You can import your Salesforce API definition or manually configure endpoints in the dashboard. Customize tool names and descriptions for clarity.

Step 5: Test and Connect

Test each tool in the dashboard, then configure your MCP client:

{
  "mcpServers": {
    "salesforce": {
      "url": "http://localhost:4000/mcp"
    }
  }
}

AI Agent Use Cases

  • "Show me all open opportunities over $50k closing this month"
  • "Create a lead for John Smith from Acme Corp, phone 555-0123"
  • "Move the TechCorp deal to Negotiation stage"
  • "How many support cases did we open last week?"
  • "What's the pipeline value for Q2?"

Best Practices

  1. Use Connected App with OAuth 2.0 Client Credentials flow
  2. API call limits — Salesforce has daily API limits; cache frequently accessed data
  3. Field-level security — The connected user's profile determines visible fields
  4. Use SOQL for queries — More efficient than fetching all records
  5. Sandbox first — Test in a Salesforce sandbox before production

Next Steps

Was this guide helpful?

Ship MCP to your stack in 60 seconds.

Spin up AnythingMCP on managed Cloud or self-host it on your infrastructure. Free for 7 days, no credit card.

Related guides

Connectors

Avito to MCP: Manage Avito Ads, Prices and Statistics from any AI Agent

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.

Connectors

Aymakan to MCP: Track Shipments, Labels and Pickups of Your Aymakan Account from any AI Agent

Aymakan courier (Saudi Arabia) from an AI agent: track shipments by tracking number or order reference, list your shipments, AWB label links, pickup requests and time slots, cities, PUDO points, warehouses and saved addresses. Creating and cancelling shipments and pickups is included, installed switched off.

Connectors

BEX Express to MCP: Track Shipments and Print Labels of Your BEX Courier Account from any AI Agent

BEX Express courier (Serbia) from an AI agent: shipment status history by shipment number, address labels as PDF, the BEX address directory of municipalities, places and streets, and parcel shops and depots. Creating and cancelling shipments is included, installed switched off.

Connectors

Binance to MCP: Live Crypto Prices, Funding Rates and Open Interest in any AI Agent

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Connectors

Bind ERP to MCP: Sales, CFDI, Inventory and Clients of Your Bind Account in any AI Agent

Connect Bind ERP, the Mexican cloud ERP, to Claude or ChatGPT: clients and prospects, providers, products and inventory per warehouse, orders, quotes, sales with their CFDI XML, purchase orders, expenses, chart of accounts and journal entries, with OData filters. Writes and CFDI creation ship switched off.

Connectors

BricoBravo to MCP: Orders and Shipping of Your BricoBravo Shop in any AI Agent

Sell on BricoBravo, the Italian DIY and home marketplace, from an AI agent: orders with items, totals, customer and shipping address, filtered by date. Confirming shipment with courier and tracking is included, installed switched off.