Skip to main content
Glama
89himanshu-dwivedi

Salesforce MCP Server

Salesforce MCP Server — Headless 360

Python MCP Salesforce

A Model Context Protocol server that exposes Salesforce as tools for any MCP client (Claude Desktop, VS Code, custom agents). Ask your AI "which accounts have stale opportunities?" and it queries your org directly — no login, no tab-switching.

What this demonstrates: the N×M integration problem MCP solves (N clients × M systems → N+M), tool design with least-privilege guardrails, and prompt templates as a first-class server capability.

Tools exposed

Tool

What it does

Guardrail

run_soql

Read-only SOQL queries

SELECT-only + forbidden-keyword guard (tested)

describe_object

Field names/types/labels for any SObject

read-only

create_contact

Create a Contact

deliberately narrow — no generic DML tool

org_limits

API/storage limits snapshot

read-only

Plus an MCP prompt: account_health_review — a reusable analysis template clients can invoke by name.

Related MCP server: MCP Salesforce Lite

Setup

pip install -r requirements.txt
cp .env.example .env   # add your credentials
mcp dev server.py      # inspector UI for local testing

Claude Desktop config

{
  "mcpServers": {
    "salesforce": {
      "command": "python",
      "args": ["C:/path/to/salesforce-mcp-server/server.py"],
      "env": {
        "SF_USERNAME": "you@example.com",
        "SF_PASSWORD": "...",
        "SF_SECURITY_TOKEN": "..."
      }
    }
  }
}

Security notes (the part that matters)

  • Least privilege: one narrow write tool instead of generic DML — an AI that can "do anything" is an incident waiting to happen.

  • SOQL guard: model-composed queries are validated before execution (tests/test_guard.py).

  • Prompt injection: treat records' field values as untrusted input — a Contact Description saying "ignore previous instructions" must never steer the agent. Keep write tools narrow and confirm destructive intents client-side.

  • Use a dedicated Integration User profile with minimal object permissions.

Tests

pytest -q   # guard tests run offline, no org needed
F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables AI agents to interact with Salesforce organizations through natural language by exposing Salesforce APIs (REST, Bulk v2, GraphQL, Tooling, Auth) as MCP tools for querying data, managing records, and executing SOQL queries.
    28
    19
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to securely interact with Salesforce CRM data through SOQL queries, CRUD operations, and metadata exploration. Supports connecting to Salesforce objects like Accounts, Contacts, and Opportunities via OAuth 2.0 authentication.
    8
    2
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to interact with Salesforce through a secure interface for performing CRUD operations, executing SOQL queries, and managing schema discovery. It features a smart learning system that analyzes custom objects and fields to provide intelligent assistance tailored to specific Salesforce configurations.
    14
    18
    17
    BSD 2-Clause "Simplified"

View all related MCP servers

Related MCP Connectors

  • Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…

  • Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.

  • LeadConnector / GoHighLevel MCP Pack — wraps the GoHighLevel CRM for AI agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/89himanshu-dwivedi/salesforce-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server