Mailbase
FeaturesPricingDocsBlogComparisonsChangelog
Sign inStart free
Home/Docs/MCP OAuth
MCPUpdated 2026-05-25

MCP OAuth Setup

Connect Claude, Cursor, Codex, or another MCP client to Mailbase with OAuth-scoped workspace access.

Canonical: /docs/mcp-oauth
On this page
Remote MCP ServerConnect A ClientWorkspace ScopeReview And Revoke

Remote MCP Server

Mailbase exposes a remote Streamable HTTP MCP server. OAuth is the preferred auth path, so clients do not need a Mailbase API token or shared secret.

ResourcePath
Streamable HTTP endpoint/api/mcp/mcp
SSE endpoint/api/mcp/sse
Manifest/api/mcp/manifest
MCPB bundle/api/mcp/manifest.mcpb
OAuth metadata/.well-known/oauth-authorization-server
Protected resource metadata/.well-known/oauth-protected-resource

Connect A Client

Use the Mailbase origin plus /api/mcp/mcp as the remote server URL. The client discovers OAuth metadata, opens the authorization screen, and receives tokens scoped to the approved workspace.

codex mcp add mailbase --url https://mailbase.example.com/api/mcp/mcp
claude mcp add mailbase --transport http https://mailbase.example.com/api/mcp/mcp

Workspace Scope

  • OAuth tokens are pinned to the workspace approved during the authorization flow.
  • Legacy bearer-token clients must explicitly choose a workspace and are not allowed to silently fall back to the first workspace.
  • MCP tools return current workspace context so AI clients can confirm where they are operating before writing drafts or changing data.

Review And Revoke

  • Open Settings, then MCP server, to review connection status and available tools.
  • Revoke OAuth clients when a teammate leaves, a client is replaced, or a machine is retired.
  • AI task output lands in completed-task history for review and explicit apply actions. MCP completion does not automatically send email.

Related Docs

OperationsUpdated 2026-05-25
Cron setup
Configure the recurring Mailbase cron endpoints that enqueue scheduled campaigns, process durable send-job batches, and run due workflow steps.
ComplianceUpdated 2026-05-25
Unsubscribe compliance
How Mailbase signs unsubscribe links, enforces suppression states, adds List-Unsubscribe headers, and keeps marketing sends compliant.
Developer APIUpdated 2026-05-25
API tokens
Create, scope, rotate, and verify Mailbase API tokens for workspace-safe backend integrations.
DeliverabilityUpdated 2026-05-25
Sender domains
Connect sender domains, understand hosted versus BYO useSend sending, and keep SPF, DKIM, and DMARC status visible in Mailbase.
Mailbase
Product
FeaturesPricinguseSend integrationChangelog
Learn
BlogDocsAPI referenceResources
Compare
ComparisonsAlternatives
Guides
Transactional email servicesSelf-hosted useSend stackSelf-hosted email marketingSPF, DKIM & DMARCEmail deliverability
Legal
TermsPrivacy
© 2026 Mailbase · french-webEmail workflow for builders.