Skip to content
Salesforce logoSalesforce logo

Salesforce Integrations

Premium

CRM (Customer Relationship Management)

Build Salesforce automations with your AI agent. Run them on Zapier.

Add Zapier to Claude, ChatGPT, Cursor, or another AI agent, and your agent can build automations across Salesforce and 10,000+ other apps.
apps to connect
10,000+
ways to start a workflow
9
available app actions
33
  • Dependable AI workflows
  • Full audit trails and controls
  • Easy visual workflow manager
  • Free tier available
  • SOC 2 Type II, SOC 3, GDPR, and CCPA compliant

Top teams trust Zapier to automate work

  • Samsung
  • Okta
  • Mastercard
  • Nvidia
  • Airbnb

Salesforce MCP server: connect Salesforce to your AI agent with Zapier

Install Zapier once, then tell your agent what you want done. Behind the scenes, Zapier MCP finds the right triggers and actions to use with Salesforce and runs them—all with your credentials managed by Zapier and kept out of the model.

Paste into any AI tool
Connect to Zapier MCP at https://mcp.zapier.com/api/v1/connect and help me sign in to Zapier or sign up. Then connect my Salesforce account and help me build a Zap with Salesforce: ask me what I want to automate. Read the setup steps at https://zapier.com/AGENTS.md if you can't connect.

Paste this prompt into Claude, ChatGPT, Cursor, or your preferred AI agent to build Salesforce automations.

MCP server · Streamable HTTP
https://mcp.zapier.com/api/v1/connect

Install this server in Claude, ChatGPT, Cursor, VS Code, or any MCP client. You sign in once with OAuth.

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection salesforce

Call any app action from TypeScript. Zapier handles OAuth, token refresh, retries, and rate limits.

Terminal · no project
npx @zapier/install-zapier

Run this command to print setup instructions for your client, then follow the prompts to sign in.

Ask your AI agent to do it

Tell Claude, ChatGPT, or your go-to AI agent to install Zapier MCP, and it’ll get you started with Zapier.

Wire it into your own code

Connect your agent to Salesforce and 10,000+ more apps with the TypeScript SDK. Zapier handles OAuth and token refresh.

Set it up from your terminal

Tell your coding agent to run one command. It installs Zapier MCP so your agent can use Salesforce and other apps.

Use a premade Salesforce automation template to start building from anywhere: in your go-to agent interface, in code, or in Zapier.

With Zapier MCP installed, your AI agent can build automations across 10,000+ apps and 90,000+ triggers and actions. Automations run reliably on Zapier from an app event, on a schedule (cron), or from a webhook. Here are the Salesforce triggers and actions your agent can build with right away.

  • New Case Attachment

    Triggers when a new Attachment is added to a case.

  • New Contact

    Triggers when a new Contact is created.

  • New Field History Tracking Event

    Triggers when a field is updated on the object specified. It will output the old and new field values.

  • New or Updated File on Record

    Triggers when an attachment, note, or content document is added or updated on any record of the specified Salesforce object.

  • New Lead

    Triggers when a new Lead is created.

  • New Outbound Message

    Triggers when a new outbound message is received in Salesforce.

  • New Record

    Triggers when a record of the specified Salesforce object (ie. Contact, Lead, Opportunity, etc.) is created.

  • Updated Field on Record

    Triggers when a field of your choosing (ie. email address, status) is updated on any record of a specified Salesforce object (ie. Contact, Lead, Opportunity, etc.).

Your agent picks the right Salesforce action from what you ask. Connect Zapier once and it can use 41 Salesforce tools, each with typed inputs. Zapier handles Salesforce’s login, so you never paste an API key. The same actions run from TypeScript through the Zapier SDK.

Set up Salesforce MCP in Claude, Claude Code, ChatGPT, Cursor, and Codex

Zapier MCP works with any MCP client that supports Streamable HTTP. Connect or add Zapier in your AI tool, sign in when prompted, then ask for Salesforce.

