Creativity · MCP — server

MCP Salesforce Server

The MCP Salesforce server exposes SOQL queries, standard CRUD on sObjects, and optional Apex or Flow execution to an LLM client. Salesforce's Agentforce platform includes first-party MCP integration so Einstein-based agents can use your org's data and actions natively; for bringing external agents like Claude into your org, community servers wrap the REST and Tooling APIs. Always authenticate with a dedicated Connected App and a least-privilege permission set.

MCP facts

Kind
server
Ecosystem
anthropic-mcp
Language
TypeScript
Transports
stdio, http

Capabilities

  • Tools: run_soql, describe_object, create_record, update_record, run_apex
  • Resources: sObject definitions and record URIs
  • Auth: OAuth 2.0 via Salesforce Connected App

Install

npx -y salesforce-mcp

Configuration

{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": ["-y", "salesforce-mcp"],
      "env": {
        "SF_LOGIN_URL": "https://login.salesforce.com",
        "SF_CLIENT_ID": "...",
        "SF_CLIENT_SECRET": "...",
        "SF_REFRESH_TOKEN": "..."
      }
    }
  }
}

Frequently asked questions

How does MCP relate to Agentforce?

Agentforce, Salesforce's agent platform, supports MCP-style tool integration so external MCP servers can extend Agentforce actions, and Agentforce tools can be invoked from MCP-aware agents.

What auth should I use?

Create a Connected App in Salesforce with the minimum OAuth scopes required, generate a refresh token for a dedicated integration user, and bind that user to a least-privilege permission set.

Is running Apex from MCP dangerous?

It can be — Apex runs in system context by default. Only enable the run_apex tool for trusted use cases, and prefer invocable Flows with explicit input bindings instead.

Sources

  1. Salesforce Agentforce — accessed 2026-04-20
  2. Salesforce REST API Developer Guide — accessed 2026-04-20