Salesforce MCP Server
Enables interaction with Salesforce orgs to perform operations like querying data with SOQL, managing records, and executing Apex code. It provides configurable access levels and support for both standard and Tooling APIs via natural language interfaces.
README
Salesforce MCP Server
Setup
uv venv .venv
uv pip install --python .venv/bin/python -e .
Configuration
Set environment variables for authentication:
Username/Password (default):
SALESFORCE_USERNAME=your-username
SALESFORCE_PASSWORD=your-password
SALESFORCE_SECURITY_TOKEN=your-token
SALESFORCE_DOMAIN=login # or "test" for sandbox
Note: SOAP API login is disabled by default in newer Salesforce orgs. To enable it:
- Go to Setup → Quick Find → User Interface
- Under API Settings, enable Enable SOAP API login()
- Click Save
OAuth (alternative, recommended for enterprise):
SALESFORCE_ACCESS_TOKEN=your-token
SALESFORCE_INSTANCE_URL=https://your-instance.salesforce.com
Access Mode
Control which tools are available by setting SALESFORCE_ACCESS_MODE:
| Value | Tools Available | Use Case |
|---|---|---|
read |
list_objects, describe_object, run_soql_query, run_sosl_search, get_record | Safe exploration, reporting, read-only integrations |
read_write |
All read tools + create_record, update_record | Day-to-day CRM operations |
all (default) |
All tools including delete_record, tooling_execute, apex_execute, restful | Full API access |
Recommended Security Levels
| Environment | Recommended Mode | Rationale |
|---|---|---|
| Production (end users) | read |
Prevents accidental data modification |
| Production (trusted ops) | read_write |
Allows CRM data entry, blocks deletes and raw API |
| Sandbox / Development | all |
Full access for testing and development |
| Demo / Exploration | read |
Safe for exploring org structure and data |
Set it in your environment or MCP server config:
SALESFORCE_ACCESS_MODE=read
Tip: When using this server with MintMCP, you can configure fine-grained per-tool permissions directly in MintMCP instead of using the env var. This gives you more granular control (e.g., allow create but not update) without needing to restart the server.
Tool Permissions by Access Mode
MCP tool annotations (readOnlyHint, destructiveHint) are set on each tool so MCP clients can enforce additional policies:
| Tool | Access Mode | readOnlyHint | destructiveHint | openWorldHint |
|---|---|---|---|---|
list_objects |
read | true | — | — |
describe_object |
read | true | — | — |
run_soql_query |
read | true | — | — |
run_sosl_search |
read | true | — | — |
get_record |
read | true | — | — |
create_record |
read_write | false | — | — |
update_record |
read_write | false | — | — |
delete_record |
all | false | true | — |
tooling_execute |
all | false | — | true |
apex_execute |
all | false | — | true |
restful |
all | false | — | true |
Run
.venv/bin/python -m salesforce_mcp
Tools
| Tool | Description |
|---|---|
list_objects |
List all Salesforce objects in the org (with optional search filter) |
describe_object |
Get fields, relationships, picklist values, and record types for an object |
run_soql_query |
Execute a SOQL query |
run_sosl_search |
Cross-object full-text search via SOSL |
get_record |
Get a single record by ID |
create_record |
Create a new record |
update_record |
Update fields on an existing record |
delete_record |
Permanently delete a record |
tooling_execute |
Salesforce Tooling API (metadata, Apex classes, custom fields) |
apex_execute |
Call custom Apex REST endpoints |
restful |
Generic Salesforce REST API call |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。