Skip to content
MCP server
Registry

Spare Email MCP Server

Read-only MCP server for spare.email mailboxes: list mail, read messages, wait for OTP codes.

Spare Email MCP scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 5 tools. Filed under Communication. GitHub shows 0 stars. Package registries report about 104 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by sparedotemailMITTypeScript0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 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 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. 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.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 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.

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": {    "sparedotemail-spare-email-mcp": {      "command": "npx",      "args": [        "-y",        "spare-email-mcp@0.1.2"      ],      "env": {        "SPARE_EMAIL_JWT": "YOUR_SPARE_EMAIL_JWT",        "SPARE_EMAIL_BASE_URL": "",        "SPARE_EMAIL_SITE_PASSWORD": "YOUR_SPARE_EMAIL_SITE_PASSWORD"      }    }  }}

Environment variables

NameRequiredNotes
SPARE_EMAIL_JWTSecretRequiredAddress JWT of the spare.email (or self-hosted cloudflare_temp_email) mailbox to access
SPARE_EMAIL_BASE_URLOptionalBase URL of the deployment (default: https://spare.email; set for self-hosted instances)
SPARE_EMAIL_SITE_PASSWORDSecretOptionalGlobal x-custom-auth access password, if the deployment enforces one

Tools5Tool docs quality grade C

All capabilities
  • List recent mails, newest first (limit 1-100, offset).

  • Returns the mailbox address the server is authenticated as. Use first to verify the JWT works.

  • Claude Desktop / Cursor / generic block

  • Read one mail in full by id: from/to/subject/date, plain-text body, attachment metadata.

  • Poll until a new mail arrives after the call starts, then extract the most likely verification code. Supports timeoutseconds (10-600), pollseconds (3-30), and subjectcontains filtering.

About

spare-email-mcp

A read-only Model Context Protocol server for spare.email mailboxes (works with any cloudflare_temp_email deployment).

It lets MCP-aware agents (Claude, Cursor, Codex, ...) look inside a mailbox you already created: list the inbox, read a parsed mail, and wait for a verification code. It is deliberately read-only: it cannot create mailboxes, delete mail, or send anything, and it holds no credentials of its own — it uses the same Address JWT you can copy from the web UI.

Tools

ToolPurpose
mailbox_infoReturns the mailbox address the server is authenticated as. Use first to verify the JWT works.
list_mailsList recent mails, newest first (limit 1-100, offset).
read_mailRead one mail in full by id: from/to/subject/date, plain-text body, attachment metadata.
wait_for_otpPoll until a new mail arrives after the call starts, then extract the most likely verification code. Supports timeout_seconds (10-600), poll_seconds (3-30), and subject_contains filtering.

Code extraction runs locally in the server using the multilingual rule-based extractor ported verbatim from the upstream worker (extract_code.ts, MIT) — keyword-anchored patterns in about a dozen languages, with guards against dates, amounts, phone numbers, and URLs. No AI model and no extra API calls.

No mail arrives within the timeout? wait_for_otp returns a structured "nothing arrived" result instead of hanging or guessing.

Configuration

The server is configured entirely through environment variables:

VariableRequiredMeaning
SPARE_EMAIL_JWTyesAddress JWT, copied from the spare.email web UI (settings).
SPARE_EMAIL_BASE_URLnoAPI base URL. Defaults to https://spare.email; point it at your own deployment if self-hosting.
SPARE_EMAIL_SITE_PASSWORDnoOnly if the deployment enabled the site-wide access password (x-custom-auth).
SPARE_EMAIL_LANGnoError-message language, en (default) or zh.

Every tool reports an actionable error on failure — for example, an expired JWT returns a hint to copy a fresh one from the web UI.

Usage

Claude Code

claude mcp add spare-email -e SPARE_EMAIL_JWT=eyJ... -- node /path/to/spare-email-mcp/dist/index.js

Claude Desktop / Cursor / generic mcpServers block

{
  "mcpServers": {
    "spare-email": {
      "command": "node",
      "args": ["/path/to/spare-email-mcp/dist/index.js"],
      "env": {
        "SPARE_EMAIL_JWT": "eyJ...",
        "SPARE_EMAIL_BASE_URL": "https://spare.email"
      }
    }
  }
}

Security notes

  • The JWT grants full read access to that one mailbox only. Treat it like a password in your MCP config; rotate it by opening a fresh mailbox (or changing its password) in the web UI.
  • The mailbox lifetime rules of the deployment apply: on spare.email a default mailbox auto-expires, so point long-lived agent workflows at a mailbox with the retention you want and keep a copy of its JWT.
  • The server is stateless and never writes: no mailbox creation, no send, no deletes. Rate limits are honored (429 responses back off a poll cycle).

Typical agent workflow

  1. Human creates a mailbox in the web UI and copies the Address JWT into the MCP server config.
  2. Agent signs up somewhere using that mailbox address.
  3. Agent calls wait_for_otp (optionally filtering by subject) and gets the verification code without any human copy-pasting.

Underlying REST API

The tools are a thin layer over the deployment's read-only parsed-mail endpoints (GET /api/settings, GET /api/parsed_mails, GET /api/parsed_mail/:id). Build your own client with plain HTTP if you prefer — usage notes, response shapes and the polling pattern are documented at https://spare.email/docs/en/guide/feature/mail-api-parsed.

Development

npm install
npm run build    # tsc -> dist/
SPARE_EMAIL_JWT=... SPARE_EMAIL_BASE_URL=... npm run smoke

Provenance

Developed as part of the spare.email stack (https://spare.email); this repository is the canonical home of the published package.

Frequently asked questions

What is Spare Email MCP Server?

Read-only MCP server for spare.email mailboxes: list mail, read messages, wait for OTP codes.

How do I install Spare Email 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. Spare Email MCP Server runs locally from the npm package spare-email-mcp with the command npx -y spare-email-mcp@0.1.2.

Is Spare Email MCP Server free and open source?

Yes. Spare Email 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 Spare Email MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Spare Email MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Spare Email MCP Server provide?

Spare Email MCP Server provides 5 tools, including list_mails, mailbox_info, mcpServers, and read_mail. See the full tool list for descriptions and parameters.

How is Spare Email MCP Server's trust score calculated?

Spare Email MCP Server scores 66 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