Enterprise2-minute read7 languages

Salesforce MCP Server: Leads, Opportunities and Cases

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

HCBy HelpCode teamUpdated 2 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

iiko MCP Server: Menus, Orders and Reservations

iiko and Syrve restaurant management through the iikoCloud API (Syrve Cloud API): organizations and terminal groups, menu and external menus, stop lists, delivery and table orders, reservations, couriers, order and payment types, discounts and loyalty customers. API login from the web back office.

Connectors

YCLIENTS MCP Server: Appointments, Clients and Staff

YCLIENTS (Altegio outside the CIS) booking and CRM for salons, clinics and studios: branches, services, staff, schedules and free slots, appointments (list, create, change), clients and their visit history, products and stock, cash registers and financial transactions (read), reviews and analytics. Partner token plus user token.

Connectors

ablefy MCP Server: Products, Invoices and Payments

ablefy (formerly elopage) seller API: products, pricing plans, orders, payments, invoices and credit notes, event e-tickets, affiliates (publishers), funnels and webhook endpoints, plus free orders that grant product access. API key and secret.

Connectors

Action1 MCP Server: Updates, Vulnerabilities and Devices

Action1 patch management and RMM from any AI agent: organizations, managed endpoints with hardware and status, missing Windows and third-party updates, vulnerabilities (CVEs) and the endpoints they affect, installed software, endpoint groups, reports with drill-down, automations and their results, the Software Repository and the audit trail. Read-only apart from renaming an endpoint.

Connectors

Adesk MCP Server: Transactions, Projects and Budgets

Adesk (adesk.ru) management accounting for small business: cash transactions on bank and cash accounts, income and expense categories, counterparties and their obligations, projects and deals with profit figures, legal entities and budgets. Bookkeeping records only, no payments. API token.

Connectors

Appwrite MCP Server: Database Rows, Users and Files

Appwrite backend from any AI agent, Cloud or self-hosted: query and write database rows (TablesDB) or documents (older servers), read the users of your app with their sessions and teams, storage buckets and file descriptions, functions and their execution logs. Project API key. Deleting rows and running functions are switched off.