io.github.joansongjr/clawaimail

Official registry Search and web

Email infrastructure for AI agents. Create inboxes, send/receive email, and search messages.

What can you do with io.github.joansongjr/clawaimail?

  • REST API -- Send, receive, search, and manage emails with a simple JSON API.
  • MCP Server -- First-class Model Context Protocol server for Claude, Cursor, and other MCP-compatible clients.
  • WebSocket Streaming -- Real-time email events pushed to your agent as they happen.
  • Webhooks -- HTTP callbacks on incoming mail, delivery status, and other events.
  • Custom Domains -- Bring your own domain or use a @clawaimail.com address.
  • SDKs -- Official Node.js and Python SDKs for rapid integration.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package clawaimail-mcp
Claude Code
claude mcp add clawaimail -e 'CLAWAIMAIL_API_KEY=<your clawaimail_api_key>' -- npx -y clawaimail-mcp@0.1.1
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "clawaimail": {
            "command": "npx",
            "args": [
                "-y",
                "clawaimail-mcp@0.1.1"
            ],
            "env": {
                "CLAWAIMAIL_API_KEY": "<your clawaimail_api_key>"
            }
        }
    }
}

Environment variables

  • CLAWAIMAIL_API_KEY required secret Your ClawAIMail API key. Get one at https://clawaimail.com

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. ClawAIMail
  2. Features
  3. Quick Start
  4. MCP Server
  5. Self-Hosting
  6. API Endpoints
  7. Pricing
  8. Links
  9. License

ClawAIMail

Email infrastructure for AI agents.


ClawAIMail gives AI agents their own email addresses and full programmatic control over sending, receiving, and managing email. Built for developers who need reliable email primitives in agentic workflows.

Features

  • REST API -- Send, receive, search, and manage emails with a simple JSON API.
  • MCP Server -- First-class Model Context Protocol server for Claude, Cursor, and other MCP-compatible clients.
  • WebSocket Streaming -- Real-time email events pushed to your agent as they happen.
  • Webhooks -- HTTP callbacks on incoming mail, delivery status, and other events.
  • Custom Domains -- Bring your own domain or use a @clawaimail.com address.
  • SDKs -- Official Node.js and Python SDKs for rapid integration.

Quick Start

Node.js
npm install clawaimail
const { ClawAIMail } = require("clawaimail");

const client = new ClawAIMail({ apiKey: process.env.CLAWAIMAIL_API_KEY });

// Create a mailbox for your agent
const mailbox = await client.mailboxes.create({
  name: "support-agent",
  domain: "clawaimail.com",
});

// Send an email
await client.emails.send({
  from: mailbox.address,
  to: "user@example.com",
  subject: "Hello from my AI agent",
  text: "This email was sent by an autonomous agent.",
});

// List incoming emails
const inbox = await client.emails.list({
  mailbox: mailbox.id,
  unread: true,
});
Python
pip install clawaimail
from clawaimail import ClawAIMail

client = ClawAIMail(api_key="your-api-key")

# Create a mailbox
mailbox = client.mailboxes.create(name="support-agent", domain="clawaimail.com")

# Send an email
client.emails.send(
    from_address=mailbox.address,
    to="user@example.com",
    subject="Hello from my AI agent",
    text="This email was sent by an autonomous agent.",
)

# List incoming emails
inbox = client.emails.list(mailbox=mailbox.id, unread=True)

MCP Server

ClawAIMail ships an MCP server so that Claude, Cursor, and other MCP-compatible clients can use email tools directly.

Claude Desktop

Add the following to your Claude Desktop MCP config (claude_desktop_config.json):

{
  "mcpServers": {
    "clawaimail": {
      "command": "npx",
      "args": ["-y", "clawaimail-mcp"],
      "env": {
        "CLAWAIMAIL_API_KEY": "your-api-key"
      }
    }
  }
}
Cursor

Add to your .cursor/mcp.json:

{
  "mcpServers": {
    "clawaimail": {
      "command": "npx",
      "args": ["-y", "clawaimail-mcp"],
      "env": {
        "CLAWAIMAIL_API_KEY": "your-api-key"
      }
    }
  }
}

Once configured, the agent can call tools like send_email, read_inbox, search_emails, and create_mailbox without any additional code.

Self-Hosting

ClawAIMail can be self-hosted for full control over your email infrastructure.

# Clone the repository
git clone https://github.com/joansongjr/clawaimail.git
cd clawaimail

# Install dependencies
npm install

# Configure environment
cp .env.example .env
# Edit .env with your SMTP credentials, database URL, and API keys

# Run database migrations
npm run db:migrate

# Start the server
npm start

The server will be available at http://localhost:3000 by default. See the self-hosting docs for production deployment guides (Docker, Railway, Fly.io).

API Endpoints

MethodEndpointDescription
POST/v1/emails/sendSend an email
GET/v1/emailsList emails for a mailbox
GET/v1/emails/:idGet a single email by ID
DELETE/v1/emails/:idDelete an email
POST/v1/mailboxesCreate a new mailbox
GET/v1/mailboxesList all mailboxes
DELETE/v1/mailboxes/:idDelete a mailbox
POST/v1/webhooksRegister a webhook
GET/v1/webhooksList registered webhooks
DELETE/v1/webhooks/:idRemove a webhook
GET/v1/domainsList verified domains
POST/v1/domains/verifyVerify a custom domain
GET/v1/wsWebSocket connection for real-time events

Full API reference: clawaimail.com/docs/api

Pricing

FreeStarterProBusiness
Price$0/mo$5/mo$29/mo$99/mo
Emails/month1005,00050,000500,000
Mailboxes110100Unlimited
Custom domains--15Unlimited
Webhooks1525Unlimited
WebSocket--YesYesYes
SupportCommunityEmailPriorityDedicated

Self-hosted deployments are free and unlimited. See clawaimail.com/pricing for details.

License

MIT -- see LICENSE for details.

Frequently asked questions

What is io.github.joansongjr/clawaimail?

Email infrastructure for AI agents. Create inboxes, send/receive email, and search messages.

How do I install io.github.joansongjr/clawaimail?

It runs on your machine. In Claude Code: claude mcp add clawaimail -e 'CLAWAIMAIL_API_KEY=<your clawaimail_api_key>' -- npx -y clawaimail-mcp@0.1.1. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.joansongjr/clawaimail need an API key?

Yes. It expects CLAWAIMAIL_API_KEY, which you set in its configuration.

Is io.github.joansongjr/clawaimail open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.joansongjr/clawaimail?

It is published by joansongjr. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.