Connect an AI Agent to Mailpuff
Connect Claude, ChatGPT, Claude Code, Cursor or another AI app to Mailpuff through Saddle or the MCP Adapter, then check it works.
To let an AI agent run Mailpuff, install a free connector plugin on your WordPress site, copy the address Mailpuff shows in Settings → MCP & API, and add that address to your AI app. The connector can be Saddle or the WordPress MCP Adapter. Once connected, Claude, ChatGPT, Claude Code, Cursor or a similar app can write, test, schedule and report on your campaigns.
The connection uses MCP (Model Context Protocol), an open standard that lets AI apps use tools on other services. Any AI app that supports it can work with Mailpuff.
What do I need before I start?
- Mailpuff, active. Nothing else has to be set up first. An agent can connect PostShiba and add subscribers for you.
- An administrator account. The agent signs in as a WordPress administrator, and it can only use Mailpuff’s tools.
- An AI app that supports MCP. For example Claude, ChatGPT, Claude Code, Cursor or VS Code.
- One connector plugin: Saddle or the MCP Adapter.
Should I use Saddle or the MCP Adapter?
Use Saddle if you want to approve sends and deletions before they happen. Use the MCP Adapter if you already run it or want the WordPress project’s own server with nothing on top. Mailpuff’s own send switch protects your list either way.
| Saddle | MCP Adapter | |
|---|---|---|
| Sign-in | Saddle guides you through it | A WordPress application password |
| How tools appear | One tool for each Mailpuff tool, named saddle-mailpuff-* |
General tools that find and run the mailpuff/* tools |
| Access level for each app | Yes | No, the account’s full rights |
| Approve before a send or delete | Yes, a preview and a confirm step | No |
| Switch single tools off | Yes | No |
| “AI agents can send campaigns” switch | Applies | Applies |
When Saddle is active, Mailpuff offers its tools only through Saddle, so every call passes Saddle’s checks. The MCP Adapter’s default server then doesn’t list them.
How do I connect through Saddle?
- Install and activate Saddle.
- Open Mailpuff → Settings → MCP & API. Under AI agents (MCP) the status should say Ready with the number of tools, and show the server URL. It looks like
https://your-site.com/wp-json/saddle/v1/mcp. - Follow the link to Saddle’s MCP page, pick your AI app, and follow the steps Saddle gives you. The Saddle MCP setup guide has the steps for each app.
- Ask the agent: “Give me a Mailpuff overview.” It should tell you what is still open in your setup.
Saddle lists Mailpuff’s tools as saddle-mailpuff-list-campaigns, saddle-mailpuff-create-campaign and so on. You control them in Saddle, as described in Saddle permissions and access levels.
How do I connect through the MCP Adapter?
- Install and activate the MCP Adapter plugin.
- Open Mailpuff → Settings → MCP & API and click Copy server URL. It looks like
https://your-site.com/wp-json/mcp/mcp-adapter-default-server. - Create an application password. The Application passwords link on the same page opens the right place in your profile. Name it after the AI app and copy it. WordPress shows it only once.
- Add the server to your AI app with HTTP Basic authentication: your WordPress username and the application password.
In Claude Code, for example, encode the username and password, then add the server:
printf 'your-username:abcd efgh ijkl mnop qrst uvwx' | base64
claude mcp add --transport http mailpuff \
https://your-site.com/wp-json/mcp/mcp-adapter-default-server \
--header "Authorization: Basic PASTE_THE_RESULT_HERE"
WordPress offers application passwords only over HTTPS, except on a local development site. See the WordPress REST API authentication docs for details.
How does an agent call Mailpuff through the MCP Adapter?
The adapter’s default server offers general tools: one lists every tool on the site, one returns a tool’s inputs, and one runs it. To list draft campaigns, the agent runs mailpuff/list-campaigns:
{
"ability_name": "mailpuff/list-campaigns",
"parameters": { "status": "draft", "limit": 10 }
}
The MCP Adapter repository documents the server in full.
How do I check the connection works?
Open Mailpuff → Settings → MCP & API. The status under AI agents (MCP) tells you where things stand:
| Status | What it means |
|---|---|
| Ready, with a tool count | The server is up and offers Mailpuff’s tools |
| No tools offered | The server is up but lists no Mailpuff tools |
| No MCP server | Neither Saddle nor the MCP Adapter is active |
| Not available | Saddle is active but its MCP address is missing. Check Saddle’s MCP page |
Then ask your agent for an overview. When the first tool call lands, Mailpuff’s Home page stops showing the “connect an agent” step.
Why can’t my agent send or schedule a campaign?
Three tools exist only while AI agents can send campaigns is on: send-campaign, schedule-campaign and resume-campaign. The switch is off by default, and only you can turn it on, in Mailpuff → Settings → MCP & API. Until then, an agent can write campaigns and send tests to you, but it can’t mail your list. The tool count on the status line is lower by those three while the switch is off.
What an AI agent can and can’t do explains what else the switch controls.
What should I ask the agent first?
- “Give me a Mailpuff overview and tell me what’s left to set up.”
- “Connect PostShiba. I’ll paste the API key and Team ID.”
- “Import these customers and tag them Customers. They ticked the newsletter box at checkout.”
- “Write a newsletter about our spring sale and send me a test.”
- “Is anything stopping us from sending? Fix what you can.”
- “How did last Tuesday’s email do?”
FAQ
The settings page says “No MCP server”. What now?
Install and activate Saddle or the MCP Adapter, then reload the page. Mailpuff looks for one of the two and shows its address.
The status says “No tools offered”.
The server answers but lists no Mailpuff tools. Check that no custom code returns false from the mailpuff_ability_mcp_public filter.
My AI app gets a 401 error.
The sign-in was refused. With the MCP Adapter, check the username and application password and make sure the account is an administrator. Some hosts strip the Authorization header. With Saddle, follow Saddle troubleshooting.
Can an Editor account connect?
It can connect, but Mailpuff’s tools refuse it. Every tool needs an administrator.
Can I connect more than one AI app?
Yes. With the MCP Adapter, give each app its own application password, so you can revoke one without the others.
Does Mailpuff send my data to an AI company?
No. Mailpuff runs no AI model and never contacts an AI service. Your AI app receives what its requests return, such as subscriber details or campaign results, under its own terms. Connect only apps you trust.