aliasflare
Self-hosted email aliases on Cloudflare Workers + D1 + Email Routing: Deploy button plus two Email Routing settings, reply from alias, OTP extraction, MCP for AI agents. 自建永久别名邮箱
Install / Use
claude mcp add charleswei118 -- npx -y github:charleswei118/aliasflareIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
CommunicationSupported Platforms
Tags
Our assessment of aliasflare
aliasflare scores 76/100 on our quality scale, 377th of 398 Communication skills we index.
Its MCP Server is 6.9 KB long, well organised into 14 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated yesterday, so aliasflare is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
aliasflare compared with similar skills
All 4 of these similar skills score higher than aliasflare; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| aliasflare (this skill)by charleswei118 | 76 | 10 | 1d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 108.0k | 1d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.7k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 92.8k | today | MCP Server |
Frequently asked questions
- How do I install aliasflare?
- Run
claude mcp add charleswei118 -- npx -y github:charleswei118/aliasflare. The install tabs above show the steps for each supported agent. - Which AI agents does aliasflare work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is aliasflare safe to use?
- It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is aliasflare still maintained?
- The repository was last updated yesterday, so aliasflare is actively maintained.
Skill content
View source on GitHubaliasflare
Your own SimpleLogin / addy.io, on Cloudflare's free tier. One-click deploy plus two Email Routing settings, about 5 minutes.
A different email address for every website, all landing in your real inbox. Turn any of them off in one click when the spam starts. Reply as the alias, so your real address never leaks. Verification codes are pulled into the subject line, tracking pixels are stripped, and AI agents can create aliases and read codes through MCP.
Why
| | SimpleLogin free | addy.io free | aliasflare | |---|---|---|---| | Aliases | 10 | unlimited on username, 10 shared | unlimited | | Your own domain | paid | paid | yes | | Bandwidth | unlimited | 10 MB / month | unlimited inbound | | Reply from alias | yes | paid | yes (optional: free Resend account, or Workers Paid) | | Your data | their servers | their servers | your Cloudflare account | | Cost | $0, then $36/yr | $0, then $12–36/yr | $0 |
Features
- Unlimited aliases on one or more of your domains. Create them in the dashboard, or just make one up when signing up —
anything@yourdomain.comis created on first mail (turn off withAUTO_CREATE=false). - One-click disable. A disabled alias rejects mail as if it never existed.
- Sender hidden, reply as alias. Each message arrives
From: "Shop (news at shop.com)" <shop.k3f9@yourdomain.com>with a privateReply-To. Hit reply in Gmail and the answer goes out from the alias; your real address is scrubbed from the body too. - Send new mail from any alias (dashboard, API or MCP).
- Verification codes detected in Chinese, English, Japanese, Korean and more, and put into the subject:
[482913] Your login code. - Tracking pixels removed (1×1 images, hidden images, known trackers).
- MCP server at
/mcp:create_alias,get_latest_code,list_aliases,set_alias_enabled,recent_messages,send_from_alias. Let your agent sign up for things without your inbox. - Never loses mail. If rewriting fails for any reason the original is forwarded as-is.
- Small and auditable. ~1,000 lines of plain JavaScript, one dependency (
postal-mime), D1 stores only metadata (no message bodies).
Deploy (about 5 minutes)
You need a domain on Cloudflare.
- Email Routing on. Cloudflare Dashboard → your domain → Email → Email Routing → enable it (Cloudflare adds the MX records). Under Destination addresses, add your real inbox and click the verification link.
- Click the button above. Cloudflare copies this repo to your GitHub, creates the D1 database and asks for:
DOMAIN— e.g.example.com(comma-separate several)DESTINATION— your verified real inboxADMIN_TOKEN— a long random password (openssl rand -hex 24)RESEND_API_KEY— optional, see below;noneto skip
- Route mail to the Worker. Email Routing → Routing rules → Catch-all address → action Send to a Worker →
aliasflare→ enable.
Open your Worker's URL, log in with ADMIN_TOKEN, and create your first alias.
Replying for free
Receiving and forwarding to your own verified inbox is free on every Cloudflare plan. Sending to other people (replies, new mail) needs one of:
- Resend (recommended, free 3,000 emails/month, 100/day): sign up at resend.com, add and verify your domain, create an API key, set it as
RESEND_API_KEY. - Cloudflare Email Sending on Workers Paid ($5/month, 3,000 emails included): onboard your domain under Email Sending and leave
RESEND_API_KEY=none.
Without either, everything except replying and sending works.
Manual deploy
git clone https://github.com/charleswei118/aliasflare && cd aliasflare
npm install
npx wrangler d1 create aliasflare # wrangler can also create it on first deploy
for s in DOMAIN DESTINATION ADMIN_TOKEN RESEND_API_KEY; do npx wrangler secret put $s; done
npm run deploy # applies migrations, then deploys
Then do step 3 above.
Settings
Secrets: DOMAIN, DESTINATION, ADMIN_TOKEN, RESEND_API_KEY.
Variables in wrangler.toml:
| Variable | Default | What it does |
|---|---|---|
| AUTO_CREATE | true | Create aliases on first incoming mail |
| FORWARD_MODE | rewrite | forward = plain forwarding, no sender hiding or replies |
| BLOCK_TRACKERS | true | Strip tracking pixels |
| CODE_IN_SUBJECT | true | Prefix the subject with a detected code |
| BANNER | true | One-line header showing alias and real sender |
Use with AI agents (MCP)
{
"mcpServers": {
"aliasflare": {
"url": "https://aliasflare.<you>.workers.dev/mcp",
"headers": { "Authorization": "Bearer <ADMIN_TOKEN>" }
}
}
}
Then: "Sign me up for the Notion newsletter with a new alias and confirm it." The agent calls create_alias(note="notion"), uses the address, then get_latest_code.
Local stdio MCP (Claude Desktop, Cursor, …)
If your client only speaks stdio, run the bundled bridge. It answers tools/list locally and forwards tool calls to your own Worker:
{
"mcpServers": {
"aliasflare": {
"command": "npx",
"args": ["-y", "github:charleswei118/aliasflare"],
"env": { "ALIASFLARE_URL": "https://aliasflare.<you>.workers.dev", "ALIASFLARE_TOKEN": "<ADMIN_TOKEN>" }
}
}
}
A Dockerfile for the same bridge is included.
REST API
All endpoints need Authorization: Bearer <ADMIN_TOKEN>.
| Method | Path | Body / query |
|---|---|---|
| GET | /api/config | |
| GET | /api/aliases | ?q= |
| POST | /api/aliases | {note} or {local, domain} or {address} |
| PATCH | /api/aliases/:id | {enabled, note} |
| DELETE | /api/aliases/:id | |
| GET | /api/messages | ?alias_id=&limit= |
| GET | /api/code | ?alias=&since= (minutes) |
| POST | /api/send | {alias, to, subject, text} |
How it works
stranger ──▶ shop.k3f9@you.com ──▶ Worker ──▶ you@gmail.com
From: "Shop (news at shop.com)" <shop.k3f9@you.com>
Reply-To: reply+<token>@you.com
you@gmail.com ──▶ reply+<token>@you.com ──▶ Worker ──▶ stranger
From: shop.k3f9@you.com
Only mail from your DESTINATION (and not failing SPF/DMARC) may use a reply+ address.
Limits
- Cloudflare Email Routing: 25 MiB per message. The catch-all rule means the 200-rule limit does not apply.
- Free Workers plan: 100,000 requests/day and 10 ms CPU per invocation; very large messages with many attachments may exceed CPU on the free plan and fall back to plain forwarding.
- Cloudflare Email Sending is in beta.
Development
npm test # node:test, uses node:sqlite as a D1 stand-in
npm run dev
License
MIT
Related Skills
Agent-Reach
108.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
92.8k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
