Overview
This connector provides tools for:- SOQL Queries - Query any Salesforce object with full SOQL support
- Record Management - Create, update, and delete records
- Object Metadata - Discover available objects and their fields
- Bulk Operations - Handle multiple records efficiently
Integration Options
Option A: Salesforce Hosted MCP (Coming Soon)
Salesforce is developing an official hosted MCP server, currently in beta with general availability expected in February 2026.Sign up for the beta at the Salesforce Developer Blog.
Option B: Deploy to Heroku
Deploy a community MCP server to Heroku:Register with Heroku AI
Available Tools
| Tool | Description |
|---|---|
query | Execute SOQL queries against Salesforce |
describe_object | Get metadata about a Salesforce object (fields, types, relationships) |
create | Create a new record in any Salesforce object |
update | Update an existing record by ID |
delete | Delete a record by ID |
Tool Details
query
Execute SOQL (Salesforce Object Query Language) queries to retrieve data. Parameters:query(string, required) - The SOQL query to execute
describe_object
Get metadata about a Salesforce object including fields, data types, and relationships. Parameters:object_name(string, required) - API name of the Salesforce object (e.g.,Account,Contact,Opportunity)
create
Create a new record in Salesforce. Parameters:object_name(string, required) - API name of the objectfields(object, required) - Field values for the new record
update
Update an existing record. Parameters:object_name(string, required) - API name of the objectrecord_id(string, required) - Salesforce record IDfields(object, required) - Fields to update
delete
Delete a record from Salesforce. Parameters:object_name(string, required) - API name of the objectrecord_id(string, required) - Salesforce record ID to delete
Using with Heroku AI Agents
- Python
- cURL
Configuration
| Variable | Description | Required |
|---|---|---|
SF_INSTANCE_URL | Your Salesforce instance URL | Yes |
SF_CLIENT_ID | Connected App consumer key | Yes |
SF_CLIENT_SECRET | Connected App consumer secret | Yes |
SF_USERNAME | Salesforce username | Yes |
SF_PASSWORD | Salesforce password | Yes |
SF_SECURITY_TOKEN | Security token (append to password if required) | Depends |
Setting Up a Connected App
- Go to Setup → App Manager → New Connected App
- Enable OAuth Settings
- Add OAuth scopes:
api,refresh_token,offline_access - Save and note the Consumer Key and Consumer Secret
- Configure your Heroku app with the credentials
Example Use Cases
Sales Pipeline
Account Research
Data Entry
Reporting
Case Management
Security Considerations
- Principle of Least Privilege - Use a Salesforce user with minimal required permissions
- Field-Level Security - The MCP server respects Salesforce field-level security
- API Limits - Monitor your Salesforce API usage limits
- Audit Logging - All operations are logged in Salesforce’s audit trail