
MCP服务器使AI助手能够通过Salesforce CLI与Salesforce组织交互,提供Apex执行、SOQL查询、元数据管理、代码分析等工具......
概览
Salesforce MCP 服务器是一款模型上下文协议(MCP)服务器,使 AI 助手能够与 Salesforce 组织交互。它提供了一套工具,使 AI 模型能够执行 Apex 代码、查询数据、描述对象,并通过 Salesforce CLI 管理 Salesforce 组织连接。 : @advanced-communities/salesforce-mcp-server - Node.js(v18及以上)- Salesforce CLI(sf)已安装并配置 - 至少一个经过认证的 Salesforce 组织 安装Salesforce MCP Server最简单的方式是直接从NPM使用npx: - 从 NPM 下载最新版本 - 直接运行服务器,无需手动安装 - 自动处理所有依赖 - ✅ 无需手动构建 - ✅ 始终获取最新的稳定版本 - ✅ 自动依赖管理 - ✅ 通过npm更新轻松更新 - ✅ 无需克隆仓库 为了实现全面托管的安装体验: 1. 从发布页面下载最新的 salesforce-mcp-server.mcpb 文件 2.
概述(AI 翻译)
怎么了
Salesforce MCP 服务器是一款模型上下文协议(MCP)服务器,使 AI 助手能够与 Salesforce 组织交互。它提供了一套工具,使 AI 模型能够执行 Apex 代码、查询数据、描述对象,并通过 Salesforce CLI 管理 Salesforce 组织连接。
NPM 包:@advanced-communities/salesforce-mcp-server
安装
先决条件
- Node.js(v22或更高)
- Salesforce CLI(
sf)安装并配置 - 至少一个认证的Salesforce组织
选项1:NPM安装(推荐)
安装Salesforce MCP服务器最简单的方法是直接从NPM使用npx:
该命令将:
- 从NPM下载最新版本
- 直接运行服务器,无需手动安装
- 自动处理所有依赖
NPM安装的好处:
- ✅ 无需人工组装
- ✅ 始终获取最新的稳定版本
- ✅ 自动依赖管理
- ✅ 通过
npm update进行轻松更新 - ✅ 无需克隆仓库
选项2:MCP捆绑包(MCPB)- 一键安装
为了实现全面托管的安装体验:
- 下载最新的 'salesforce-mcp-server。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Salesforce MCP Server
What is it
Salesforce MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with Salesforce organizations. It provides a set of tools that allow AI models to execute Apex code, query data, describe objects, and manage Salesforce org connections through the Salesforce CLI.
NPM Package: @advanced-communities/salesforce-mcp-server
Installation
Prerequisites
- Node.js (v22 or higher)
- Salesforce CLI (
sf) installed and configured - At least one authenticated Salesforce org
Option 1: NPM Installation (Recommended)
The easiest way to install Salesforce MCP Server is directly from NPM using npx:
npx @advanced-communities/salesforce-mcp-server
This command will:
- Download the latest version from NPM
- Run the server directly without manual installation
- Automatically handle all dependencies
Benefits of NPM Installation:
- ✅ No manual building required
- ✅ Always get the latest stable version
- ✅ Automatic dependency management
- ✅ Easy updates with
npm update - ✅ No need to clone the repository
Option 2: MCP Bundle (MCPB) - One-Click Installation
For a fully managed installation experience:
- Download the latest
salesforce-mcp-server.mcpbfile from the releases page - Double-click the
.mcpbfile to install - The extension will be automatically configured in your AI client
- All dependencies will be managed automatically
Option 3: Manual Installation - Build from source
For development or customization:
- Clone the repository:
git clone https://github.com/advancedcommunities/salesforce-mcp-server.git - Navigate to the directory:
cd salesforce-mcp-server - Install and build:
npm install && npm run build - The server will be available at
build/index.js
Add MCP Configuration to your client
To be able to run the MCP Server – you need a client. The client can be any AI app which supports the MCP protocol, such as:
安装
npx @advanced-communities/salesforce-mcp-server配置
{
"mcpServers": {
"salesforce-mcp-server": {
"command": "npx",
"args": ["@advanced-communities/salesforce-mcp-server"]
}
}
}