Mailerastro
Description
# MailerAstro MCP Server > The email API for AI agents — now available as an MCP server. Send transactional emails, check wallet balances, and query reputation scores — all paid with USDC on Base via the x402 protocol. No API keys. No accounts. No subscriptions. Just your…
About
# MailerAstro MCP Server > The email API for AI agents — now available as an MCP server. Send transactional emails, check wallet balances, and query reputation scores — all paid with USDC on Base via the x402 protocol. No API keys. No accounts. No subscriptions. Just your wallet. ## Quick Start ### Remote (Streamable…
Details
- Author
- ruthlesscodes
- Downloads
- 103
- Categories
- Other
Jump to
- Pay per email with USDC on Base via x402 protocol
- No API keys, accounts, or sign‑up required
- Reputation system with Bronze, Silver, Gold, Platinum tiers
- Batch sending of up to 50 emails with a 10% discount
- Wallet address serves as identity
- Free tools for onboarding, balance check, and reputation query
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MailerastroCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Connect any MCP-compatible client to the hosted server at https://mcp.mailerastro.com/mcp (Streamable HTTP) or run locally with npx mailerastro-mcp-server. Tools include mailerastro_send_email, mailerastro_send_batch, mailerastro_check_balance, and mailerastro_get_reputation. Configure the MAILERASTRO_API_URL environment variable if needed. For local use with Claude Desktop, add the server to claude_desktop_config.json.
mailerastro_send_email
Send a single transactional email through MailerAstro. Payment is automatic via your wallet's USDC balance on Base (x402 protocol). Pricing: - Plain text: $0.001 per email - HTML: $0.005 per email Your wallet address IS your identity — no API keys or accounts needed. First-time senders are automatically registered. Args: - wallet_address (string): Your 0x... Ethereum/Base wallet address - to (string): Recipient email address - from (string): Sender email address - from_name (string, optional): Display name for sender - subject (string): Email subject line - body (string): Email body (plain text or HTML) - content_type ('text' | 'html'): Content format (default: 'text') - reply_to (string, optional): Reply-to email address Returns: JSON with: success (boolean), messageId (string), cost (number), remainingBalance (number) Examples: - Send a welcome email: wallet_address="0x...", to="user@example.com", from="hello@myapp.com", subject="Welcome!", body="Thanks for signing up." - Send HTML email: same as above but content_type="html", body="<h1>Welcome!</h1>" Error Handling: - 402: Insufficient USDC balance. Fund your wallet on Base. - 429: Rate limited. Max 60 emails/minute. - Use mailerastro_check_balance to verify funds before sending.
mailerastro_send_batch
Send up to 50 transactional emails in a single call. More efficient than individual sends — includes a 10% batch discount. Pricing (with batch discount): - Plain text: $0.0009 per email - HTML: $0.005 per email Args: - wallet_address (string): Your 0x... wallet address - recipients (array): Up to 50 objects with { email, name? } - from (string): Sender email address - from_name (string, optional): Sender display name - subject (string): Email subject line - body (string): Email body content - content_type ('text' | 'html'): Content format (default: 'text') - reply_to (string, optional): Reply-to address Returns: JSON with: success, totalSent, totalFailed, results (per-recipient), totalCost, remainingBalance Examples: - Notify 20 users: wallet_address="0x...", recipients=[{email: "a@b.com"}, ...], from="alerts@myapp.com", subject="Update", body="New feature launched" Error Handling: - 402: Insufficient balance for entire batch. Partial sends are not performed. - Maximum 50 recipients per batch call.
mailerastro_check_balance
Check your USDC balance on MailerAstro. This is FREE — no payment required. Use this before sending emails to verify you have sufficient funds. Your wallet address is your identity on MailerAstro. Args: - wallet_address (string): Your 0x... Ethereum/Base wallet address - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: JSON with: walletAddress, balance (in USD), currency, lastUpdated Examples: - Check balance: wallet_address="0x1234...abcd" - A balance of $1.00 can send ~1,000 plain text emails or ~200 HTML emails Error Handling: - 404: Wallet not found. Send your first email to auto-register, or fund your wallet with USDC on Base.
mailerastro_get_reputation
Query the reputation score and tier for any wallet address. This is FREE — no payment required. MailerAstro tracks agent reputation based on email behavior. Higher reputation unlocks premium services and higher rate limits. Tiers: Bronze (0-25) → Silver (26-50) → Gold (51-75) → Platinum (76-100) Args: - wallet_address (string): Wallet address to query (can be any agent's address) - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: JSON with: walletAddress, score (0-100), tier, totalEmailsSent, deliveryRate, bounceRate, spamRate, lastUpdated Examples: - Check your own reputation: wallet_address="0x1234...abcd" - Check another agent's reputation before interacting: wallet_address="0xabcd...1234" - Platinum tier agents get priority delivery and higher rate limits Error Handling: - 404: Wallet has no reputation history. Score starts at 50 (Silver) after first email.
mailerastro_get_send_history
View recent email send history for your wallet, including delivery status. This is FREE — no payment required. Use this to monitor deliverability, track bounces, and debug issues. Supports pagination and status filtering. Args: - wallet_address (string): Your 0x... wallet address - limit (number): Max results per page (1-100, default: 20) - offset (number): Skip N results for pagination (default: 0) - status ('delivered' | 'bounced' | 'pending' | 'failed', optional): Filter by status - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: JSON with: total, count, offset, entries[], has_more, next_offset Examples: - Get last 10 sends: wallet_address="0x...", limit=10 - Check for bounces: wallet_address="0x...", status="bounced" - Page through history: offset=20, limit=20 (page 2) Error Handling: - 404: No history found for this wallet.
mailerastro_get_started
Get setup instructions and introduction to MailerAstro — the email API for AI agents. Call this first to understand how MailerAstro works. Optionally provide your wallet address to check if you already have a balance. This tool is FREE — no payment required. Args: - wallet_address (string, optional): Your 0x... wallet to check existing balance Returns: Setup guide with pricing, capabilities, and next steps. If wallet_address provided, includes current balance. Examples: - First time: mailerastro_get_started with no args - Returning agent: mailerastro_get_started with wallet_address="0x..."
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mailerastro": {
"mailerastro": {
"url": "https://mcp.mailerastro.com/mcp"
}
}
}
}
McpServers
{
"mailerastro": {
"url": "https://mcp.mailerastro.com/mcp"
}
}
MailerAstro MCP Server
> The email API for AI agents — now available as an MCP server.
Send transactional emails, check wallet balances, and query reputation scores — all paid with USDC on Base via the x402 protocol. No API keys. No accounts. No subscriptions. Just your wallet.
Quick Start
Remote (Streamable HTTP)
Connect any MCP-compatible client to the hosted server:
https://mcp.mailerastro.com/mcp
Local (stdio)
npx mailerastro-mcp-server
Or install globally:
npm install -g mailerastro-mcp-server
TRANSPORT=stdio mailerastro-mcp
Claude Desktop Config
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mailerastro": {
"command": "npx",
"args": ["mailerastro-mcp-server"],
"env": {
"MAILERASTRO_API_URL": "https://api.mailerastro.com"
}
}
}
}
Tools
| Tool | Description | Cost |
|------|-------------|------|
| mailerastro_get_started | Onboarding guide for new agents | Free |
| mailerastro_send_email | Send a single transactional email | $0.001 (text) / $0.005 (HTML) |
| mailerastro_send_batch | Send up to 50 emails in one call | 10% batch discount |
| mailerastro_check_balance | Check your USDC wallet balance | Free |
| mailerastro_get_reputation | Query agent reputation score & tier | Free |
| mailerastro_get_send_history | View email delivery history | Free |
How It Works
Your AI Agent
↓ MCP tool call (mailerastro_send_email)
MailerAstro MCP Server
↓ x402 payment validation (USDC on Base)
MailerAstro API
↓ SMTP
Email Delivered ✅
1. Your wallet = your identity. No API keys needed. Pass your 0x... wallet address with every call.
2. Pay per email. USDC is deducted from your wallet balance automatically via the x402 protocol.
3. Build reputation. Consistent, high-quality sending earns higher tier status (Bronze → Silver → Gold → Platinum).
4. No sign-up required. Your account is created automatically on first use.
Pricing
| Email Type | Per Email | Batch (10% off) |
|-----------|-----------|------------------|
| Plain text | $0.001 | $0.0009 |
| HTML | $0.005 | $0.0045 |
Reputation System
| Tier | Score | Benefits |
|------|-------|----------|
| 🥉 Bronze | 0-25 | Basic sending |
| 🥈 Silver | 26-50 | Standard rate limits (default for new agents) |
| 🥇 Gold | 51-75 | Priority delivery |
| 💎 Platinum | 76-100 | Highest limits, premium support |
Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| MAILERASTRO_API_URL | https://api.mailerastro.com | API backend URL |
| TRANSPORT | stdio | Transport: stdio or http |
| PORT | 3001 | HTTP server port (when TRANSPORT=http) |
Self-Hosting
Deploy to Railway or any Node.js host:
git clone https://github.com/BossLadyMailerAstro/mailerastro-mcp-server.git
cd mailerastro-mcp-server
npm install
npm run build
TRANSPORT=http PORT=3001 npm start
Railway Deployment
1. Connect your GitHub repo to Railway
2. Set environment variables:
- TRANSPORT=http
- PORT=3001
- MAILERASTRO_API_URL=https://api.mailerastro.com
3. Deploy — Railway auto-detects the Node.js project
Development
npm install
npm run dev # Watch mode with tsx
npm run build # Compile TypeScript
npm start # Run compiled server
Architecture
src/
├── index.ts # Entry point, transport setup
├── constants.ts # Pricing, limits, config
├── types.ts # TypeScript interfaces
├── schemas/
│ └── index.ts # Zod validation schemas
├── services/
│ └── api-client.ts # MailerAstro API HTTP client
└── tools/
├── email.ts # send_email, send_batch
├── wallet.ts # check_balance, get_reputation, get_send_history
└── onboarding.ts # get_started
Links
- Website: mailerastro.com
- API Docs: mailerastro.com/docs
- Fund Wallet: bridge.base.org
License
MIT
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



