anonsec-mcp-server
Manages anonymous emails through Firefox Relay, including sending, receiving, reading emails, and extracting OTP codes from relay addresses.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@anonsec-mcp-serverget the OTP from my latest email"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Firefox Relay MCP Server (anonsec-mcp-server) is a production-grade Model Context Protocol server that provides comprehensive anonymous email management capabilities through Firefox Relay addresses. Built with privacy, security, and operational excellence as core principles, this server enables AI agents and applications to send, receive, and process emails while maintaining complete anonymity.
Core Value Proposition
Privacy-First: All email operations maintain sender anonymity through Firefox Relay infrastructure
PQC-Ready: Post-Quantum Cryptography ready encryption architecture for data at rest
Production-Grade: Built with golden-standard programming practices for reliability and security
MCP Native: Full Model Context Protocol 2.0 compliance with tools and resources
Related MCP server: agent-inbox
Quick Start
Prerequisites
Node.js >= 18.0.0
npm or yarn
Firefox Relay account and API access
Installation
# Clone the repository
git clone https://github.com/VrilLabs/anonsec-mcp-server.git
cd anonsec-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Start the server
npm run devConfiguration
Create a .env file with your Firefox Relay credentials:
FIREFOX_RELAY_API_KEY=your_api_key_here
ENCRYPTION_KEY=your_32_byte_hex_key_here
DATABASE_PATH=./data/anonsec.sqlite
PORT=3000The encryption key must be exactly 32 bytes (64 hex characters). Generate one with:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"Capabilities
Email Management
List new/unread emails from Firefox Relay addresses
Read full email content with decryption
Retrieve all emails with filtering
Get latest email from any relay address
OTP Handling
Extract OTP codes from emails
Validate OTP format and confidence
Check OTP expiration
Re-extract OTP from email body
Email Sending
Send anonymous emails through relay addresses
Support for plain text and HTML content
Custom headers and metadata
OTP email simulation
Project Structure
.
├── src/
│ ├── index.ts # Server entry point and configuration
│ ├── api/
│ │ └── index.ts # Firefox Relay API client
│ ├── config/
│ │ └── index.ts # Configuration management
│ ├── db/
│ │ └── index.ts # SQLite database service
│ ├── tools/
│ │ ├── all_emails.ts
│ │ ├── latest_email.ts
│ │ ├── latest_email_otp.ts
│ │ ├── new_emails.ts
│ │ ├── read_emails.ts
│ │ └── send_anon_email.ts
│ ├── types/
│ │ └── index.ts # Type definitions
│ └── utils/
│ ├── crypto.ts # Encryption utilities
│ └── otp.ts # OTP extraction utilities
├── package.json
├── tsconfig.json
├── LICENSE
└── README.mdTools
The server provides 6 MCP tools:
new_emails - Retrieve new/unread emails
read_emails - Read full email content
all_emails - List all emails with filtering
latest_email - Get the latest email
latest_email_otp - Extract OTP from latest email
send_anon_email - Send anonymous emails
Resources
urn:anonsec:relay/addresses- Firefox Relay address managementurn:anonsec:email/collection- Email collection accessurn:anonsec:otp/emails- OTP emails collectionurn:anonsec:server/info- Server informationurn:anonsec:audit/logs- Audit logsurn:anonsec:email/{emailId}- Individual email access
Security Features
AES-256-GCM Encryption for data at rest
Immutable audit logs for all operations
Request ID tracking for traceability
Security validation for sensitive operations
OTP code masking in responses (never exposed)
Sensitive data redaction in audit logs
Architecture
The server follows a clean, production-ready architecture:
MCP Server Layer - Server initialization, tool registration, request handling
Tools Layer - Individual tool implementations
Core Services Layer - Database, API client, configuration, types, utilities
Data Layer - SQLite database with PQC-ready encryption
Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
Security
See SECURITY.md for vulnerability reporting and security practices.
License
This project is licensed under the MIT License - see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceEnables AI agents to create disposable email inboxes and automatically extract OTPs, magic links, and verification codes from incoming emails.8MIT
- AlicenseAqualityFmaintenanceEnables AI agents to create temporary email addresses, receive confirmation emails, and extract verification links, automating sign-up and email verification workflows without manual intervention.62858MIT
- Alicense-qualityCmaintenanceEnables email management via IMAP and SMTP with multi-account support, safe sending with confirmation, and read-only modes.MIT
- Alicense-qualityAmaintenanceEnables AI agents to generate temporary email addresses, receive emails, and automatically extract OTP codes and links from incoming messages for automation and testing workflows.MIT
Related MCP Connectors
Email for AI agents — send, receive as a webhook, manage domains, templates, routing.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/VrilLabs/anonsec-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server