Salesforce MCP Server

Productivitystdiov0.8.0
Repository

MCP server for Salesforce that lets AI agents query and modify CRM data using SOQL, manage standard and custom objects (Accounts, Contacts, Opportunities, Cases), describe object metadata, and execute Apex anonymous blocks. Supports both production and sandbox orgs via OAuth or username-password flows.

Connect

Add this configuration to .claude/mcp.json

{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp"
      ],
      "env": {
        "SALESFORCE_INSTANCE_URL": "<YOUR_SALESFORCE_INSTANCE_URL>",
        "SALESFORCE_ACCESS_TOKEN": "<YOUR_SALESFORCE_ACCESS_TOKEN>"
      }
    }
  }
}

Tools (3)

run_soql

Execute a SOQL query and return matching records.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "SOQL query string"
    }
  }
}

create_record

Create a record for a given Salesforce object.

{
  "type": "object",
  "required": [
    "object_type",
    "fields"
  ],
  "properties": {
    "fields": {
      "type": "object",
      "description": "Field API name/value pairs"
    },
    "object_type": {
      "type": "string",
      "description": "Salesforce object API name (e.g., Account, Contact)"
    }
  }
}

describe_object

Return field and relationship metadata for a Salesforce object.

{
  "type": "object",
  "required": [
    "object_type"
  ],
  "properties": {
    "object_type": {
      "type": "string",
      "description": "Salesforce object API name"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server Information

Author
Salesforce Community (@salesforcecli)
Repository
https://github.com/salesforcecli/mcp
License
BSD-3-Clause
Version
0.8.0
Stars
540
Last Updated
June 19, 2026