Skip to content
AgentMail logo
MCP server
RegistryRemote

AgentMail MCP Server

Open-source (MIT) email inboxes for AI agents with scoped keys, webhooks & AI spam guard.

AgentMail scores 68 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 1 tool. Filed under Communication. GitHub shows 4 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by urivaMITTypeScript4 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "uriva-agentmail": {      "url": "https://api.theagentmail.net/mcp"    }  }}

Environment variables

This server does not declare environment variables.

Tools1Tool docs quality grade F

All capabilities

About

AgentMail (theagentmail.net)

mcptry

Open-source (MIT) email infrastructure for AI agents. Give every agent its own @theagentmail.net mailbox with sending, receiving, real-time webhooks, attachments, and a real-time AI spam/phishing guard — $1/month per mailbox (first mailbox free for 30 days) or self-host on Cloudflare Workers.

Why AgentMail?

FeatureAgentMail (theagentmail.net)agentmail.toDIY (Gmail / own domain)
License100% Open Source (MIT)Closed sourceVaries
Self-hostableYes (Cloudflare Workers)NoManual DNS + SMTP/IMAP
Pricing$1/mo per mailbox ($5 prepaid, never expires)$200/mo Startup (150 inboxes) + $2/extraDomain + email host + warmup
Outbound spam guardReal-time AI spam & phishing filterAccount-levelNone
Agent integrationREST API, webhooks, /llms.txt, OpenCode skillSDK + REST APIIMAP/SMTP boilerplate

Connect via Remote MCP or AgentSkill (Claude Code / Hermes / OpenClaw / Cursor)

Zero npm packages or local bridge required — connect any Streamable HTTP MCP client directly to https://api.theagentmail.net/mcp (published in the Official MCP Registry as net.theagentmail/agentmail):

claude mcp add --transport http agentmail https://api.theagentmail.net/mcp \
  --header "Authorization: Bearer $AGENTMAIL_KEY"

Or install the standard AgentSkill for Hermes Agent, OpenClaw, Claude Code, Cursor, or OpenCode:

npx skills add uriva/agentmail --skill theagentmail

30-Second Quickstart

Create a mailbox with your org key (from theagentmail.net/app):

curl -X POST https://api.theagentmail.net/v1/accounts \
  -H "Authorization: Bearer $AGENTMAIL_ORG_KEY" \
  -H "Content-Type: application/json" \
  -d '{"address": "deploy-bot"}'

Send an email with a scoped account key (zero dependencies):

await fetch("https://api.theagentmail.net/v1/messages", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AGENTMAIL_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    to: ["you@company.com"],
    subject: "Deploy succeeded",
    text: "All checks green.",
  }),
});

Or hand any coding agent (Claude Code, OpenCode, Cursor, OpenClaw) your scoped key and https://theagentmail.net/llms.txt — it can read the entire spec and wire up sending, inbox polling, and signed webhooks automatically.

Architecture

  • Runtime & Hosting: Deno locally, bundled to Cloudflare Workers (wrangler.jsonc) serving both https://theagentmail.net and https://api.theagentmail.net
  • Database: InstantDB (@instantdb/admin)
  • Email provider: Resend (outbound sending + inbound webhook at POST /inbound)
  • Spam & phishing protection: Real-time outbound and inbound classification (src/services/emailGuard.ts)
  • Billing & verification: Stripe (prepaid balance checkout) and Twilio Verify (trial phone verification)
  • File storage: Google Cloud Storage (agentmail-attachments)
  • Frontend: Preact + Vite (web/)
  • TypeScript SDK: sdk/
  • Analytics: PostHog

Self-Hosting Setup

Configure .env with the required credentials:

VariableDescription
INSTANT_APP_IDInstantDB app ID (VITE_INSTANT_APP_ID for frontend)
INSTANT_ADMIN_TOKENInstantDB admin token
RESEND_API_KEYResend API key for sending and fetching inbound emails
INBOUND_WEBHOOK_SECRETResend inbound webhook Svix secret
EMAIL_DOMAINDomain for mailboxes (default: theagentmail.net)
GCP_PROJECTGoogle Cloud project ID
GCP_STORAGE_BUCKETGCS bucket for attachments (default: agentmail-attachments)
GCP_SERVICE_ACCOUNT_KEYGCP service account key JSON
STRIPE_SECRET_KEYStripe secret key for balance top-ups
STRIPE_WEBHOOK_SECRETStripe webhook signing secret
TWILIO_ACCOUNT_SIDTwilio account SID for phone verification
TWILIO_AUTH_TOKENTwilio auth token (or TWILIO_API_KEY_SID / SECRET)
TWILIO_VERIFY_SERVICE_SIDTwilio Verify service SID
GEMINI_API_KEYGemini API key for real-time spam/phishing classification
POSTHOG_API_KEYPostHog API key (VITE_POSTHOG_KEY for frontend)

Development & Deployment

deno task dev           # Run API server locally on :8000 with watch mode
deno task dev:web       # Run frontend dev server
deno task check         # Type-check server and SDK
deno task test          # Run test suite
deno task build:web     # Build & prerender static frontend into web/dist
deno task build:worker  # Bundle Cloudflare Worker into dist/worker.js
deno task deploy        # Deploy worker + static assets via wrangler

License

MIT

Frequently asked questions

What is AgentMail MCP Server?

Open-source (MIT) email inboxes for AI agents with scoped keys, webhooks & AI spam guard.

How do I install AgentMail MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. AgentMail MCP Server connects to the remote endpoint https://api.theagentmail.net/mcp, so there is nothing to install locally.

Is AgentMail MCP Server free and open source?

Yes. AgentMail MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does AgentMail MCP Server support remote (HTTP) connections?

Yes. AgentMail MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does AgentMail MCP Server provide?

AgentMail MCP Server provides 1 tool: theagentmail.net. See the full tool list for descriptions and parameters.

How is AgentMail MCP Server's trust score calculated?

AgentMail MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server