MCP server · Streamable HTTP · OAuth
https://mcp.zapier.com/api/v1/connect
  • Claude

    Connect Zapier in Claude and sign in when prompted. Claude setup guide

  • Claude Code

    Install Zapier MCP in Claude Code, then sign in from the terminal. Claude Code setup guide

  • ChatGPT

    Connect Zapier in ChatGPT and approve the sign-in. ChatGPT setup guide

  • Cursormcp.json

    Add Zapier to Cursor and sign in. Cursor setup guide

  • Codex

    Add Zapier to Codex and sign in. Codex setup guide

  • VS Code and other clientsmcp.json

    Add Zapier to any MCP client that supports Streamable HTTP.

  • OpenCodeopencode.json

    Add Zapier to OpenCode.

  • Terminal auto-installer

    Install Zapier MCP in whichever client you have.

How your agent gets these tools

  1. Connect Zapier to your AI tool (pick yours above) and sign in once in the browser. Zapier sets up your MCP server, with no token to paste.
  2. Ask your agent to connect Salesforce. It calls discover_zapier_actions to find the Salesforce actions, then enable_zapier_action to add them.
  3. Approve the Salesforce sign-in when prompted. If Salesforce isn’t connected yet, the first call returns a sign-in link.
  4. Ask for what you want done in plain language. Each enabled action becomes its own tool, named as below. Until then, execute_zapier_read_action and execute_zapier_write_action run it.

Use Salesforce in 35 AI tools with Zapier MCP

41 Salesforce MCP tools

ToolMCP nameWhat it does
New Case Attachmentsalesforce_new_case_attachment

Trigger · Read-only. Triggers when a new Attachment is added to a case.

New Contactsalesforce_new_contact

Trigger · Read-only. Triggers when a new Contact is created.

New Field History Tracking Eventsalesforce_new_field_history_tracking_event

Trigger · Read-only. Triggers when a field is updated on the object specified. It will output the old and new field values.

Required: history_object_name (History Object)

New or Updated File on Recordsalesforce_new_or_updated_file_on_record

Trigger · Read-only. Triggers when an attachment, note, or content document is added or updated on any record of the specified Salesforce object.

Required: object (Salesforce Object)

Optional: record (Record (Optional))

New Leadsalesforce_new_lead

Trigger · Read-only. Triggers when a new Lead is created.

New Outbound Messagesalesforce_new_outbound_message

Trigger · Read-only. Triggers when a new outbound message is received in Salesforce.

New Recordsalesforce_new_record

Trigger · Read-only. Triggers when a record of the specified Salesforce object (ie. Contact, Lead, Opportunity, etc.) is created.

Required: object (Salesforce Objects)

Updated Field on Recordsalesforce_updated_field_on_record

Trigger · Read-only. Triggers when a field of your choosing (ie. email address, status) is updated on any record of a specified Salesforce object (ie. Contact, Lead, Opportunity, etc.).

Required: object (Salesforce Object)

Updated Recordsalesforce_updated_record

Trigger · Read-only. Triggers when any record of the specified Salesforce object (ie. Contact, Lead, Opportunity, etc.) is updated.

Required: object (Salesforce Object)

Custom SOQL Querysalesforce_custom_soql_query

Search · Read-only. Execute custom SOQL SELECT queries with support for full query control and guided aggregate functions (COUNT, SUM, AVG, MAX, MIN).

Required: query_type (Query Type)

Optional: include_deleted (Include Deleted Records)

Custom SOSL Querysalesforce_custom_sosl_query

Search · Read-only. Execute custom SOSL (Salesforce Object Search Language) queries for text-based searches across multiple objects and fields. Useful for searching Salesforce Knowledge Base articles and other cross-object text searches.

Required: sosl_query (SOSL Query)

Find Child Recordssalesforce_find_child_records

Search · Read-only. Finds Child Records for a given Parent ID.

Required: object (Parent Object)

Find Recordsalesforce_find_record

Search · Read-only. Finds a record of a specified Salesforce object by up to two fields and values you choose.

Required: object (Salesforce Object), searchValue (Search Value)

Optional: searchField2 (Second Field to Search By), searchValue2 (Second Search Value), operator (Search Operator)

Find Records by Querysalesforce_find_records_by_query

Search · Read-only. Finds records of a Salesforce object using a Salesforce Object Query (SOQL) WHERE clause.

Required: object (Salesforce Object), where_clause (SOQL WHERE clause)

Find Recordssalesforce_find_records

Search · Read-only. Finds records of a specified Salesforce object by a field and value you choose (with line-item support).

