Sendmux Email Inbox API + Sending
OfficialThis MCP server provides tools to manage and send email through the Sendmux mailbox API. You can read, search, and manage mailbox messages, folders, and threads, as well as send email with attachments.
Capabilities:
Search messages: full-text search with filters (sender, subject, dates, keywords, read state), returning up to 100 results (mailbox_search_message_snippets).
List and inspect messages: list messages with filters and pagination, read full messages with headers/body/attachments, and list messages in a thread.
Message metadata and management: view message metadata (attachment links), batch delete messages (max 100), and list/filter mailbox folders.
Mailbox sync: resume incremental mailbox sync from per-type cursors (messages, folders, threads, quotas).
Send mail: compose and send messages with optional inline attachments (base64 or uploaded attachment IDs), plus a separate low-level send tool (mailbox_send_message for sending).
Attachment upload: upload attachments by path, base64, or presigned URL for use in drafts/sends; supports up to 7.5MB per attachment.
Attachment access: fetch attachment content (base64 up to 32MB, otherwise return a download URL), or get attachment metadata.
Search: search messages by query with common filters (subject, from, before, after, folder, limit, etc.);
Thread inspection: list threads with filters (folder, unread, query, participant) and pinned status.
Folder management: rename and set folder properties.
Mailbox identity inspection: list identities for the mailbox, and inspect individual identity details.
Presigned upload and download URLs are valid for a limited time, so download or upload as soon as possible. When content is too large to return inline, download via resource_link or download_url promptly rather than holding it in context.
Email Inbox API + Sending by Sendmux
Email inbox API, inbound mail, and outbound sending MCP and A2A servers for AI agents, with inbound email, clean JSON parsing, webhooks, and multi-provider routing through Sendmux.
This package is the Sendmux MCP. Keep it separate from any documentation-search MCP used by docs tooling.
Documentation
Sendmux docs: sendmux.ai/docs
Management API reference: sendmux.ai/docs/api/introduction
Mailbox API reference: sendmux.ai/docs/mailbox-api/introduction
Sending API reference: sendmux.ai/docs/sending-api/introduction
Source repository: Sendmux/sendmux-sdk
Related MCP server: mcp-server-lobstermail
Requirements
Python 3.10 or newer.
A send-capable
smx_mbx_*key or owner-approved Sending-resourcesmx_agent_*token for Sending tools.A mailbox-scoped
smx_mbx_*key or scopedsmx_agent_*token for Mailbox tools.A root
smx_root_*key for Management tools.
Installation
pip install sendmux-mcpUsage
Run a single local server with the per-surface commands.
SENDMUX_API_KEY=smx_mbx_... sendmux-mcp-mailbox
SENDMUX_API_KEY=smx_root_... sendmux-mcp-management
SENDMUX_API_KEY=smx_mbx_... sendmux-mcp-sendingRun a combined local server with sendmux-mcp.
SENDMUX_MCP_SURFACES=mailbox,sending \
SENDMUX_MAILBOX_API_KEY=smx_mbx_... \
SENDMUX_SENDING_API_KEY=smx_mbx_... \
sendmux-mcpRun all three local surfaces when you have both key types.
SENDMUX_MCP_SURFACES=mailbox,management,sending \
SENDMUX_MAILBOX_API_KEY=smx_mbx_... \
SENDMUX_MANAGEMENT_API_KEY=smx_root_... \
SENDMUX_SENDING_API_KEY=smx_mbx_... \
sendmux-mcpThe generic sendmux-mcp command also accepts --surface or --surfaces. The wrapper commands select exactly one surface.
Transports
stdio is the default transport for local agent clients.
SENDMUX_API_KEY=smx_mbx_... sendmux-mcp-mailbox --transport stdiohttp and streamable-http expose the MCP endpoint over HTTP. HTTP mode defaults to 127.0.0.1:8765/mcp and requires a separate MCP bearer token unless you explicitly opt out.
SENDMUX_API_KEY=smx_mbx_... \
SENDMUX_MCP_HTTP_BEARER_TOKEN=local-mcp-token \
sendmux-mcp-mailbox --transport http --host 127.0.0.1 --port 8765 --path /mcp/health returns a small JSON health response for the selected surfaces.
Hosted Endpoint
The public hosted MCP endpoint is https://mcp.sendmux.ai/mcp.
For hosted clients, use HTTP transport with OAuth. Do not add manual Authorization headers, API keys, custom OAuth endpoints, or custom scopes unless your client explicitly requires them.
Hosted OAuth clients that omit requested scopes during registration or authorization are supported; the server advertises the hosted scope set through discovery and bearer challenges.
The packaged sendmux-mcp-hosted command runs the hosted server runtime. Local and private deployments should use the local commands above unless you are operating a compatible OAuth-backed hosted environment.
Hosted A2A Endpoint
The same hosted runtime exposes deterministic A2A 1.0 over HTTP+JSON at https://a2a.sendmux.ai/a2a/v1. Discover it from https://a2a.sendmux.ai/.well-known/agent-card.json; OAuth resource metadata is at https://a2a.sendmux.ai/.well-known/oauth-protected-resource.
Send exactly one JSON DataPart to the A2A message:send operation. Its data selects a curated Sendmux operation and supplies that operation's inputs:
{
"operationId": "managementListDomains",
"pathParameters": {},
"query": { "limit": 10 },
"headers": {},
"body": null,
"mailboxId": null
}operationId uses the same curated operation IDs as the hosted MCP service. OAuth grants are audience-bound to the A2A resource and retain their Sendmux surface and permission limits. The service returns one JSON DataPart containing the upstream status, safe response headers, and JSON body (or bodyBase64 for non-JSON responses).
The A2A endpoint is immediate and stateless: streaming, push notifications, persistent tasks, and task cancellation are not advertised or routed.
Configuration
Setting | Environment | Default |
Tool surfaces |
| required for |
API key fallback |
| accepted for compatible single-key setups |
Mailbox API key |
| required when mailbox is selected unless a compatible fallback is provided |
Management API key |
| required when management is selected unless a compatible fallback is provided |
Sending API key |
| required when sending is selected unless the fallback key is a send-capable |
App API base URL |
|
|
Sending API base URL |
|
|
Transport |
|
|
HTTP host |
|
|
HTTP port |
|
|
HTTP path |
|
|
HTTP bearer token |
| required for HTTP unless opt-out is enabled |
Allow unauthenticated HTTP |
|
|
Allowed browser origins |
| no browser origins |
Snapshot directory override |
| packaged snapshots |
App snapshot override |
| packaged app snapshot |
Sending snapshot override |
| packaged sending snapshot |
Request timeout |
|
|
Retry attempts |
|
|
Packaged OpenAPI snapshots are the default so released tool names, schemas, and descriptions stay stable. Path, directory, and URL overrides are available for development, canary, and debugging runs.
Tool Surfaces
Mailbox:
25tools for granted mailboxes, profile/session discovery, messages, attachments, bounded message waits, threads, folders, search, counts, and mailbox sends. Requires ansmx_mbx_*key or scopedsmx_agent_*token. Agent tokens remain limited by server-side scopes; pre-claim self-registered agent tokens do not includeemail.send.Management:
21tools for domains, mailboxes, logs, metrics, spend summary, and webhooks. Requires ansmx_root_*key.Sending:
5tools for attachment upload refs, single sends, and batch sends. Requires ansmx_mbx_*key or owner-approved Sending-resourcesmx_agent_*token.
The server rejects keys with the wrong prefix before starting.
Attachment Workflow For Agents
Use mailbox_wait_for_message when a user asks an agent to wait for new mail. The tool is bounded; if it returns matched=false, call it again rather than holding an MCP tool call open indefinitely.
When a message has attachments:
Call
mailbox_read_attachmentwithmessage_idandattachment_idwhen you need the attachment contents.For small text-like attachments, read the returned
text.For binary or oversized attachments, use the returned
resource_link/download_urlpromptly outside model context.Use
mailbox_get_attachmentonly when metadata is enough or you need to refresh the link.
Use mailbox_upload_attachment for outbound attachments over MCP. It accepts exactly one input mode:
file_pathfor local stdio MCP when the file is inside a client-declared filesystem root.presign_upload_url=truefor hosted MCP or shell-capable agents; upload the file to the returned URL with exact headers and no API key, then send with the returnedblob_id.content_base64only for tiny agent-authored files, capped at32 KiBdecoded. If it is too large, switch tofile_path, presigned upload, CLI--attach, or SDK file helpers.
file_path and presigned upload modes use the mailbox attachment cap, currently 7,500,000 bytes per attachment. Presigned uploads also pin the exact declared byte length and content type.
For mailbox sends, mailbox_send_message accepts either tiny inline base64 attachment objects (content, filename, content_type) or uploaded attachment references (blob_id, filename, content_type).
For Sending API sends, call sending_upload_attachment with file_path on local stdio MCP, or call sending_create_attachment_upload and PUT bytes outside model context for hosted/shell-capable agents. Then pass {"attachment_id": "att_..."} in sending_send_email.attachments[]. Avoid Sending inline base64 except for tiny generated content.
Console Scripts
sendmux-mcpsendmux-mcp-mailboxsendmux-mcp-managementsendmux-mcp-sendingsendmux-mcp-hosted
Support
Open an issue in Sendmux/sendmux-sdk with the package name, version, command, transport, and request ID from any API error.
Licence
MIT. See the licence file.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEmail infrastructure for AI agents — create inboxes, send/receive email, search messages, and manage threads via MCP tools.1062MIT
- AlicenseAqualityCmaintenanceMCP server for LobsterMail — gives AI agents email tools. Create inboxes, send and receive email, search messages, and manage webhooks.1121MIT
- AlicenseAqualityDmaintenanceMCP server for Sendook - an AI email communication platform. Enables AI agents to send and receive emails, manage inboxes, threads, and webhooks programmatically.16MIT
- AlicenseAqualityBmaintenanceOfficial mailbox.bot MCP server for AI agents. Send letters, certified mail, postcards, and receive scanned inbound physical mail with sandbox keys, approval controls, tracking, and webhooks.29722MIT
Related MCP Connectors
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Email for AI agents — send, receive as a webhook, manage domains, templates, routing.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sendmux/sendmux-sdk'
If you have feedback or need assistance with the MCP directory API, please join our Discord server