anonsec-mcp-server

anonsec-mcp-server

Provides anonymous email management through Firefox Relay, enabling sending, receiving, and OTP extraction while maintaining privacy and security.

Category
访问服务器

README

<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="assets/anonsec-header.svg"> <img alt="AnonSec MCP Server - Anonymous Email Management Header" src="assets/anonsec-header.svg" width="100%"> </picture> </p>

<p align="center"> <a href="https://opensource.org/licenses/MIT"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a> <a href="https://scorecard.dev/viewer/?uri=github.com/VrilLabs/anonsec-mcp-server"><img alt="OpenSSF Scorecard" src="https://api.scorecard.dev/projects/github.com/VrilLabs/anonsec-mcp-server/badge"></a> </p>

<h1 align="center">Firefox Relay MCP Server - Anonymous Email Management</h1>

<p align="center"> <strong>Production-Ready MCP Server for Firefox Relay Anonymous Email Operations</strong> </p>

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

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 dev

Configuration

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=3000

The 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.md

Tools

The server provides 6 MCP tools:

  1. new_emails - Retrieve new/unread emails
  2. read_emails - Read full email content
  3. all_emails - List all emails with filtering
  4. latest_email - Get the latest email
  5. latest_email_otp - Extract OTP from latest email
  6. send_anon_email - Send anonymous emails

Resources

  • urn:anonsec:relay/addresses - Firefox Relay address management
  • urn:anonsec:email/collection - Email collection access
  • urn:anonsec:otp/emails - OTP emails collection
  • urn:anonsec:server/info - Server information
  • urn:anonsec:audit/logs - Audit logs
  • urn: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:

  1. MCP Server Layer - Server initialization, tool registration, request handling
  2. Tools Layer - Individual tool implementations
  3. Core Services Layer - Database, API client, configuration, types, utilities
  4. 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选