Mailbuttons logo

Mailbuttons

Governed email tools for sandbox inboxes, policy-controlled sending, approvals, and tamper-evident audit logs.

Install Mailbuttons

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mailbuttons-2": {
      "command": "npx",
      "args": [
        "-y",
        "@mailbuttons/mcp-server"
      ],
      "env": {
        "MAILBUTTONS_API_KEY": "YOUR_VALUE_HERE",
        "MAILBUTTONS_API_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MAILBUTTONS_API_KEY=YOUR_VALUE_HERE --env MAILBUTTONS_API_URL=YOUR_VALUE_HERE --transport stdio mailbuttons-2 -- npx -y @mailbuttons/mcp-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @mailbuttons/mcp-server

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Mailbuttons MCP server connects AI agents to governed Mailbuttons inboxes through local stdio or the hosted Streamable HTTP endpoint. It supports policy-filtered reading, threaded context, attachment text extraction, verification-code retrieval, internal sending, and human approval workflows. Sandbox tokens keep external messages in drafts and cannot expand their own permissions, while every tool call is audited. Use it when an agent needs email access with scoped authority and reviewable actions.

Use cases

  • Read policy-approved messages from a sandbox inbox
  • Send internal email while handling approval and block outcomes
  • Extract verification codes from allowlisted senders
  • Export governed email activity for SIEM verification
  • Scaffold a policy-aware email integration

Key features

  • Sandbox-scoped inbox access
  • Policy-gated email sending
  • Human approval drafts and promotion requests
  • Allowlisted verification-code extraction
  • Tamper-evident audit export
  • Build-time integration scaffolding

Tools15

What Mailbuttons lets your agent do. Expand a tool for its parameters.

Verified live~3.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/27 checks healthy over the last 117d

What it can do

From the 15 tools this server returned when we ran it; 15 declare their own safety hints.

Can delete or modify data · 1Handles credentials · 5Makes network requests · 14Read-only tools · 14
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age108 days
Maintainers1

Observed 2026-10-17 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · @mailbuttons/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads343Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed15Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Mailbuttons works

What Mailbuttons does

Mailbuttons gives an AI agent access to a scoped inbox while applying server-side policy to reads, sends, and escalation requests. The service is sandbox-first: a sandbox token can read and send within its permitted sandbox domain, but an external recipient causes the send to become a draft for human approval. A recipient that violates policy is blocked with the matched rule.

Email returned by read tools is treated as data rather than instructions, and only policy-passed mail is exposed. The service records every governed tool call, including denials and drafts. Business-tier customers with the required token flag can export the audit log with hash-chain fields for SIEM verification.

How it works

The package provides a local stdio MCP server that communicates with the Mailbuttons backend over its REST surface. The hosted, network-facing MCP endpoint is available at POST /api/v1/mcp/rpc; clients using Streamable HTTP can connect with an Authorization header. Both forms expose the twelve governed runtime tools. The local package additionally exposes three build-time helpers for generating policy, scaffolding integrations, and running a self-test.

Capabilities are attached to the token. Reading requires read, attachment extraction requires attachments, internal sending requires send_internal, and sender-allowlist proposals require propose_policy. Promotion requests only file a human-approval request; they do not change the token's authority.

Setup and configuration

Create an account and API key at Mailbuttons, then create a sandbox inbox. The sandbox response provides a token such as mb_sandbox_.... For a local client, run the package with npx -y @mailbuttons/mcp-server and pass the token through MAILBUTTONS_API_KEY rather than embedding it in configuration or generated code.

The default backend is https://mailbuttons.com. Set MAILBUTTONS_API_URL when using another backend URL, including a local or self-hosted deployment. Remote clients can use https://mailbuttons.com/api/v1/mcp/rpc with the sandbox token in the Authorization header.

Tools and capabilities

Runtime tools include:

  • List messages, fetch individual messages, and retrieve complete threads with attachment metadata.
  • Extract inline text from text/* and CSV attachments. PDF and other binary attachments return an error with a next step.
  • Send or reply under policy, list held drafts, and inspect a draft's recipients, body, reason, and status.
  • Extract 4–8 digit verification codes only from senders allowlisted by mailbox policy.
  • Propose an allowlist sender, request capability or sandbox-to-production promotion, and inspect recent audit entries.
  • Export audit data as JSONL or CEF when the token has the siem_export flag.

Build-time helpers can write mailbuttons.policy.json, generate a governed send wrapper and inbound webhook handler, or send and read back an internal self-test message. Generated integration code reads MAILBUTTONS_API_KEY from the environment and does not grant permissions.

Limitations and notes

External sending from a sandbox never delivers directly; it produces draft_pending_approval, while disallowed recipients produce blocked. A human releases held drafts outside the agent. The agent cannot add inboxes, grant send_external, promote itself, or widen a token's scope. The self-test needs a reachable backend to complete its later stages and otherwise reports that the backend is unreachable. Build-time writers only modify their designated output paths within the launch directory.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mailbuttons

Mailbuttons is an MCP server that connects AI agents to governed Mailbuttons inboxes through stdio or Streamable HTTP. Its main tools list and read messages, inspect threads and attachments, send governed email, manage approval drafts, extract allowlisted verification codes, request promotions, and audit tool activity.

Install it through the local stdio command `npx -y @mailbuttons/mcp-server` and provide `MAILBUTTONS_API_KEY` in the client environment. Create the key and a sandbox inbox through Mailbuttons first; remote clients can instead connect to the hosted MCP endpoint.

No, not directly from a sandbox token. An external recipient produces a `draft_pending_approval` result for a human to release, while a policy-disallowed recipient produces `blocked`. The agent can request promotion, but it cannot grant itself external-send access.

Yes, Mailbuttons supports Cursor through its local stdio configuration. Add the package as an MCP server, set `MAILBUTTONS_API_KEY` to the sandbox or production token, and use the configured backend URL when the default is not appropriate.

Mailbuttons records every governed tool call, including denials and held drafts. Use `mailbuttons_audit_tail` for recent activity, or `mailbuttons_export_audit` for JSONL or CEF output with `entry_hash` and `prev_hash`; export requires the token's `siem_export` flag.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMailbuttons AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mailbuttons-2?style=directory)](https://allmcps.com/mcp/mailbuttons-2)
HTML Embed
<a href="https://allmcps.com/mcp/mailbuttons-2"><img src="https://allmcps.com/api/badge/mailbuttons-2?style=directory" alt="Mailbuttons on AllMCPs" /></a>