Salesforce MCP 服务器
一个 MCP(模型上下文协议)服务器实现,将 Claude 与 Salesforce 集成,从而实现与 Salesforce 数据和元数据的自然语言交互。此服务器允许 Claude 使用日常语言查询、修改和管理您的 Salesforce 对象和记录。
特征
对象和字段管理:使用自然语言创建和修改自定义对象和字段
智能对象搜索:使用部分名称匹配查找 Salesforce 对象
详细架构信息:获取任何对象的全面字段和关系详细信息
灵活的数据查询:使用关系支持和复杂过滤器查询记录
数据操作:轻松插入、更新、删除和插入记录
跨对象搜索:使用 SOSL 跨多个对象进行搜索
直观的错误处理:使用 Salesforce 特定的错误详细信息提供清晰的反馈
安装
设置
Salesforce 身份验证
您可以使用以下两种方法之一向 Salesforce 进行身份验证:
1.用户名/密码验证
设置您的 Salesforce 凭据
获取您的安全令牌(从 Salesforce 设置重置)
按照配置部分所示配置环境变量
2. 使用消费者密钥/秘密进行 OAuth2 身份验证
在 Salesforce 中设置连接的应用程序
获取消费者密钥和消费者秘密
按照配置部分所示配置环境变量
IDE 集成
光标 IDE 设置
全局安装包:
在 Cursor IDE
.cursor/mcp.json
中配置 MCP 服务器:
使用 env 命令
用于 Cursor 中的 OAuth2 身份验证
Claude 桌面设置
全局安装包(如果尚未安装):
添加到您的
claude_desktop_config.json
:
用于用户名/密码验证
对于 OAuth2 身份验证
配置文件位置:
macOS:
~/Library/Application Support/Claude Desktop/claude_desktop_config.json
Windows:
%APPDATA%\Claude Desktop\claude_desktop_config.json
Linux:
~/.config/Claude Desktop/claude_desktop_config.json
必需的环境变量
对于用户名/密码验证:
SALESFORCE_USERNAME
:您的 Salesforce 用户名/电子邮件SALESFORCE_PASSWORD
:您的 Salesforce 密码SALESFORCE_TOKEN
:您的 Salesforce 安全令牌SALESFORCE_INSTANCE_URL
:您的 Salesforce 实例 URL(可选,默认值: https://login.salesforce.com )
对于 OAuth2 身份验证:
SALESFORCE_USERNAME
:您的 Salesforce 用户名/电子邮件SALESFORCE_PASSWORD
:您的 Salesforce 密码SALESFORCE_CONSUMER_KEY
:您连接的应用程序的消费者密钥SALESFORCE_CONSUMER_SECRET
:您连接的应用程序的消费者秘密SALESFORCE_INSTANCE_URL
:您的 Salesforce 实例 URL(可选,默认值: https://login.salesforce.com )
示例用法
搜索对象
获取架构信息
查询记录
管理自定义对象
跨对象搜索
发展
从源代码构建
故障排除
身份验证错误
验证您的凭证是否正确
对于用户名/密码验证:确保安全令牌正确
对于 OAuth2:验证消费者密钥和秘密
连接问题
检查您的 Salesforce 实例 URL
验证网络连接
确保正确的 API 访问权限
Cursor IDE 集成
配置更改后重新启动 Cursor IDE
检查开发者工具(帮助 > 切换开发者工具)中的错误消息
验证软件包是否已全局安装
Claude 桌面集成
验证配置文件位置
检查文件权限
配置更改后重新启动 Claude Desktop
确保环境变量设置正确
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
问题与支持
如果您遇到任何问题或需要支持,请在 GitHub 存储库上提交问题。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
MCP 服务器实现将 Claude 与 Salesforce 集成,实现与 Salesforce 数据和元数据的自然语言交互,以查询、修改和管理对象和记录。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.Last updated -15660100MIT License
- AsecurityAlicenseAqualityAn MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.Last updated -27MIT License
- -securityFlicense-qualityAn MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.Last updated -
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata.Last updated -8132MIT License