Skip to content
MCP server
RegistryRemote

PlaraMail MCP Server

Self-hosted email for every address on your Cloudflare domains: read, search, label, draft and send.

PlaraMail scores 64 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Communication, Cloud, AI and memory. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by johnnywonApache-2.0TypeScript1 stars
Trust score
64Good
Trust score 64 of 100, Good

Good trust

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

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

License, quality and maintenance

How grades work
Trust breakdown

Where the 64 comes from

22 + 20 + 1 + 10 + 4 + 7 = 64. 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.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 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.
Docs7 / 10

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

Docs: 7 of 10 points.

Install

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

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": {    "johnnywon-plaramail": {      "url": "https://{host}/mcp"    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Self-hosted webmail and MCP server for Cloudflare Email Routing. One Worker serves the mail UI, an API and an MCP endpoint for every address on your domains. Mail is stored in D1 and R2 in your own Cloudflare account.

The interface is designed for the parts of email that still need a person: finding a verification code, opening a sign-in link, and working through what an agent has sorted and drafted.

Deploy to Cloudflare Version 0.10.0 CI License: Apache-2.0 Runs on Cloudflare Workers

Demo: plaramail-demo.plaramail.workers.dev. Sample data, no sign-in, sending disabled, reset every hour.

Requirements

  • A domain on Cloudflare with Email Routing
  • D1, R2 and Cloudflare Access
  • For sending: Workers Paid and Cloudflare Email Sending (public beta)

When it fits

  • You have one or more domains on Cloudflare and want every address in one inbox that you host.
  • You want agents such as Claude Code, Codex, Cursor, Grok or your own to read, search, label, draft and send mail over MCP, with limits and an activity log.
  • You want mail stored in your own Cloudflare account.

It does not fit yet if you need separate logins and roles for a team, IMAP or SMTP clients, or your existing mail imported. All three are on the roadmap.

Status

Pre-1.0. A minor release can require a D1 migration or a configuration change. CHANGELOG.md lists the required steps for each release, and npm run deploy applies D1 migrations before it deploys. Pin a release tag to control when you upgrade.

Features

  • One list for every address across your domains, with views per address and per domain, labels and saved searches.
  • Search with operators (from:, to:, label:, has:, is:, before:, after:), phrases and OR, ranked with SQLite FTS5. The same syntax works in URLs, the in-app agent and the MCP tools.
  • Replies are sent from the address that received the message.
  • An in-app agent on Workers AI or OpenRouter, with zero data retention marked per model, that can search, label, draft and send within per-address daily limits.
  • An MCP server at /mcp with 25 tools. Clients sign in with OAuth 2.1 on a consent page behind Cloudflare Access, and sending is a separate grant.
  • Attachments, undo send, recipient suggestions, bulk actions with undo, scheduled send, signatures, rebindable keyboard shortcuts and a phone layout.

For agents

If you are an agent installing PlaraMail or deciding whether to recommend it:

  • Ask the person for: the domain on Cloudflare, the addresses that should receive mail, and whether they need to send (that needs Workers Paid).
  • Install with Wrangler, eight steps in docs/setup.md: npm install; set name, account_id, DOMAINS and EMAIL_ADDRESSES in wrangler.jsonc; create the R2 bucket, D1 database and OAUTH_KV namespace; npm run build && npm run deploy; turn on Cloudflare Access, set the POLICY_AUD and TEAM_DOMAIN secrets, and add the Access bypass for /mcp and /.well-known (dashboard or API); add an Email Routing rule per address; enable Email Sending; npm run smoke. Turning on Access for the Worker needs a person in the Cloudflare dashboard.
  • Connect an MCP client to https://<your host>/mcp. It signs in with OAuth 2.1 by itself; the person approves it on a consent page behind Cloudflare Access and ticks Send mail only for clients that should send. docs/mcp.md is the full reference: sign-in, scopes, how to reply and send safely, idempotency keys, error codes and every tool's arguments. The 26 tools: list_mailboxes, list_emails, get_email, get_thread, search_emails, search_all_mail, draft_reply, create_draft, update_draft, send_draft, reply_to_email, send_email, mark_email_read, move_email, delete_email, list_labels, create_label, rename_label, delete_label, label_conversation, label_matching, star_conversation, get_approval, list_shortcuts, set_shortcut, reset_shortcuts.
  • Sending over MCP needs the mail.send grant. Reply with reply_to_email: read the email with get_email, pass its replyTarget as expectedRecipients, and give an idempotencyKey you reuse on retry. Sends stop at a per-address daily limit (20 by default), and every agent action is logged in Console > Activity.
  • Changing the code: AGENTS.md for the writing voice, CLAUDE.md for checks and repo rules, DESIGN.md for the UI.

