by smn2gnt
MCP Salesforce Connector is a Model Context Protocol (MCP) server implementation designed to integrate Large Language Models (LLMs) with Salesforce, enabling seamless interaction with Salesforce data and metadata.
MCP Salesforce Connector is a server implementation of the Model Context Protocol (MCP) that facilitates the integration of Large Language Models (LLMs) with Salesforce. It allows LLMs to interact with Salesforce data and metadata by executing SOQL queries, SOSL searches, and various other Salesforce API requests.
To use MCP Salesforce Connector, you need to configure it within your claude_desktop_config.json
file. Add an entry to the mcpServers
section, specifying the command and arguments for the connector. Authentication can be done via OAuth (recommended, by setting SALESFORCE_ACCESS_TOKEN
and SALESFORCE_INSTANCE_URL
as environment variables) or Username/Password (legacy method, using SALESFORCE_USERNAME
, SALESFORCE_PASSWORD
, and SALESFORCE_SECURITY_TOKEN
).
Q: What authentication methods are supported? A: The server supports OAuth (recommended) and Username/Password (legacy) authentication methods.
Q: Do I need to set up both OAuth and Username/Password authentication?
A: No, if OAuth environment variables (SALESFORCE_ACCESS_TOKEN
and SALESFORCE_INSTANCE_URL
) are not set, the server will fall back to Username/Password authentication.
Q: Can I use this connector with any LLM? A: This connector is designed to work with LLMs that support the Model Context Protocol (MCP).
A Model Context Protocol (MCP) server implementation for Salesforce integration, allowing LLMs to interact with Salesforce data through SOQL queries and SOSL searches.
To use this server with the Model Context Protocol, you need to configure it in your claude_desktop_config.json
file. Add the following entry to the mcpServers
section:
{
"mcpServers": {
"salesforce": {
"command": "uvx",
"args": [
"--from",
"mcp-salesforce-connector",
"salesforce"
],
"env": {
"SALESFORCE_ACCESS_TOKEN": "SALESFORCE_ACCESS_TOKEN",
"SALESFORCE_INSTANCE_URL": "SALESFORCE_INSTANCE_URL",
}
}
}
}
Note on Salesforce Authentication Methods
This server supports two authentication methods:
SALESFORCE_ACCESS_TOKEN
and SALESFORCE_INSTANCE_URL
as environment variables.SALESFORCE_ACCESS_TOKEN
and SALESFORCE_INSTANCE_URL
are not set, the server will fall back to using SALESFORCE_USERNAME
, SALESFORCE_PASSWORD
, and SALESFORCE_SECURITY_TOKEN
.Reviews feature coming soon
Stay tuned for community discussions and feedback