Skip to main content
Sendmux has two MCP connections. Use Doc Search MCP when you want an AI tool to search Sendmux docs. Use MCP when you want an agent to work with Sendmux tools you authorise.
MCP exposes a curated agent toolset, not every API endpoint. Use the SDKs, CLI, or API reference when you need full endpoint coverage.

Doc Search MCP

Doc Search MCP exposes search_sendmux.
Add this server to .cursor/mcp.json for one project or ~/.cursor/mcp.json for all projects.
Add this server to your user or workspace mcp.json.
Add this server to ~/.codex/config.toml or a trusted project .codex/config.toml.

MCP

MCP exposes the product surfaces you grant. Hosted MCP is the default when your client supports remote MCP with browser OAuth. It keeps Sendmux in the authorisation flow, avoids distributing manual API keys to agents, and shows only the tools allowed by the grant. Use the Postman collection when you want to test MCP requests from Postman: Run in Postman When you connect, Sendmux asks you to choose a team, product surfaces, and mailbox access where relevant. Access tokens are short-lived. Refresh tokens rotate on use and can last up to 30 days unless the connection is disconnected or expires.
If you grant more than one mailbox, start mailbox workflows with mailbox_list_granted_mailboxes and pass the returned mailbox_id to tools that act on one mailbox.

Connection modes

Hosted OAuth

Use when your client can open a browser-based MCP OAuth flow.

Local stdio

Use when your coding agent can launch a local command on your machine.

Private HTTP

Use when a client needs a URL but you run the MCP package yourself.

Local package

Install the local package from PyPI:
Run one surface:
Run all product surfaces:
The server validates key prefixes before starting. Management requires smx_root_. Sending accepts a send-capable smx_mbx_ key or owner-approved Sending-resource smx_agent_ token. Mailbox accepts an smx_mbx_ key or a scoped smx_agent_ token.

Private HTTP

HTTP mode is useful when your MCP client connects to a server URL but you still want to run the package yourself.
The endpoint defaults to /mcp. /health returns the selected surfaces. HTTP mode requires SENDMUX_MCP_HTTP_BEARER_TOKEN unless you explicitly start it with --allow-unauthenticated-http.

Configuration reference

Tool discovery

Tool names are generated from the current public API surfaces. Open your MCP client’s tool picker after authorisation to see the tools available to that connection.Hosted connections show only the tools allowed by the selected product surfaces, permissions, and mailbox grant. Local servers show the tools for the surfaces and keys you provide at startup.

Troubleshooting

Confirm the selected product surfaces and granted permissions. Hosted connections show only tools allowed by the grant.
Check the API key prefix. Management needs smx_root_; Sending accepts smx_mbx_ or owner-approved Sending-resource smx_agent_; Mailbox accepts smx_mbx_ or scoped smx_agent_.
Send Authorization: Bearer <SENDMUX_MCP_HTTP_BEARER_TOKEN> to private HTTP, or complete OAuth for hosted MCP.
Add the browser client’s origin to SENDMUX_MCP_ALLOWED_ORIGINS for private HTTP.
Connect only the surfaces you need, or disable unused tools in the client.

Next steps

MCP clients

Configure Sendmux MCP in Claude Code, Cursor, Codex, Gemini CLI, Qwen Code, Zed, and more.

SDKs

Use package-managed clients from application code.

CLI

Install the CLI with Snap, Homebrew, or npm when you need terminal access.

API keys

Create scoped credentials for local MCP setups.