S

Salesforce MCP服务器 实现

@kablewy/salesforce-mcp-server
0 Stars 22 次浏览 kablewy 更新于 2026-08-23

一个用于通过Salesforce的REST API进行交互的模型上下文协议服务器实现。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

Salesforce MCP 服务器

smithery 徽章

这是一个使用 jsforce 通过 REST API 与 Salesforce 交互的 Model Context Protocol 服务器实现。

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 Salesforce 服务器:

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

功能

  • 执行 SOQL 查询
  • 检索对象元数据
  • 创建、更新和删除记录
  • 安全认证处理
  • 实时数据访问

设置

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

使用

服务器公开了几个函数:

query

对你的 Salesforce 实例执行 SOQL 查询:

{
  "name": "query",
  "parameters": {
    "query": "SELECT Id, Name FROM Account LIMIT 5"
  }
}

describe-object

获取关于 Salesforce 对象的元数据:

{
  "name": "describe-object",
  "parameters": {
    "objectName": "Account"
  }
}

create

创建新记录:

{
  "name": "create",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "FirstName": "John",
      "LastName": "Doe",
      "Email": "john.doe@example.com"
    }
  }
}

update

更新现有记录:

{
  "name": "update",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "Id": "003XXXXXXXXXXXXXXX",
      "Email": "new.email@example.com"
    }
  }
}

delete

删除记录:

{
  "name": "delete",
  "parameters": {
    "objectName": "Contact",
    "id": "003XXXXXXXXXXXXXXX"
  }
}

安全

请确保:

  • 保护好你的 .env 文件,不要将其提交
  • 在可能的情况下在 Salesforce 中使用 IP 限制
  • 定期轮换你的安全令牌
  • 考虑为 MCP 服务器实现额外的身份验证

贡献

欢迎贡献!请提交带有改进的 PR。

Salesforce MCP 服务器

这是一个使用 jsforce 通过 REST API 与 Salesforce 交互的 Model Context Protocol 服务器实现。

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 Salesforce 服务器:

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

功能

  • 执行 SOQL 查询
  • 检索对象元数据
  • 创建、更新和删除记录
  • 安全认证处理
  • 实时数据访问

设置

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

使用

服务器公开了几个函数:

query

对你的 Salesforce 实例执行 SOQL 查询:

{
  "name": "query",
  "parameters": {
    "query": "SELECT Id, Name FROM Account LIMIT 5"
  }
}

describe-object

获取关于 Salesforce 对象的元数据:

{
  "name": "describe-object",
  "parameters": {
    "objectName": "Account"
  }
}

create

创建新记录:

{
  "name": "create",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "FirstName": "John",
      "LastName": "Doe",
      "Email": "john.doe@example.com"
    }
  }
}

update

更新现有记录:

{
  "name": "update",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "Id": "003XXXXXXXXXXXXXXX",
      "Email": "new.email@example.com"
    }
  }
}

delete

删除记录:

{
  "name": "delete",
  "parameters": {
    "objectName": "Contact",
    "id": "003XXXXXXXXXXXXXXX"
  }
}

安全

请确保:

  • 保护好你的 .env 文件,不要将其提交
  • 在可能的情况下在 Salesforce 中使用 IP 限制
  • 定期轮换你的安全令牌
  • 考虑为 MCP 服务器实现额外的身份验证

贡献

欢迎贡献!请提交带有改进的 PR。

许可证

MIT 许可证

MIT License

Copyright (c) 2024 Kablewy,LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

相关 MCP 服务