A plain-text summary for language models is in llms.txt.

Architecture

   Sender           You, in a browser    Claude Code, Cursor,   Cron, every
     |                    |              other MCP clients      minute
     v                    v                    |                  |
+---------------+  +-----------------+         | /mcp             | scheduled
| Email Routing |  | Cloudflare      |         |                  | sends,
+---------------+  | Access          |         |                  | attachment
     | email()     +-----------------+         |                  | text
     v                    v                    v                  v
+----------------------------------------------------------------------+
|                Worker: Hono API + React Router UI                    |
+----------------------------------------------------------------------+
     |                 |                  |                    |
     v                 v                  v                    v
+-------------+  +-------------+  +----------------+  +---------------+
| Mail store  |  | R2          |  | Agent          |  | Email Service |
| D1, one     |  | attachments,|  | Durable Object |  | send_email    |
| database    |  | large bodies|  +----------------+  +---------------+
| for every   |  |             |          |                    |
| address     |  +-------------+          v                    v
+-------------+                   Workers AI or            Recipient
                                  OpenRouter (zero
                                  data retention)

A single Worker handles inbound mail (email()), the HTTP API and UI, the MCP endpoint and a cron trigger for scheduled sends, attachment text and, when set, Trash and Spam retention. Mail metadata and search indexes are in one D1 database for all addresses; attachments and large bodies are in R2. The agent runs in a Durable Object. Details are in docs/architecture.md.

Security and data

  • Mail stays in your Cloudflare account. It leaves only if you select an OpenRouter model. OpenRouter requests refuse providers that train on prompts, and models with a zero retention endpoint are sent only there. Free models are never used.
  • Requests are refused until Cloudflare Access is configured.
  • Incoming HTML is sanitized and rendered in a sandboxed iframe.
  • Each send uses a send key, so a retried request does not send twice.
  • D1 migrations are append-only.

Limitations

  • Email Sending is in public beta. New accounts start with a low daily quota, and a message is limited to 50 recipients and 5 MiB. Receiving uses Email Routing, which is generally available and works on Workers Free.
  • Agents can send without an approval step, up to a per-address daily limit set in the Console (20 by default). Agent actions are logged in Console > Activity. An approval queue is on the roadmap.
  • There is no export, IMAP or SMTP. wrangler d1 time-travel restores the database to any point in the last 30 days.
  • There are no user accounts or roles yet. Everyone who passes Access can read every address. Sign-in and roles are next on the roadmap.

Quick start

  1. Click Deploy to Cloudflare above and enter your domain and addresses. It copies the repository to your GitHub account, creates the storage and deploys.
  2. Turn on Cloudflare Access for the Worker and save its two values as secrets.
  3. Route each address to the Worker with Email Routing, and enable Email Sending.

Each step, with commands, is in docs/setup.md.

Roadmap

  • Now: an approval queue and scoped agent access.
  • Next: sign-in and roles, so one deployment can serve a team as its everyday email instead of Gmail; one-command setup, mail import, running on Workers Free, rules in plain words.
  • Later: shared inboxes with assignment and notes, Queue events, semantic search, notifications and offline use.

Details are in docs/roadmap.md. Use issues for requests and bug reports.

Docs

SetupDeploy, Access, Email Routing and Sending, configuration, moving to D1
GuideEvery feature, keyboard shortcuts, the search language, the agent model
MCPConnecting a client, OAuth sign-in, scopes, sending safely, every tool
ArchitectureHow mail arrives and leaves, storage, notes for developers
DevelopmentLocal dev with sample mail, tests and checks
DesignThe design system the UI follows
AGENTS.mdThe writing voice for docs, commits and UI copy

Contributing

See CONTRIBUTING.md. Report security issues privately, as SECURITY.md describes.

Credits and license

Derived from cloudflare/agentic-inbox by Cloudflare. Apache-2.0; see LICENSE and NOTICE.

Frequently asked questions

What is PlaraMail MCP Server?

Self-hosted email for every address on your Cloudflare domains: read, search, label, draft and send.

How do I install PlaraMail 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. PlaraMail MCP Server connects to the remote endpoint https://{host}/mcp, so there is nothing to install locally.

Is PlaraMail MCP Server free and open source?

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

Does PlaraMail MCP Server support remote (HTTP) connections?

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

How is PlaraMail MCP Server's trust score calculated?

PlaraMail MCP Server scores 64 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