AI assistants
An AI assistant in your editor or chat app can read these docs for you while you build on Postilio: through the docs server, an MCP server that searches the guides, the API reference and the error codes, or by fetching the docs as Markdown. With an AI access it can also look into one of your projects: why a domain is pending, why a message bounced, whether an address is suppressed, how your webhooks are doing.
The docs server
https://mcp.postilio.eu/docs is an MCP server (Streamable HTTP) with the public Postilio docs. It needs no key and no account: it reads these docs and nothing else, never your organization, messages or keys.
Add it to your assistant
In Claude Code, for all your projects:
claude mcp add --transport http --scope user postilio-docs https://mcp.postilio.eu/docs
In Cursor, in ~/.cursor/mcp.json:
{
"mcpServers": {
"postilio-docs": { "url": "https://mcp.postilio.eu/docs" }
}
}
In VS Code, in .vscode/mcp.json of your project or in your user configuration:
{
"servers": {
"postilio-docs": { "type": "http", "url": "https://mcp.postilio.eu/docs" }
}
}
In the Claude apps and in ChatGPT, add it as a custom connector with the URL above and no authentication. Any other client: the URL, the Streamable HTTP transport (often called http), no authentication.
Tools
| Tool | What it does |
|---|---|
search_docs | Searches the guides and the API reference for query (a few words, at most 120 characters) and returns the best sections, best first, each with its URL and the words around the match. limit: 1 to 10, 5 if left out |
get_doc | Returns a guide as Markdown (page, such as sending or domains), or one section of it (section: its anchor or its heading), with the list of its sections. A guide over 20,000 characters is cut off; ask for a section then |
get_api_operation | Returns an operation of the API from its OpenAPI document: parameters, request body, responses and every schema it uses. By operationId (such as SendEmail), or by method and path (such as POST and /v1/emails) |
list_error_codes | Lists the error codes of the API with their HTTP status and meaning, the table in Errors and limits. filter keeps the codes whose code or meaning contains it, or with that status |
Every tool only reads, and says so to your assistant, so most assistants call them without asking you first. A result is JSON with the URL of the page it came from, so you can check what the assistant read.
Limits
- 120 tool calls a minute per IPv4 address, or per IPv6 /64. Over it, a call answers as a tool error with
{"error": "rate_limited", "retryAfterSeconds": 12}, not with HTTP429. - A request from a web page (one with an
Originheader) is refused with403: the server is for assistants and editors, not for scripts in a browser.
Changes
Within /docs the tools only change in ways that do not break an assistant that uses them: new tools, new optional arguments, new fields in a result. A tool that is renamed or removed, or a field that changes its meaning, gets a new path; the old one keeps working for at least six months, and What's new in the portal says so.
The project server
https://mcp.postilio.eu/v1 is an MCP server (Streamable HTTP) for one project. It takes an AI access: a key of its own, pk_ai_…, that you make in the portal under Keys & SMTP › AI assistants, or a connection you allow when an assistant signs in (Connect with a sign-in, for the Claude apps and ChatGPT). An AI access belongs to one project, always expires (30 days unless you choose otherwise, a year at most) and only reads, unless you let it send test emails to your own addresses. It works only here: the API and SMTP refuse it, and this server refuses an API key (pk_live_…). The server has the docs tools too, so one server is enough.
Add it to your assistant
In Claude Code, for all your projects:
claude mcp add --transport http --scope user postilio https://mcp.postilio.eu/v1 --header "Authorization: Bearer pk_ai_..."
In Cursor, in ~/.cursor/mcp.json:
{
"mcpServers": {
"postilio": {
"url": "https://mcp.postilio.eu/v1",
"headers": { "Authorization": "Bearer pk_ai_..." }
}
}
}
In VS Code, in your user configuration, with the key in VS Code's secret storage:
{
"inputs": [{ "type": "promptString", "id": "postilio-key", "description": "Postilio AI access", "password": true }],
"servers": {
"postilio": {
"type": "http",
"url": "https://mcp.postilio.eu/v1",
"headers": { "Authorization": "Bearer ${input:postilio-key}" }
}
}
}
Any other client: the URL, the Streamable HTTP transport, and the header Authorization: Bearer pk_ai_…. Keep the key out of a repository: it reads your project. The Claude apps and ChatGPT cannot send a header: they connect with a sign-in.
Connect with a sign-in
The Claude apps (web, desktop and mobile), ChatGPT and other assistants that support OAuth connect without a key: you sign in to Postilio and choose what the assistant may do. The URL is the same, https://mcp.postilio.eu/v1, exactly as written (no slash at the end).
Claude (claude.ai, Claude Desktop, Claude mobile):
- In Claude, open Settings › Connectors and choose Add custom connector.
- Name it Postilio, enter
https://mcp.postilio.eu/v1and add it. Leave the advanced settings (client ID and secret) empty. - Choose Connect. Your browser opens Postilio; sign in with your password and code, or a passkey, if you weren't signed in yet.
- Postilio asks whether to connect claude.ai. Check that it names the app you started connecting, then choose the project, what Claude may read (domains and messages by default; test emails only if you tick them), whether it may see full recipient addresses and receiving servers' replies, and for how long (at most a year).
- Choose Allow. Postilio may ask for your code once more. You're back in Claude, connected.
Then ask Claude about your project, for instance "Which domains does my Postilio project have, and are they verified?" or "Were there delivery problems this week?". Claude asks before it uses a tool, unless you let it.
ChatGPT: add Postilio as an app or connector with the URL https://mcp.postilio.eu/v1 and OAuth as the authentication (where this lives depends on your ChatGPT plan, for example developer mode under Settings › Apps). ChatGPT opens Postilio; continue from step 3 above, where Postilio names chatgpt.com.
Claude Code can sign in too, instead of using a key: claude mcp add --transport http --scope user postilio https://mcp.postilio.eu/v1, then /mcp and Authenticate. Postilio names claude.ai and says that the app runs on your computer, which is right for Claude Code.
What you allow is an AI access like one made with a key: it appears under Keys & SMTP › AI assistants as Connected with Claude (or the app's name), for one project, with every call it makes, the same limits and the same masking. To disconnect, revoke it there: the assistant's next call is refused. When it expires, connect again. Owners, Admins and Developers of a project can connect it, as they can make an AI access.
Only allow an app you started connecting yourself. The page names the website the app lives on; any other app than the Claude apps and ChatGPT gets a warning, as anyone can give an app any name.
For developers of an MCP client: the server follows the MCP authorization specification. A 401 from /v1 carries WWW-Authenticate: Bearer resource_metadata="https://mcp.postilio.eu/.well-known/oauth-protected-resource/v1"; the authorization server's metadata is at https://portal.postilio.eu/.well-known/oauth-authorization-server. It supports Client ID Metadata Documents (https, port 443, redirects on the document's own origin or loopback) and, as a fallback, dynamic client registration; public clients only, PKCE with S256, the resource parameter https://mcp.postilio.eu/v1 on the authorization and the token request, and iss in the authorization response. Access tokens last an hour; refresh tokens turn over at every use, and a refresh token or code used twice ends the connection.
Tools
| Tool | Needs | What it does |
|---|---|---|
get_access | The project, what the access may do, whether it shows recipients and server replies, when it expires, and the tool calls left today | |
list_domains | domains:read | The project's sending domains with their status, since when one is failing, and its DMARC status |
get_domain | domains:read | A domain (by id or name) with the DNS records it needs and whether each was found (with newValue on a record that still points at an older Postilio name), its DMARC record with advice, and the DKIM key record Postilio publishes |
check_domain | domains:read | Looks the domain's records up now instead of at the next check, as Check now in the portal does; once a minute per domain |
get_email | emails:read | A message by its id: status, sender, recipient and delivery events with their reason codes. Never the subject or the content |
delivery_problems | emails:read | The deferred, bounced, complained and expired messages of the last 24 hours or 7 days, per status and reason, with a few message ids. Never a recipient |
check_suppression | suppressions:read | Whether one address is suppressed, why and since when |
list_webhooks | webhooks:read | Your webhook endpoints: the origin of each URL (never its path or query), its events, whether it is paused or failing, its last delivery. Never a signing secret |
list_webhook_deliveries | webhooks:read | An endpoint's deliveries, newest first, with their status, attempts, the endpoint's last HTTP status and why an attempt failed (timeout, connection_failed, redirect_not_followed, payload_too_large, or content_expired for an inbound message whose content went before it was sent) |
get_usage | usage:read | The project's usage in a month and where the organization stands against its plan |
send_test_email | emails:test | Sends one test email from a verified domain to an address of your own: one a member confirmed under Test mail, or a member's. Postilio's sample message, or your own subject and plain text (at most 2,000 characters). Within the project's test emails of the day, and it counts as usage, like test emails through the API |
Plus the four docs tools. An access has domains:read, emails:read, suppressions:read and webhooks:read unless you choose otherwise; usage:read and emails:test you add yourself. A tool the access may not use answers insufficient_scope. The server sees live messages only: a message sent with a test key is not found. Lists give at most 25 items, fewer when they hold long replies; a result with next has more, which the same tool gives with cursor set to it.
Sending a test email
send_test_email is the only tool that does something, so your assistant asks you before it calls it. A client that can ask in between (protocol 2026-07-28) shows you "Send a test email from … to …?" as well; if you decline, nothing is sent (declined). It can only reach your own addresses, so a hijacked assistant cannot turn it into a way to mail anyone else. Each one is in the audit log, by the AI access. Over the project's test emails of the day it answers rate_limited with the seconds until midnight UTC.
What it shows, and what not
- Recipients are masked, such as
ad•••@example.com, unless the access shows them. - Receiving servers' replies are left out: an event says why with its reason code. An access that shows them gives them under
untrusted, with what added a suppression and the start of your webhook endpoint's answers. - Text from other systems is marked. A receiving server or a webhook endpoint can answer anything, also text that tries to instruct your assistant. Such text only comes in a field
untrusted({"source": "receiving_server", "text": "…"}), at most 256 characters and without invisible characters, and the tools tell your assistant never to follow instructions in it. Marking it is no defence on its own: an assistant that can also browse or write elsewhere could still be talked into something, so give it no more tools than it needs. - Never the subject or content of a message, a webhook secret, a DKIM key or another key.
Limits
- 60 tool calls a minute and 2,000 a UTC day per AI access. Over it, a call answers as a tool error with
{"error": "rate_limited", "retryAfterSeconds": 12}, not with HTTP429.check_domainanswers the same when the domain was checked less than a minute ago. - A request without an AI access that holds is refused before any tool:
401withinvalid_api_key(no key, an unknown, revoked or ended one, or an API key) orai_access_expired, and403withclient_ip_not_allowed(outside the access's networks),organization_suspendedorproject_suspended. An access ends by itself when the member who made it leaves the organization or can no longer open the project, and when the project moves to another organization. - A request from a web page (one with an
Originheader) is refused with403.
Every tool call is in the access's log on its page in the portal, for 90 days: the tool, a summary of its arguments with addresses masked, the result and how many items came back, never what came back.
The docs as Markdown
An assistant that can only fetch pages reads the docs as Markdown:
- llms.txt lists every guide with a line about it, in the llms.txt format;
- llms-full.txt has every guide in one file;
- every guide is also there as
.md, such as sending.md; - openapi.json is the OpenAPI document of the API, for a client generator too.