Server data from the Official MCP Registry
Read-only MCP server for spare.email mailboxes: list mail, read messages, wait for OTP codes.
About
Read-only MCP server for spare.email mailboxes: list mail, read messages, wait for OTP codes.
Security Report
Valid MCP server (2 strong, 3 medium validity signals). 5 known CVEs in dependencies (0 critical, 3 high severity) Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.
7 files analyzed · 6 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: SPARE_EMAIL_JWT
Environment variable: SPARE_EMAIL_BASE_URL
Environment variable: SPARE_EMAIL_SITE_PASSWORD
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"spare-email-mcp": {
"command": "npx",
"args": [
"-y",
"spare-email-mcp@0.1.2"
],
"env": {
"SPARE_EMAIL_JWT": "your-spare-email-jwt-here",
"SPARE_EMAIL_BASE_URL": "your-spare-email-base-url-here",
"SPARE_EMAIL_SITE_PASSWORD": "your-spare-email-site-password-here"
}
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
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
| Tool | Purpose |
|---|---|
mailbox_info | Returns the mailbox address the server is authenticated as. Use first to verify the JWT works. |
list_mails | List recent mails, newest first (limit 1-100, offset). |
read_mail | Read one mail in full by id: from/to/subject/date, plain-text body, attachment metadata. |
wait_for_otp | Poll 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:
| Variable | Required | Meaning |
|---|---|---|
SPARE_EMAIL_JWT | yes | Address JWT, copied from the spare.email web UI (settings). |
SPARE_EMAIL_BASE_URL | no | API base URL. Defaults to https://spare.email; point it at your own deployment if self-hosting. |
SPARE_EMAIL_SITE_PASSWORD | no | Only if the deployment enabled the site-wide access password (x-custom-auth). |
SPARE_EMAIL_LANG | no | Error-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
- Human creates a mailbox in the web UI and copies the Address JWT into the MCP server config.
- Agent signs up somewhere using that mailbox address.
- 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.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
