Salesforce

CRM and sales

MCP Salesforce connector.

Your AI app calls the Salesforce MCP server, which does the work through tools like run_sosl_search, get_object_fields, list_sobjects and tooling_execute and sends the result back to the chat.

About Salesforce

Salesforce is a community MCP server from smn2gnt, filed in our directory under crm and sales. MCP Salesforce connector.

The README for Salesforce lists tools such as run_soql_query, run_sosl_search, get_object_fields and list_sobjects, which your AI app can call once the server is connected.

At a glance

Publisher
smn2gnt (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
180

Tools Salesforce gives your AI app

  • run_soql_queryExecute SOQL queries against Salesforce.
  • run_sosl_searchPerform SOSL searches across objects.
  • get_object_fieldsRetrieve field metadata for specific objects.
  • list_sobjectsList all available SObjects (standard and custom).
  • tooling_executeExecute Tooling API requests.
  • apex_executeExecute Apex REST requests.
  • restfulMake direct REST API calls to Salesforce.
  • SALESFORCE_DOMAIN(Optional): Set to test to connect to a Salesforce sandbox environment. If not set or left empty, the server will connect to the production environment.
  • SALESFORCE_CLI_TARGET_ORG(Optional): When using the Salesforce CLI authentication method, set this to target a specific org alias or username instead of the default org.

Tool names as the Salesforce README lists them. Your AI app shows the live list once Salesforce is connected.

How to set up Salesforce

  1. Follow the install steps in the Salesforce README; it is written in Python, so have that toolchain ready.
  2. Check the Salesforce README for keys or settings; the registry lists none that Salesforce requires.
  3. Add Salesforce to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Salesforce tools to confirm the connection.
  5. Run one read-only task with Salesforce first, such as a call to run_soql_query, before you allow anything that writes or sends.

Salesforce compared with similar servers

  • Salesforce (tsmztech) by tsmztech has fewer GitHub stars than Salesforce (167 against 180); both are community servers, and both run locally.
  • Microsoft Dataverse by microsoft has more GitHub stars than Salesforce (270 against 180); Microsoft Dataverse is official while Salesforce is a community server, and both run locally.
  • MCPEval by SalesforceAIResearch has fewer GitHub stars than Salesforce (154 against 180); both are community servers, and both run locally. The MCPEval README lists 12 tools to Salesforce's 9.

Before you connect Salesforce

  • Give Salesforce its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Salesforce tool call until you trust what it does with them.
  • Treat text that Salesforce fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Salesforce on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Salesforce

How marketing and sales teams put Salesforce to work, by company size. Pick the size closest to yours and start Salesforce on one use case.

Small business

  • A founder who sells can ask for an account recap through Salesforce before every call, instead of clicking through five CRM tabs.
  • With Salesforce, a two-person team can log call notes and next steps from the chat window, so the CRM stays current without a RevOps hire.
  • Salesforce runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Sales and marketing teams can use Salesforce to pull every open deal touched by a campaign and see which ones stalled after the first meeting.
  • RevOps can have an agent run Salesforce weekly to find records with missing owners, stages or sources and queue the fixes for review.
  • Start with run_soql_query and run_sosl_search, the tools Salesforce lists first, and add more once the team trusts the results.

Enterprise

  • At enterprise scale, put Salesforce behind a service account with object-level scopes so agents read pipeline data without touching forecast fields.
  • Large sales orgs can use Salesforce to draft account plans from CRM history, with every write routed to a person for approval and logged.
  • Salesforce is a community server, so have security review the code and pin a version before Salesforce touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Salesforce README

From smn2gnt/MCP-Salesforce on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCP Salesforce Connector

A Model Context Protocol (MCP) server implementation for Salesforce integration, allowing LLMs to interact with Salesforce data through SOQL queries and SOSL searches.

Features

  • Execute SOQL (Salesforce Object Query Language) queries
  • Perform SOSL (Salesforce Object Search Language) searches
  • Retrieve metadata for Salesforce objects, including field names, labels, and types
  • List all available SObjects - Discover standard and custom objects
  • Retrieve, create, update, and delete records
  • Execute Tooling API requests
  • Execute Apex REST requests
  • Make direct REST API calls to Salesforce

Configuration

Model Context Protocol

To use this server with the Model Context Protocol, you need to configure it in your claude_desktop_config.json file. Add the following entry to the mcpServers section:

{
    "mcpServers": {
        "salesforce": {
        "command": "uvx",
        "args": [
            "--from",
            "mcp-salesforce-connector",
            "salesforce"
        ],
        "env": {
            "SALESFORCE_ACCESS_TOKEN": "SALESFORCE_ACCESS_TOKEN",
            "SALESFORCE_INSTANCE_URL": "SALESFORCE_INSTANCE_URL",
            "SALESFORCE_DOMAIN": "SALESFORCE_DOMAIN"
            }
        }
    }
}

Available Tools

Query and Search Tools
  • run_soql_query - Execute SOQL queries against Salesforce
  • run_sosl_search - Perform SOSL searches across objects
Metadata Tools
  • get_object_fields - Retrieve field metadata for specific objects
  • list_sobjects - List all available SObjects (standard and custom)
Single Record Operations
  • get_record - Retrieve a specific record by ID
  • create_record - Create a new record
  • update_record - Update an existing record
  • delete_record - Delete a record
Bulk Operations
  • bulk_create_records - Create multiple records in a single operation
  • bulk_update_records - Update multiple records (must include Id field)
  • bulk_delete_records - Delete multiple records using record IDs
Advanced API Tools
  • tooling_execute - Execute Tooling API requests
  • apex_execute - Execute Apex REST requests
  • restful - Make direct REST API calls to Salesforce

Note on Salesforce Authentication Methods

This server supports four authentication methods:

  • OAuth (Recommended): Set SALESFORCE_ACCESS_TOKEN and SALESFORCE_INSTANCE_URL as environment variables.
  • Client Credentials: Set SALESFORCE_CLIENT_ID and SALESFORCE_CLIENT_SECRET for OAuth 2.0 Client Credentials flow. This is useful for server-to-server integrations.
  • Salesforce CLI (Default Org): If no OAuth env vars are set, the server will try to use the active Salesforce CLI default org from the current workspace (via sf org display --json or sfdx force:org:display --json). Optionally set SALESFORCE_CLI_TARGET_ORG to target a specific org.
  • Username/Password (Legacy): If SALESFORCE_ACCESS_TOKEN and SALESFORCE_INSTANCE_URL are not set, the server will fall back to using SALESFORCE_USERNAME, SALESFORCE_PASSWORD, and SALESFORCE_SECURITY_TOKEN.

Environment Configuration

  • SALESFORCE_DOMAIN (Optional): Set to test to connect to a Salesforce sandbox environment. If not set or left empty, the server will connect to the production environment.
  • SALESFORCE_CLI_TARGET_ORG (Optional): When using the Salesforce CLI authentication method, set this to target a specific org alias or username instead of the default org.

Questions about Salesforce

What is the Salesforce MCP server?

MCP Salesforce connector. Salesforce is maintained by smn2gnt on GitHub at smn2gnt/MCP-Salesforce, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Salesforce MCP server?

Salesforce doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (smn2gnt/MCP-Salesforce). Like most servers, Salesforce ends with a command or URL you paste into your AI app's MCP config.

Does Salesforce need an API key?

The registry lists no required keys for Salesforce. Check the Salesforce README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Salesforce an official MCP server?

No. Salesforce is a community server maintained by smn2gnt. Community servers can be excellent; read the code and the open issues before you give Salesforce access to company data.

What license is Salesforce under?

Salesforce is released under the MIT license, according to its GitHub repository. The license covers the code of Salesforce; the service it connects to has its own terms.