Required: object (Salesforce Object)

Find Record by Querysalesforce_find_record_by_query

Search · Read-only. Finds a record of a Salesforce object using a Salesforce Object Query (SOQL) WHERE clause.

Required: object (Salesforce Object), whereClause (SOQL WHERE Clause)

Optional: order_by (Sort by), order_direction (Sort Order), limit (Maximum Number of Records)

Get Record Attachmentssalesforce_get_record_attachments

Search · Read-only. Gets all notes and attachments for a record.

Required: object (Salesforce Object), id (Record ID)

Make API GET Requestsalesforce_make_api_get_request

Action · Read-only. Make a GET HTTP request to Salesforce's API, without needing to handle authentication. Fixed parameters: - method: GET

Required: fail_on_errors (Stop on error), url

Optional: querystring (Query string parameters), headers (Additional request headers), body

Add Contact to Campaignsalesforce_add_contact_to_campaign

Action · Writes data. Adds an existing contact to an existing campaign.

Required: string::CampaignId::0::0 (Campaign), string::ContactId::0::0 (Contact)

Add File to Recordsalesforce_add_file_to_record

Action · Writes data. Adds an existing file to an existing Record.

Required: object (Salesforce Object), string::LinkedEntityId::0::0 (Record), string::ContentDocumentId::0::0 (File), string::Visibility::0::0 (Visibility)

Add Lead to Campaignsalesforce_add_lead_to_campaign

Action · Writes data. Adds an existing lead to an existing campaign.

Required: string::CampaignId::0::0 (Campaign), string::LeadId::0::0 (Lead)

Call Apex RESTsalesforce_call_apex_rest

Action · Writes data. Direct pass-through to custom Apex REST endpoints at /services/apexrest/... with minimal processing. Send exactly what your Apex class expects.

Required: path (Path after /services/apexrest/), method (HTTP method)

Optional: querystring (Query parameters), headers (Extra headers), body (Request body), timeout

Convert Lead to Contactsalesforce_convert_lead_to_contact

Action · Writes data. Adds an existing contact to an existing campaign.

Required: lead, account, converted_status (Converted Status)

Optional: opportunity, create_opportunity (Create new opportunity?)

Create Attachmentsalesforce_create_attachment

Action · Writes data. Creates a new attachment (max 25MB).

Required: fileURL (File), object (Salesforce Object)

Optional: description, isPrivate (Attachment visibility)

Create Child Records (with line item support)salesforce_create_child_records_with_line_item_sup

Action · Writes data. Creates records from line items and sets the parent-child relationship.

Required: parentObject (Parent Object)

Optional: useAssignmentRules (Use Assignment Rules)

Create Contactsalesforce_create_contact

Action · Writes data. Creates a new contact.

Create Enhanced Notesalesforce_create_enhanced_note

Action · Writes data. Creates a new enhanced note (also known as ContentNote) with optional record attachment.

Required: title (Note Title), content (Note Content)

Optional: object (Salesforce Object)

Create Filesalesforce_create_file

Action · Writes data. Creates a new File (max 25MB).

Required: fileURL (File)

Optional: title, description, object (Salesforce Object)

Create Leadsalesforce_create_lead

Action · Writes data. Creates a new lead in Salesforce.

Optional: useAssignmentRules (Use Assignment Rules)

Create Notesalesforce_create_note

Action · Writes data. Creates a new note and links it to a parent record

Required: title (Note Title), object (Salesforce Object)

Optional: body (Note), isPrivate (Note Visibility), useAssignmentRules (Use Assignment Rules)

Create Recordsalesforce_create_record

Action · Writes data. Creates a new record of a specified Salesforce object.

Required: object (Salesforce Object)

Optional: useAssignmentRules (Use Assignment Rules), allowDuplicates (Allow Duplicates)

Create Record (UTC)salesforce_create_record_utc

Action · Writes data. Creates a new record of a specified Salesforce object. Dates use the UTC format.

Required: object (Salesforce Object)

Optional: useAssignmentRules (Use Assignment Rules), allowDuplicates (Allow Duplicates)

Delete Recordsalesforce_delete_record

Action · Writes data. Deletes an existing record of a specified Salesforce object.

Required: object (Salesforce Object), recordId (Record ID)

