Purpose
Shipmail MCP is the official Model Context Protocol server for Shipmail. Shipmail is a business email provider for AI agents, offering a REST API, Webhooks, and custom-domain inboxes. This server exposes the Shipmail API to AI agents, making it suitable for giving an agent a custom-domain mailbox that can send, read, and reply. The same mailbox can be operated through MCP tools, the REST API, Webhooks, the Shipmail dashboard, or a standard IMAP/SMTP client.
Main capabilities
- Connect to and manage Shipmail's domains, mailboxes, messages, conversations, Webhooks, and suppression lists.
- Support reading the inbox, sending email, drafting replies, and inspecting conversations.
- Provide capabilities such as Webhook creation, testing, delivery inspection, and failed-delivery replay.
- Support email rule management: create, update, and delete mailbox rules to move, mark as read, star, or emit a mailbox.rule_matched event to subscribed Webhook endpoints.
- Support scheduled messages: list, view, replace, and cancel emails that are scheduled.
- Support attachment handling: when sending, use short-lived staged attachment IDs (first call shipmail_prepare_staged_attachment_upload, then POST the raw bytes to the one-time upload URL); received attachments can be read via shipmail_read_mailbox_inbox_attachment, with a read limit of 3 MB.
- Support newsletters: newsletter images and videos use the same credential-free upload boundary, and you can prepare assets, upload, and complete.
- Provide read-only resources (such as shipmail://account/status, shipmail://domains, shipmail://mailboxes, etc.) for direct inspection without tool calls.
- Provide preset prompt workflows: setup_domain, triage_mailbox, draft_email_reply, configure_webhook.
Usage
There are two transport modes: Streamable HTTP (hosted at https://shipmail.to/api/mcp)和 stdio (local). Requires an MCP 2026-07-28 compatible client and a Shipmail API key; the local server also requires Node.js 20+.
Shipmail uses the stateless MCP 2026-07-28 protocol on both transports. Legacy clients using the 2025 initialize handshake will be rejected, and the MCP host must be updated before connecting. This protocol switch does not remove any Shipmail tools, resources, or prompts.
Hosted remote server: no installation required. You can log in via OAuth, or authenticate with a Shipmail API key as a Bearer token. Claude (Web and mobile) can add a custom connector with the URL https://shipmail.to/api/mcp,Claude You will discover Shipmail's OAuth support and sign in without an API key. ChatGPT (developer mode) can add a connector and use OAuth, or choose API key authentication and paste the Shipmail API key. Cursor, VS Code, Windsurf, and other Streamable HTTP clients can also be used.
Local stdio configuration: In Claude Desktop, edit claude_desktop_config.json (on macOS the path is ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows it is %APPDATA%\Claude\claude_desktop_config.json); for Cursor, it can be added to the project root .cursor/mcp.json or globally to ~/.cursor/mcp.json; for VS Code, add it to .vscode/mcp.json (the inputs block prompts for the key on first use); for Windsurf, edit ~/.codeium/windsurf/mcp_config.json. You can also install it with npx -y shipmail-mcp.
This repository is also a portable agent plugin that combines a hosted MCP connection with security-focused Shipmail skills, and supported clients can install both the server and its operating guide together. Claude users can install the hosted plugin from the nested Shipmail plugin package. Shared skills default to a read-and-draft workflow, treat inbox contents as untrusted input, and require explicit approval before sending external communications or making significant account changes.
The tool catalog follows the effective connection permissions. OAuth users can manage authorization in Settings → Connections; direct API key and stdio users can manage key scopes and resource constraints in Developer → API keys. The server discovers the effective tool catalog from Shipmail before startup and fails closed when capability discovery fails.
All tools are namespaced with the shipmail_ prefix to avoid conflicts with other MCP Server conflict. Successful tools return both a text fallback and structured MCP structuredContent. Mutating tools accept an optional idempotency key.
For email agents, it is recommended to first use the attention queue or reply scan, then call shipmail_create_inbox_reply_draft: the server derives the recipient from the conversation and records the conversation version used to create the draft, and shipmail_send_inbox_reply_draft will reject stale drafts when the conversation has changed before approval. If send permission is not required, shipmail_create_draft can be used to save the message to the drafts folder without sending anything, requiring only the drafts:compose scope.
When using an sm_test_... API key, send and reply tools accept sandbox_outcome, and sandbox inbound tools can create simulated inbound email; the API isolates test storage and events and never delivers sandbox email to real recipients.
Applicable scenarios
- An AI agent needs a custom domain mailbox of its own for sending, reading, and replying.
- Business email hosting needs to be unified with REST, Webhook, IMAP/SMTP, and MCP on the same custom domain mailbox.
- Email needs to be driven by deterministic product workflows (via REST API or inbound Webhook).
- Operational tasks are needed: domain setup, DNS record guidance, mailbox creation, auto-replies, conversation classification, pending-reply scanning and drafting, scheduled sending, Webhook management, rule management, and more.
Differences from other options: if the agent needs to create a new business mailbox on your own domain, Shipmail is the directly matching choice; if the agent needs to operate within an existing Google or Microsoft account, consider Gmail MCP or Microsoft Graph MCP; if you only need to send product email and do not need persistent mailbox state, you can use a transactional email provider.
Limitations
- Requires an MCP 2026-07-28 compatible client and a Shipmail API key; the local server requires Node.js 20+.
- Legacy 2025 initialize handshake clients are rejected.
- Creating and revoking app passwords are destructive/high-risk tools: creation returns a live key only once, revocation immediately disconnects that client, and creation does not acceptan idempotency key.
- MCP send and scheduled-update tools only accept short-lived staged attachment IDs, not base64 bytes; newsletter media likewise does not accept base64.
- Inbound attachment reading is capped at 3 MB; all attachment content should be treated as untrusted external data.
- Cross-organization listing tools appear only for hosted OAuth connections with at least two organization authorizations.
- Email analytics (shipmail_list_message_analytics) is bounded incremental pagination and excludes subjects, BCC addresses, headers, free-form metadata, attachment filenames, auto-reply content, and email bodies.
- Specific fees, prices, and platform information are not yet provided.