Back to MCP directory
publicPublicdnsLocal runtime

MCP-Salesforce

一个实现Model Context Protocol的Salesforce连接器,支持通过SOQL查询和SOSL搜索让LLM与Salesforce数据交互

article

README

🚀 MCP Salesforce 连接器

MCP Salesforce 连接器是一个模型上下文协议(MCP)服务器实现,专为与 Salesforce 集成而设计。它能让大语言模型(LLMs)借助 SOQL 查询和 SOSL 搜索,与 Salesforce 数据进行交互,为数据的获取和操作提供了便利。

✨ 主要特性

  • 执行 SOQL 查询:可使用 Salesforce 对象查询语言执行查询操作。
  • 执行 SOSL 搜索:支持使用 Salesforce 对象搜索语言进行搜索。
  • 获取元数据:能够获取 Salesforce 对象的元数据,涵盖字段名称、标签和类型等信息。
  • 记录操作:支持对记录进行检索、创建、更新和删除操作。
  • 执行 Tooling API 请求:可发起 Tooling API 请求。
  • 执行 Apex REST 请求:支持执行 Apex REST 请求。
  • 发起直接的 REST API 调用:能够直接发起 Salesforce REST API 调用。

📦 安装指南

文档未提及安装步骤,暂不展示此部分内容。

🚀 快速开始

配置模型上下文协议

若要使用此服务器与模型上下文协议配合,您需在 claude_desktop_config.json 文件中进行配置。在 mcpServers 部分添加以下内容:

{
    "mcpServers": {
        "salesforce": {
            "command": "uvx",
            "args": [
                "--from",
                "mcp-salesforce-connector",
                "salesforce"
            ],
            "env": {
                "SALESFORCE_USERNAME": "YOUR_SALESFORCE_USERNAME",
                "SALESFORCE_PASSWORD": "YOUR_SALESFORCE_PASSWORD",
                "SALESFORCE_SECURITY_TOKEN": "YOUR_SALESFORCE_SECURITY_TOKEN"
            }
        }
    }
}

请将 YOUR_SALESFORCE_USERNAMEYOUR_SALESFORCE_PASSWORDYOUR_SALESFORCE_SECURITY_TOKEN 替换为您的 Salesforce 凭证。

💻 使用示例

文档未提供代码示例,暂不展示此部分内容。

📚 详细文档

文档未提供详细说明,暂不展示此部分内容。

🔧 技术细节

文档未提供技术实现细节,暂不展示此部分内容。

📄 许可证

文档未提供许可证信息,暂不展示此部分内容。

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