Execute a SOQL (Salesforce Object Query Language) query to retrieve data from Salesforce
Execute a SOSL (Salesforce Object Search Language) search to find records in Salesforce
Retrieve metadata for a Salesforce object, including its fields and relationships
Retrieve field information for a specific Salesforce object
Retrieve a specific record from Salesforce by ID
Create a new record in Salesforce
Update an existing record in Salesforce
Delete a record from Salesforce
Execute a request to the Salesforce Tooling API
Execute a request to a custom Apex REST endpoint
Execute a direct REST API call to Salesforce
The Salesforce Connector provides a seamless integration between large language models and Salesforce data. It enables LLMs to execute SOQL queries, perform SOSL searches, and interact with Salesforce records and metadata directly. With this connector, AI assistants can retrieve, create, update, and delete Salesforce records, access object metadata, and execute Tooling API and Apex REST requests. This makes it an essential tool for developers and business users who want to leverage AI capabilities with their Salesforce instance.
To install the Salesforce Connector, you'll need to add it to your Model Context Protocol configuration.
pip install mcp-salesforce-connector
claude_desktop_config.json
):{
"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_USERNAME
: Your Salesforce account usernameYOUR_SALESFORCE_PASSWORD
: Your Salesforce account passwordYOUR_SALESFORCE_SECURITY_TOKEN
: Your Salesforce security tokenOnce configured, the Salesforce Connector provides several tools that allow AI assistants to interact with your Salesforce data:
Use the execute_soql
tool to run Salesforce Object Query Language queries:
I need to find all Accounts created in the last 30 days.
Use the execute_sosl
tool to perform Salesforce Object Search Language searches:
Search for contacts with "Smith" in their name.
Retrieve metadata about Salesforce objects to understand their structure:
What fields are available on the Lead object?
Create, read, update, and delete Salesforce records:
Create a new Contact with the name "John Doe" and email "john.doe@example.com".
If you encounter connection issues:
For more detailed information, refer to the GitHub repository.