Launch Flowsalesforce_launch_flow

Action · Writes data. Launch a Salesforce flow with optional input parameters. The flow will execute and return any output values.

Required: flowName (Flow)

Optional: flowInputs (Manual flow input parameters)

Run Reportsalesforce_run_report

Action · Writes data. Execute a Salesforce Analytics report and retrieve the results with optional custom filters and groupings.

Required: reportId (Report)

Optional: includeDetails (Include details), numCustomFilters (Number of custom filters), rowGroupings (Row groupings), columnGroupings (Column groupings), aggregates (Summary calculations), detailColumns (Detail columns), sortBy (Sort order), reportFormat (Report format), advancedOptions (Advanced report options)

Send Emailsalesforce_send_email

Action · Writes data. Sends an email using Salesforce Simple Email Actions.

Required: toAddresses (To), emailSubject (Subject), bodyFormat (Email Format), senderType (Sender Type)

Optional: ccAddresses (CC), bccAddresses (BCC)

Update Contactsalesforce_update_contact

Action · Writes data. Updates an existing contact in Salesforce.

Required: record_id (Contact to Update)

Update Leadsalesforce_update_lead

Action · Writes data. Updates an existing lead in Salesforce.

Required: record_id (Lead to Update)

Optional: useAssignmentRules (Use Assignment Rules)

Update Recordsalesforce_update_record

Action · Writes data. Updates an existing record for a specified Salesforce object (ie. Contact, Lead, Opportunity, etc.).

Required: object (Salesforce Object), record_id (Record to Update)

Optional: useAssignmentRules (Use Assignment Rules)

Update Record (UTC)salesforce_update_record_utc

Action · Writes data. Updates an existing record of a specified Salesforce object. Dates use the UTC format.

Required: object (Salesforce Object), record_id (Record to Update)

Optional: useAssignmentRules (Use Assignment Rules)

Make API Mutating Requestsalesforce_make_api_mutating_request

Action · Writes data. Make a mutating HTTP request (POST, PUT, PATCH, DELETE, etc.) to Salesforce's API, without needing to handle authentication.

Required: fail_on_errors (Stop on error), method (HTTP Method), url

Optional: querystring (Query string parameters), headers (Additional request headers), body

Salesforce API with the Zapier SDK, without pasting an API key

The Zapier SDK gives your code one way to call Salesforce. You connect your account once, and your code references that connection instead of a raw token.

add_contact_to_campaign (Add Contact to Campaign) requires string::CampaignId::0::0 and string::ContactId::0::0. Every Salesforce action and its inputs are listed under Salesforce triggers and actions above. Zapier handles OAuth, token refresh, retries and rate limits. Read the SDK docs

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection salesforce
TypeScript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "salesforce", owner: "me" });

const { data } = await zapier.runAction({
  app: "salesforce",
  actionType: "write",
  action: "add_contact_to_campaign",
  connection: connection.id,
  inputs: {
    "string::CampaignId::0::0": "", // Campaign
    "string::ContactId::0::0": "", // Contact
  },
});
Zapier SDK CLI
npx zapier-sdk run-action salesforce write add_contact_to_campaign \
  --inputs '{"string::CampaignId::0::0":"","string::ContactId::0::0":""}'

Frequently asked questions about automating with Salesforce

How do I connect Salesforce to Claude?

Connect Zapier in Claude, sign in to Zapier, then ask Claude to connect Salesforce. Claude finds the Salesforce actions and adds them. If Salesforce needs a sign-in, you approve it once.

Can I use the Salesforce API without managing API keys?

With the Zapier SDK you connect your Salesforce account to Zapier once, and your code runs actions through that connection. Zapier handles Salesforce’s login, so you never paste an API key into your code.

What can an AI agent do with Salesforce?

Through Zapier MCP, your agent can use 41 Salesforce tools, such as New Case Attachment, New Contact, and New Field History Tracking Event. 18 tools only read data, so you can start with those before you let your agent make changes.

My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

Point your AI agent to this page’s markdown file to build Salesforce automations. It covers how Salesforce connects, every trigger and action with its inputs, and how to run them with Zapier MCP, the SDK, or the CLI.

About Salesforce

Salesforce is a leading enterprise customer relationship manager (CRM) application.