Skip to main content
This page shows how to connect your Python code to Zapier MCP using a connection token.

Before you begin

Connect Python to Zapier MCP

1

Create an MCP server

  • Go to mcp.zapier.com.
  • Click Add MCP server.
  • Under Choose your AI agent, search for and select Python.
2

Generate an API key

  • Select the link icon Connect tab.
  • Under Step 1: Get Your API Key, click Generate API Key.
  • Copy the API key.
The API key is only shown once. If you lose it, click Rotate API Key to get a new one. The previous key stops working straight away, so update anywhere you used it.
Treat your API key like a password. Anyone with it can run tools on this server and access your data.
3

Set your API key as an environment variable

4

Install FastMCP

Or with uv:
5

Connect and list your tools

This script uses FastMCP, but any MCP SDK that supports Streamable HTTP works. It sends your API key in an Authorization: Bearer header:
You’ve now connected Python to Zapier MCP.

Next steps

How tools work

What each meta-tool does, and how dynamic tool discovery works.

How connections work

How connection tokens work, and how to manage them.
Last modified on September 24, 2026