Salesforce MCP server for AI agents
Query and search Salesforce data with SOQL and SOSL, read, create, update and delete records of any object, describe objects and fields, and check the org's API limits.
Runs with your users' own Salesforce accounts. Credentials stay on prompt-tm.com.
11 tools · 0 triggers
- Auth
- OAuth 2.0 (sign in with the app)
- Tools
- 11
- Triggers
- 0
- Category
- CRM
Tools and triggers
Run a SOQL query
SALESFORCE_QUERY
Runs a SOQL query (`SELECT Id, Name FROM Account WHERE ... LIMIT 10`) and returns the records. When `done` is false, pass the last part of `nextRecordsUrl` to Get more query results.read-only
Run a SOQL query including deleted records
SALESFORCE_QUERY_ALL
Like Run a SOQL query, but also returns records that were deleted or merged and are still in the Recycle Bin.read-only
Get more query results
SALESFORCE_QUERY_MORE
Returns the next batch of a query that wasn't `done`. `query_id` is the last part of the `nextRecordsUrl` of the previous answer (like `01gxx0000000001AAA-2000`).read-only
Run a SOSL search
SALESFORCE_SEARCH
Runs a SOSL search (`FIND {Acme} IN ALL FIELDS RETURNING Account(Id, Name)`) across objects and returns the matches.read-only
List objects
SALESFORCE_LIST_SOBJECTS
Lists the objects the org exposes through the API, standard and custom, with their API names and labels.read-only
Describe an object
SALESFORCE_DESCRIBE_SOBJECT
Returns an object's fields (API names, labels, types, picklist values), record types and what the user may do with it. Use it to learn the field names before a query or a write.read-only
Get a record
SALESFORCE_GET_RECORD
Returns one record by its ID. Name the fields you want in `fields` or all of them come back.read-only
Create a record
SALESFORCE_CREATE_RECORD
Creates a record. `fields` maps field API names to values, such as `{ "Name": "Acme", "Industry": "Technology" }`. Returns the new record's `id`.
Update a record
SALESFORCE_UPDATE_RECORD
Changes the fields given in `fields` on a record and leaves the others alone. Salesforce answers with no content when it worked.
Delete a record
SALESFORCE_DELETE_RECORD
Deletes a record. Salesforce moves most records to the Recycle Bin first.destructive
Get the org's limits
SALESFORCE_GET_LIMITS
Returns the org's API limits and how much of each is used, such as daily API requests.read-only
Try Salesforce now
Sign in, connect your account and run any of these in the playground, or ask your agent through the router.
- “Run a SOQL query”SALESFORCE_QUERY
- “Run a SOQL query including deleted records”SALESFORCE_QUERY_ALL
- “Get more query results”SALESFORCE_QUERY_MORE
Connect via MCP
Create an MCP server for Salesforce in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.
claude mcp add --transport http salesforce \
"https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
--header "x-api-key: ptm_…"Connect via REST
Run a tool with one request. The response is { data, error, successful, log_id } for every tool.
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/SALESFORCE_QUERY \
-H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
-d '{ "user_id": "alice", "arguments": {} }'