modelscope·@SurajAdsul/mcp-server-salesforce
一种MCP服务器实现,它将克劳德与Salesforce集成,从而能够以自然语言与Salesforce的数据和元数据进行交互,以查询、修改和管理对象和记录。
一个实现了MCP(模型上下文协议)的服务器,将Claude与Salesforce集成在一起,使您能够使用自然语言与您的Salesforce数据和元数据进行交互。该服务器允许Claude使用日常语言查询、修改和管理您的Salesforce对象和记录。
<a href="https://glama.ai/mcp/servers/n1rsv1aiee"> <img width="380" height="200" src="https://glama.ai/mcp/servers/n1rsv1aiee/badge" alt="Salesforce Server MCP server" /> </a>npm install -g @surajadsul02/mcp-server-salesforce
您可以使用以下两种方法之一来认证Salesforce:
npm install -g @surajadsul02/mcp-server-salesforce
.cursor/mcp.json中配置MCP服务器:{
"mcpServers": {
"salesforce": {
"command": "env",
"args": [
"SALESFORCE_USERNAME=your.actual.email@example.com",
"SALESFORCE_PASSWORD=YourActualPassword123",
"SALESFORCE_TOKEN=YourActualSecurityToken123",
"SALESFORCE_INSTANCE_URL=https://login.salesforce.com",
"npx",
"-y",
"@surajadsul02/mcp-server-salesforce"
]
}
}
}
{
"mcpServers": {
"salesforce": {
"command": "env",
"args": [
"SALESFORCE_USERNAME=your.actual.email@example.com",
"SALESFORCE_PASSWORD=YourActualPassword123",
"SALESFORCE_TOKEN=YourActualSecurityToken123",
"SALESFORCE_INSTANCE_URL=https://login.salesforce.com",
"SALESFORCE_CONSUMER_KEY=YourConsumerKey",
"SALESFORCE_CONSUMER_SECRET=YourConsumerSecret",
"npx",
"-y",
"@surajadsul02/mcp-server-salesforce"
]
}
}
}
npm install -g @surajadsul02/mcp-server-salesforce
claude_desktop_config.json文件中:{
"mcpServers": {
"salesforce": {
"command": "npx",
"args": ["-y", "@surajadsul02/mcp-server-salesforce"],
"env": {
"SALESFORCE_USERNAME": "your_username",
"SALESFORCE_PASSWORD": "your_password",
"SALESFORCE_TOKEN": "your_security_token",
"SALESFORCE_INSTANCE_URL": "https://login.salesforce.com"
}
}
}
}
{
"mcpServers": {
"salesforce": {
"command": "npx",
"args": ["-y", "@surajadsul02/mcp-server-salesforce"],
"env": {
"SALESFORCE_USERNAME": "your_username",
"SALESFORCE_PASSWORD": "your_password",
"SALESFORCE_CONSUMER_KEY": "your_consumer_key",
"SALESFORCE_CONSUMER_SECRET": "your_consumer_secret",
"SALESFORCE_INSTANCE_URL": "https://login.salesforce.com"
}
}
}
}
~/Library/Application Support/Claude Desktop/claude_desktop_config.json%APPDATA%\Claude Desktop\claude_desktop_config.json~/.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)"Find all objects related to Accounts"
"Show me objects that handle customer service"
"What objects are available for order management?"
"What fields are available in the Account object?"
"Show me the picklist values for Case Status"
"Describe the relationship fields in Opportunity"
"Get all Accounts created this month"
"Show me high-priority Cases with their related Contacts"
"Find all Opportunities over $100k"
"Create a Customer Feedback object"
"Add a Rating field to the Feedback object"
"Update sharing settings for the Service Request object"
"Search for 'cloud' in Accounts and Opportunities"
"Find mentions of 'network issue' in Cases and Knowledge Articles"
"Search for customer name across all relevant objects"
# Clone the repository
git clone https://github.com/surajadsul02/mcp-server-salesforce.git
# Navigate to directory
cd mcp-server-salesforce
# Install dependencies
npm install
# Build the project
npm run build
认证错误
连接问题
Cursor IDE 集成
Claude Desktop 集成
欢迎贡献!请随时提交 Pull Request。
本项目根据 MIT 许可证许可 - 详情请参阅 LICENSE 文件。
如果您遇到任何问题或需要支持,请在 GitHub 仓库中提交一个问题。
审计 npm 包依赖项以查找安全漏洞,提供详细的报告和修复建议,并集成 MCP。
通过API层将克劳德桌面版直接连接到数据库,使其能够探索数据库结构、编写SQL查询、分析数据集和创建报告。该API层还包含用于表探索和查询执行的工具。
DBCode 是一个 Visual Studio Code 扩展,允许你管理许多数据库,包括 PostgreSQL、MySQL、SQL Server、DuckDB、Redis、MongoDB 等更多数据库。 DBCode 提供了运行 MCP 服务器的选项,可以访问这些数据库、它们的模式以及执行查询的能力。
AI 首选的统一数据访问通道,支持30多种数据源(阿里云全系/主流数据库/数仓)的安全访问。
后端服务,实现了模型控制面板协议,可连接到 Apache Doris 数据库,允许用户执行 SQL 查询、管理元数据,并且有可能利用大语言模型(LLMs)完成自然语言到 SQL 的转换等任务。
提供对Excel文件的操纵功能。此服务器启用工作簿创建、数据操纵、格式设置和高级Excel功能。