# Clawaimail MCP [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/joansongjr/clawaimail  
**GitHub Stars:** 2  
**npm Downloads (last month):** 202  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/clawaimail-mcp

## Description
Email infrastructure for AI agents. Create inboxes on the fly, send and receive real emails, search messages, and manage threads via API. Install with npx clawaimail-mcp.

## Tools
Capabilities this server exposes over MCP:

- **list_inboxes** — List all email inboxes
- **create_inbox** — Create a new email inbox (optional — a default inbox is auto-created if needed)
- **send_email** — Send an email. If inbox_id is omitted, uses the default inbox (auto-created if needed).
- **list_messages** — List messages. If inbox_id is omitted, uses the default inbox.
- **read_email** — Read a specific email message. If inbox_id is omitted, uses the default inbox.
- **search_emails** — Search emails by keyword. If inbox_id is omitted, uses the default inbox.
- **delete_inbox** — Delete an inbox and all its messages
- **account_info** — Get account info, plan limits, and usage
- **my_email** — Get your agent's email address (auto-creates one if none exists)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "clawaimail-mcp": {
    "command": "npx",
    "args": ["-y","clawaimail-mcp"],
    "env": {
      "CLAWAIMAIL_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `CLAWAIMAIL_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What clawaimail/mcp MCP server does

The clawaimail/mcp MCP server gives an AI agent access to ClawAIMail mailboxes and messages through the Model Context Protocol. It is suited to workflows where an agent needs to receive email, send replies, look up prior messages, or maintain separate inboxes for different tasks.

The available operations cover inbox lifecycle, message access, search, and account inspection. An agent can create and list inboxes, send messages, list or read mail, search by keyword, remove an inbox and its messages, inspect plan limits and usage, and retrieve its email address.

## How it works

The server acts as an MCP layer over the ClawAIMail service. MCP-compatible clients start the package as a local process, and the server uses the configured API key to make email operations available as callable tools.

Many message tools accept an optional inbox identifier. When that value is left out, the server uses the default inbox and can create one automatically when needed. The same automatic behavior applies when requesting the agent’s address with `my_email` if no address exists yet.

This package exposes mailbox and message actions; it does not require the agent to write direct REST requests. ClawAIMail also documents REST, WebSocket, webhook, custom-domain, and SDK features, but those interfaces are outside the MCP tool list described here.

## Setup and configuration

Install and run the server with npx:

```bash
npx -y clawaimail-mcp
```

Set `CLAWAIMAIL_API_KEY` in the MCP client configuration. Claude Desktop and Cursor examples use a server entry with `command` set to `npx`, arguments `-y` and `clawaimail-mcp`, and the API key supplied through the environment. The clawaimail/mcp MCP server therefore needs access to the key wherever the client launches the process.

The repository also documents self-hosting the broader ClawAIMail application with Node.js, database migrations, SMTP credentials, a database URL, and API keys. Those instructions concern the underlying service rather than the minimum configuration for running this MCP package.

## Tools and capabilities

- `list_inboxes`: returns the available email inboxes.
- `create_inbox`: creates an inbox, with an optional default inbox created automatically when required.
- `send_email`: sends mail through a selected inbox or the default inbox.
- `list_messages`: lists messages from a selected or default inbox.
- `read_email`: retrieves one message by its identifier.
- `search_emails`: searches messages by keyword.
- `delete_inbox`: removes an inbox and all messages it contains.
- `account_info`: reports account details, plan limits, and usage.
- `my_email`: returns the agent’s email address and creates one if necessary.

## Limitations and notes

Those capabilities are described for ClawAIMail generally, but should not be assumed to be callable through this server.

Using the default inbox can reduce the amount of mailbox state an agent must track, while explicit inbox identifiers are available for workflows that manage multiple mailboxes. Deleting an inbox also deletes its messages, so that operation should be treated as destructive.

_Full upstream README: https://allmcps.com/mcp/clawaimail-mcp/readme_

