Agents & MCP
Connect an agent
Connect Claude, ChatGPT, Claude Code, Codex, opencode, Cursor or any MCP client. You approve which brands it may see.
Everything starts from Settings → Agents in the dashboard. The MCP URL is https://boostmails.com/api/mcp.
Claude#
- 1
Add a custom connector.
In Claude, open Settings → Connectors → Add custom connector and paste the MCP URL.
- 2
Approve in BoostMails.
Claude opens BoostMails; sign in, pick the brands and whether it may draft, and click Approve.
ChatGPT#
In ChatGPT, open Settings → Connectors → Create, use the MCP URL with OAuth, and approve the brands in BoostMails the same way.
Claude Code, Codex and opencode#
npx boostmails setupNo token to copy first. The CLI opens BoostMails in your browser, you approve the brands, and it creates one personal token for this machine (cli-<hostname>). Then it writes the MCP config for every agent tool it finds: Claude Code (claude mcp add -s user), Codex (~/.codex/config.toml, through mcp-remote) and opencode (~/.config/opencode/opencode.json).
| Flag | Meaning |
|---|---|
--url <server> | BoostMails URL (default https://boostmails.com, or $BOOSTMAILS_URL) |
--key <bm_pat_…> | Use an existing token and skip the browser |
--name <name> | Name for the new token |
--yes | Accept defaults, no prompts |
--no-browser | Print the approval link instead of opening it |
Cursor and other MCP clients#
Add a remote MCP server with the URL. Clients that support OAuth sign in by themselves. Clients without OAuth can send a personal access token as a header:
{
"mcpServers": {
"boostmails": {
"url": "https://boostmails.com/api/mcp",
"headers": {
"Authorization": "Bearer bm_pat_…"
}
}
}
}Personal access token#
Settings → Agents → Create token makes a bm_pat_ token for scripts and clients without OAuth. Pick the brands and whether it may draft. It's shown once and never expires; revoke it in the same page. Test it:
curl https://boostmails.com/api/mcp \
-H "Authorization: Bearer $BOOSTMAILS_TOKEN" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'OAuth for client developers#
BoostMails implements MCP authorization (OAuth 2.1 with PKCE and dynamic client registration). An unauthenticated call to the MCP URL answers 401 with a WWW-Authenticate header pointing at the protected-resource metadata, so compliant clients find everything by themselves.
| Endpoint | URL |
|---|---|
| Protected resource metadata | https://boostmails.com/.well-known/oauth-protected-resource |
| Authorization server metadata | https://boostmails.com/.well-known/oauth-authorization-server |
| Dynamic client registration | POST https://boostmails.com/api/oauth/register |
| Authorize (browser approval) | https://boostmails.com/oauth/authorize |
| Token | POST https://boostmails.com/api/oauth/token |
| Revoke | POST https://boostmails.com/api/oauth/revoke |
Access tokens start with bm_oat_ and last one hour; refresh them with the refresh token. They carry exactly the brands and permissions the person approved.