🤖 Model Context Protocol + OAuth 2.1 PKCE

Persistent Email Identity for Autonomous AI Agents

Give Claude, Cursor, Cline, ChatGPT, and custom agent runtimes a real @botmail.work inbox. Your project owns the address forever; agents receive revocable, least-privilege access grants.

3D illustration of the Botmail robot mascot routing glowing mint and peach emails through MCP, CLI, and REST API terminals
11 Tools
Read/Write Annotated MCP Suite
OAuth 2.1
S256 PKCE & Scoped Grants
0 Plaintext
Hashed Credentials & Audit Logs
0 Credits
Internal Agent-to-Team Mail

Why consumer webmail breaks autonomous agent workflows

Traditional email accounts were engineered for human browser sessions—not headless tool calls, multi-agent handoffs, or prompt-injection containment.

CREDENTIAL SPRAWL

Over-Privileged OAuth Tokens

Connecting an agent to a founder's Gmail or Microsoft 365 account exposes years of private contracts, password resets, and HR threads to a single LLM context window.

IDENTITY COUPLED TO SECRETS

Broken Addresses on Model Upgrades

When an API key leaks or you migrate from one agent framework to another, rotating credentials shouldn't force you to change the email address external vendors already use.

BLIND RETRIES

Duplicate Sends & Prompt Injection

Raw SMTP libraries lack idempotency keys and untrusted-content boundaries, causing agents to double-send emails on network timeouts or execute malicious inbound instructions.

🔐 Project-Owned Architecture

The project owns the inbox. Agents get revocable keys.

In Botmail, an email address like ops-agent@botmail.work belongs to your workspace project—never to a single API token. Multiple specialized agents can read or draft from the same project inbox under independent grants.

  • Instant Grant Revocation: Cut off a misbehaving or retired agent in one click without losing a single inbound message.
  • Idempotent Outbound Sends: Pass an operation_id on every send or reply so agent retries never spam customers.
  • Untrusted Content Boundaries: Inbound email bodies are explicitly wrapped and annotated so LLMs treat external mail as data, not system instructions.
  • Zero-Credit Internal Bus: Coordinate between sub-agents and human supervisors across @botmail.work addresses with zero external mail cost.
3D illustration of a persistent Botmail project vault granting a glowing mint pass to an active AI robot while revoking a peach pass from an old robot

Connect via MCP, CLI, or REST in 90 seconds

Whether your agent runs inside Claude Desktop, Cursor, Cline, or a serverless worker, Botmail speaks its native protocol out of the box.

claude_desktop_config.json / mcp.json
{ "mcpServers": { "botmail": { "command": "npx", "args": ["-y", "@botmail/mcp"], "env": { "BOTMAIL_API_URL": "https://api.botmail.work", "BOTMAIL_TOKEN": "bm_live_****************" } } } }
Terminal — Botmail Agent-Native CLI
# 1. Authenticate with S256 PKCE browser handshake $ npx botmail-cli auth login # 2. Introspect machine-readable command schema $ npx botmail-cli schema --format json # 3. List unread messages in project inbox $ npx botmail-cli messages list --inbox-id inb_01J9X --unread # 4. Send an idempotent reply $ npx botmail-cli messages reply \ --message-id msg_01J9Z \ --operation-id op_reply_2026_10_24_01 \ --text "Invoice verified and queued for payout."

How Botmail compares to legacy email workarounds

Purpose-built infrastructure for project-owned AI communication.

Capability Botmail Agent Platform Shared Gmail / M365 OAuth Raw SES / SendGrid Webhooks
Inbox Ownership Model Project-owned; survives agent/key rotation Tied to a human employee seat Requires custom database & S3 buckets
Native MCP Server (11 Tools) ✓ Built-in stdio & Streamable HTTP ✕ Third-party community wrappers ✕ Must build & maintain yourself
Idempotent Send Reconciliation ✓ Enforced via operation_id ✕ Retries send duplicate emails ✕ Manual deduplication required
Human Oversight Dashboard ✓ Real-time audit log, archive & kill-switch ✕ Mixed into personal webmail UI ✕ No built-in human inbox view
Same-Workspace Inbox Routing ✓ Free & instant between inboxes in your workspace (0 credits) ✕ Rate-limited by consumer spam filters ✕ Charged per inbound/outbound message

Frequently asked questions

Why shouldn't I give an AI agent my personal or corporate Gmail/M365 credentials?

Personal and employee OAuth tokens grant broad access to historical company threads and break when passwords change. Botmail isolates each AI project in its own dedicated inbox with scoped, revocable grants.

What happens to the email address when I swap LLM providers or revoke an agent token?

Your @botmail.work address and full message archive remain intact inside your project workspace. You simply revoke the old agent credential and issue a new grant for your updated runtime.

Does Botmail support both local stdio MCP and remote Streamable HTTP MCP?

Yes. Run @botmail/mcp locally over stdio for desktop coding agents like Cline, Cursor, and Claude Desktop, or connect cloud agents to https://mcp.botmail.work with OAuth 2.1 PKCE.

Are issued Botmail email addresses ever recycled or reassigned?

Never. Once an email address is issued to a project, it is permanently retired if deleted and can never be claimed by another workspace—preventing delayed-mail data leaks.

Explore more AI email scenarios

See how engineering and operations teams deploy Botmail across their stack.

Deploy your first AI agent inbox in under 2 minutes

Start on the free Sandbox plan with 2 active inboxes, 50 messages/day, and full MCP, CLI, and REST API access.

Open Botmail Dashboard