50% off all paid plans: use code BLACKFRIDAY at checkout, until November 30. Get the deal

Developers

MCP and AI assistants

Connect Claude, Claude Code or another MCP client to your Pigeonify account, choose what it may do, and disconnect it at any time.

Pigeonify has an MCP (Model Context Protocol) server, so an AI assistant can work in your account for you: "add these people to the newsletter list", "how many contacts are in the trial-users segment?", "pause the onboarding automation", "send a test of the welcome email to me".

The server is at:

https://pigeonify.com/mcp

It uses Streamable HTTP, which current MCP clients support.

How it works

Every tool the assistant can use is a call to the Pigeonify API made with an API key for your account. So the assistant can do exactly what that key's scopes allow and nothing more, and it is held to the same validation, rate limits and sending rules as your own code. Tools the key cannot use are not even offered to the assistant.

Only the account owner or an admin can connect an assistant, because connecting one creates an API key for the whole account. See Team accounts.

Connecting Claude

Claude connects by signing you in. You do not need to paste a key.

  1. In Claude, open Settings → Connectors → Add custom connector.
  2. Enter https://pigeonify.com/mcp and add it.
  3. You are sent to Pigeonify. Sign in if you are not already.
  4. The page Connect … to Pigeonify shows which app is asking, which account it will act on, and where it returns to.
  5. Under Permissions, tick what the assistant may do. Unless the app asked for specific permissions, only the read permissions are ticked to begin with; anything that changes data or sends email must be ticked on purpose.
  6. Click Allow. (Click Cancel to refuse; nothing is shared.)

You must tick at least one permission. Choose carefully: the permissions are fixed for the life of the connection. To change them, disconnect and connect again.

After you allow it, the connection appears on the API Keys page as the app's name followed by "(connected app)". Its key renews itself while you use it. If the connection goes unused for 90 days, connect again.

Connecting Claude Code

Claude Code can use an API key. Create a key for it first (below), then run:

claude mcp add --transport http pigeonify https://pigeonify.com/mcp \
  --header "Authorization: Bearer pgn_your_api_key"

Other MCP clients

Any client that can send a header works with an API key. For a client configured by file:

{
  "mcpServers": {
    "pigeonify": {
      "type": "http",
      "url": "https://pigeonify.com/mcp",
      "headers": { "Authorization": "Bearer pgn_your_api_key" }
    }
  }
}

The key can also be sent as X-API-Key. Clients that support MCP sign-in (OAuth) can connect the same way Claude does, without a key.

Making a key for an assistant

  1. Go to API Keys and click Create API Key.
  2. Name it after the assistant, for example "Claude Code".
  3. Tick only the scopes you want the assistant to have. Untick send if it should not send email.
  4. Click Create Key and copy the key into your client's configuration.

See API keys and scopes.

What the assistant can do

These are all the tools, grouped by the scope each needs. A write scope includes the matching read tools.

Scope Tools
send send_email
contacts:read list_contacts, get_contact
contacts:write create_contact, update_contact, delete_contact
lists:read list_lists, list_list_members
lists:write create_list, add_to_list, remove_from_list
segments:read list_segments, get_segment
segments:write create_segment
events:write record_event
suppressions:read list_suppressions
suppressions:write add_suppression, remove_suppression
automations:read list_automations, get_automation
automations:write create_automation, update_automation, activate_automation, pause_automation, delete_automation
campaigns:read list_campaigns, get_campaign
campaigns:write create_campaign, update_campaign, send_campaign, delete_campaign
webhooks:manage list_webhooks, create_webhook, delete_webhook

Contacts and suppressions accept an email address wherever they accept an id, so you can talk about people by address.

Safety

  • Risky tools are marked. Tools that send email, delete something or switch an automation on are flagged as such to your client: send_email, send_campaign, activate_automation, delete_contact, delete_automation, delete_campaign, delete_webhook and remove_suppression. A client that asks before acting will ask you first. Read-only tools are marked too, so a client can run them without asking.
  • The usual rules still apply. The assistant sends only from your verified domains, suppressed and unsubscribed addresses are skipped, campaigns and automations reach only contacts who can be mailed, and the content screen and rate limits apply. It cannot opt anyone back in after an unsubscribe, bounce or complaint.
  • Start narrow. Read permissions are enough for questions and reports. Add write permissions when you need them.
  • Check before it sends. Ask the assistant to show you the campaign or message first, or send a test to yourself.

Disconnecting

  1. Go to API Keys.
  2. Find the connection (its name ends in "(connected app)"), or the key you created for the assistant.
  3. Click the bin icon and confirm.

Access ends immediately. A connected app cannot renew its access after that; to use it again, connect it again.

Troubleshooting

"Ask the account owner to connect this". You are a team member. Ask the owner or an admin to connect the app.

The assistant says a tool is missing. The key or connection does not have that tool's scope. Connect again with the permission ticked, or create a key with the scope.

insufficient_scope, rate_limited or other API errors. The assistant is passing on the API's answer. See Sending email with the API for what each code means.

Questions? Email support@pigeonify.com.

Still stuck?

Email us and a person will reply.

support@pigeonify.com