Skip to main content
Glama
inboxlease

inboxlease

by stone16

inboxlease

inboxlease is a self-hosted email gateway for agents. Agents read and draft through MCP. A human reviews every outbound message in the web console.

  • Receive and archive email with Cloudflare Email Routing, D1 and R2.

  • Connect an agent with a tenant- and domain-scoped token.

  • Review drafts, inspect thread history and reconcile ambiguous sends.

  • Receive signed webhooks for thread, approval and OTP events.

Use Node.js 24.4 or later. Run npm ci, npm run typecheck and npm test for local verification. The test suite uses workerd with local D1 and R2.

See deployment to configure your own Cloudflare account, architecture for the request and data flows, and security for the trust boundaries.

Licensed under Apache-2.0.

Self-hosting

Copy wrangler.example.jsonc to wrangler.jsonc, configure the Worker bindings and secrets, and apply the D1 migrations before deploying. See the deployment guide.

Related MCP server: Postfleet MCP

Embed in a Worker

Install an exact version of inboxlease. Import worker from the package in your Worker entry point. A bundler must support TypeScript source dependencies. Point the D1 migration directory at node_modules/inboxlease/migrations. See the public library contract.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to send and receive email with enforced security policies, scoped mailboxes, and human approval for external sending.
      15
      72 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Gives AI agents their own email address with inbound parsing, classification, extraction, and prompt injection screening, plus tools to manage mailboxes, send/receive emails, and handle draft approval workflows.
      14
      61 npm
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables agents to list, search, and read mailbox messages, manage user-isolated local drafts, fetch attachments, and send or reply to email through a dedicated mailbox user's HTTPS API. Write operations such as sending, replying, and marking messages read stay disabled until explicitly enabled and authorized.
      13
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents to search, read, and draft email over IMAP and SMTP, including attachments and OAuth, with sending disabled by default and restricted to allowlisted recipients when enabled.
      4
      Apache 2.0