Productivity and CRM

Zapier API keys: find, store, rotate, and use them safely with AI agents

Zapier has two developer credentials: a Zapier MCP connection token, generated in a server's Settings tab at mcp.zapier.com and sent as Authorization: Bearer <token> to https://mcp.zapier.com/api/v1/connect, and a deploy key for the Zapier Platform CLI, created at developer.zapier.com/partner-settings/deploy-keys. A connection token lets whoever holds it run every tool on that MCP server and read what the tools return. Supported MCP clients such as Claude, ChatGPT and Cursor sign in with OAuth instead and need no token.

Zapier key types

TypePrefixSecret?ScopeExpiry
Zapier MCP connection token
Shown once. Several MCP clients can share one server's token, so rotating it affects all of them.
—YesRuns the tools on one Zapier MCP server, using the app connections added to that server, and reads the data they returnLong-lived; tied to one server until rotated
Zapier Platform deploy key
Required for zapier-platform login --sso when you sign in to Zapier with Google, Facebook or Microsoft.
—YesAuthenticates the Zapier Platform CLI to build and push your integrations—

How to create a Zapier key

  1. Go to mcp.zapier.com and click Add MCP server; under Choose your AI agent, select Other.
  2. Add the apps and actions the server should expose.
  3. Open the server's Settings tab and click Generate token in the API token section.
  4. Copy the token at once, because Zapier shows it only once, and store it in ZAPIER_MCP_TOKEN or a secrets manager.
  5. For the Platform CLI, create a deploy key at developer.zapier.com/partner-settings/deploy-keys instead.

Open Zapier's key settings

Limiting what the key can do

A Zapier MCP connection token is limited only by the server it belongs to: it can run every action that server exposes with that server's app connections. Keep each server small, with only the apps and actions an agent needs, and give each person their own server and token rather than sharing one, as Zapier advises. Send the token in the Authorization header rather than in the URL, because Zapier notes a URL is more likely to end up in a log, a shell history or a committed config file. For clients on Zapier's supported list, OAuth is the better choice because the client stores and refreshes the credential itself.

How to rotate a Zapier key

  1. Open the server at mcp.zapier.com and go to the Settings tab.
  2. Click Rotate token in the API token section and copy the new token.
  3. Update every MCP client and script that used the old token, then restart the clients.

Rotating immediately invalidates the previous Zapier token, so every client using it stops working until its configuration is updated. There is no overlap period.

How to revoke a Zapier key

  1. Rotate the token on the server's Settings tab, which kills the old value at once.
  2. To cut off an app instead, use the menu beside the app on the server and update its authentication.

If your Zapier key leaked

  1. Click Rotate token on the server's Settings tab straight away.
  2. Check the apps connected to the server for actions you did not run.
  3. Remove apps and actions the server does not need before handing out the new token.
  4. Store the new token in an environment variable such as ZAPIER_MCP_TOKEN, not in chat or a committed file.

Environment variables and CLI

Zapier's SDKs and docs read the key from ZAPIER_MCP_TOKEN or ZAPIER_DEPLOY_KEY.

Zapier Platform CLI (zapier-platform): zapier-platform login authenticates with a deploy key; add --sso if you sign in to Zapier through Google, Facebook or Microsoft. The older zapier login form is deprecated

Things that catch people out

  • Rotating a Zapier MCP token breaks every client that shares it at the same moment, so list where the token is used before rotating.
  • A server URL that carries the token as a query parameter is itself a secret; prefer the Authorization header.
  • OAuth clients (Claude, ChatGPT, Cursor) do not use connection tokens, so rotating a token does not fix an OAuth client's error.

Common Zapier authentication errors

McpAuthorizationError

An app connection on the Zapier MCP server has expired or been revoked, or the connection token saved in the MCP client is out of date.

Using your Zapier key with AI agents

A coding agent that can read your .env file or your shell history can read the key, and anything in its context can end up in logs, transcripts or a prompt-injected request. The safer pattern is to keep the key in a credential broker that performs the authenticated step for the agent and hands back only the result.

BotPassword works this way. For a Zapier key, these intents fit:

IntentWhat BotPassword does
run_withRuns a command with the key injected as an environment variable or a 0600 temporary file, never on the command line, and redacts the key from the output.
http_requestMakes an authenticated API call after checking the destination against the hosts this key may be sent to. The response comes back with credential-shaped values redacted, and one that holds the key itself is refused.

Zapier also publishes its own MCP server. Whatever server the agent uses, keep the credential it authenticates with out of the agent's context.

Set it up in your agent: Aider · Amp · Claude Code · Claude Desktop · Cline · OpenAI Codex CLI · all agents

Frequently asked questions

Where do I find my Zapier API key for MCP?

Zapier calls it a connection token. Open your server at mcp.zapier.com, go to Settings, and click Generate token under API token. It is shown once.

Does Claude or Cursor need a Zapier token?

No. Zapier's supported clients register Zapier as an MCP server and send you through a Zapier sign-in, then store and refresh the credential themselves.

How do I use a Zapier MCP token in my own code?

Zapier's Python and TypeScript examples read the token from ZAPIER_MCP_TOKEN and send it as Authorization: Bearer to https://mcp.zapier.com/api/v1/connect.

How do I reset a Zapier MCP token?

Click Rotate token in the API token section of the server's Settings tab. The old token stops working immediately.

How do I log in to the Zapier Platform CLI without a password?

Create a deploy key at developer.zapier.com/partner-settings/deploy-keys and run zapier-platform login --sso.

Can an AI agent use my Zapier key without seeing it?

Yes, if the key never enters the agent's context. Instead of pasting the key into a chat or leaving it in a .env file the agent can read, keep it in a credential broker that injects it into the command or request on the agent's behalf. BotPassword does this with run_with, http_request, so the agent gets the result and never the value.

Stop pasting Zapier keys into agents

BotPassword is in early access. Request an invite and we'll email you when your spot opens.