Back to MCP directory
publicPublicdnsLocal runtime

Salesforce CRM

Salesforce MCP服务器是一个通过REST API与Salesforce交互的模型上下文协议服务器实现,使用jsforce库,支持SOQL查询、元数据检索和记录操作。

article

README

🚀 Salesforce MCP 服务器

使用 jsforce 通过 Salesforce 的 REST API 实现的模型上下文协议 (Model Context Protocol) 服务器,用于与 Salesforce 交互,可助力用户更便捷地与 Salesforce 系统进行数据交互。

smithery badge

🚀 快速开始

使用 Smithery 安装

通过 Smithery 自动安装适用于 Claude Desktop 的 Salesforce Server:

npx -y @smithery/cli install salesforce-mcp-server --client claude

设置步骤

  1. 克隆仓库
  2. 复制 .env.example.env 并填写您的 Salesforce 凭证
  3. 安装依赖:npm install
  4. 构建:npm run build
  5. 启动:npm start

✨ 主要特性

  • 执行 SOQL 查询
  • 获取对象元数据
  • 创建、更新和删除记录
  • 安全的身份验证处理
  • 实时数据访问

💻 使用示例

该服务器暴露了几个功能:

基础用法

query(查询)

{
  "command": "query",
  "queryString": "SELECT Id, Name FROM Account"
}

describe_object(描述对象)

{
  "command": "describe_object",
  "objectName": "Account"
}

create_record(创建记录)

{
  "command": "create_record",
  "objectName": "Account",
  "fields": {
    "Name": "New Account",
    "Industry": "Technology"
  }
}

update_record(更新记录)

{
  "command": "update_record",
  "recordId": "001xx00000XXXXX",
  "objectName": "Account",
  "fields": {
    "Name": "Updated Account",
    "Industry": "Software"
  }
}

delete_record(删除记录)

{
  "command": "delete_record",
  // 原文档此处未完整,推测后续应有 recordId 和 objectName 等信息
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client