Salesforce MCP Server
Productivitystdiov0.8.0
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.
连接
将此配置添加到 .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>"
}
}
}
}工具 (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"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 许可证
- BSD-3-Clause
- 版本
- 0.8.0
- 星标
- 540
- 最后更新
- 2026年6月19日