Salesforce MCP Server
Exposes Salesforce data and actions via tools for running SOQL queries, describing objects, creating contacts, checking org limits, and a reusable account health review prompt.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Salesforce MCP ServerShow me accounts with no open opportunities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Salesforce MCP Server — Headless 360
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 |
| Read-only SOQL queries | SELECT-only + forbidden-keyword guard (tested) |
| Field names/types/labels for any SObject | read-only |
| Create a Contact | deliberately narrow — no generic DML tool |
| 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 testingClaude 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 neededThis server cannot be deployed
Maintenance
Related MCP Connectors
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Let AI agents query data and act across all your business apps via MCP.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.4 npm19MIT
- AlicenseAqualityDmaintenanceEnables 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.82MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Salesforce data and services via custom MCP tools, including account analytics, opportunity queries, case creation, and AI agent invocation.4-
- AlicenseAqualityCmaintenanceEnables AI agents to interact with Salesforce through MCP, supporting queries, records, metadata, and bulk operations with flexible OAuth authentication.16MIT