# Mailgi

> Mailgi is a freemium MCP server for communication. Real inboxes for AI agents over MCP: register, send, receive and file mail, 67 tools. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI
- **Website:** https://www.mailgi.xyz/mcp.html
- **Repository:** https://github.com/mailgi/mailgi
- **MCP Registry name:** xyz.mailgi/mailgi
- **Categories:** communication
- **Listing updated:** 2026-11-14

## About

The agent can get its own working address with no human step. Connect with no headers, call register_agent, and the server returns an email address plus an API key beginning amb_, shown once; you then re-add the server with that key as a bearer header. A separate path gives organisation tools: org_login_request_code emails a human a six-digit code, org_login_verify returns a session token, and regtoken_create lets an admin agent hand a registration token to another agent for a company domain.

The MCP server runs inside the Mailgi API and each of its 67 tools forwards to a REST endpoint with the same validation, rate limits and metering, so a tool call and the equivalent curl behave the same. It is stateless, takes credentials as headers rather than tool arguments, and serves one resource, mailgi://skill. There is no OAuth.

Receiving is free and mail sent to the outside world is pay-as-you-go. A TypeScript SDK and CLI are in the repository under MIT. Claude Desktop needs the mcp-remote bridge, while Cursor connects over HTTP directly.

## Features

- **Self-registration:** register_agent returns an address and key with no human.
- **1:1 REST proxy:** Each tool maps to an API endpoint with identical limits and billing.
- **Header-based auth:** Agent key and organisation session travel as headers.
- **Organisation tools:** Domains, members, registration tokens and a wallet.
- **Skill resource:** mailgi://skill serves a plain-language API guide.
- **SDK and CLI:** TypeScript SDK and a mailgi command.

## Good for

- Give an agent an inbox to receive verification codes
- Run a support mailbox for an agent
- Let an admin agent onboard other agents onto a company domain
- Send transactional mail from an agent
- File and read incoming mail

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http mailgi https://api.mailgi.xyz/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.mailgi.xyz/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mailgi": {
      "url": "https://api.mailgi.xyz/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mailgi": {
      "type": "http",
      "url": "https://api.mailgi.xyz/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mailgi": {
      "serverUrl": "https://api.mailgi.xyz/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mailgi": {
      "type": "http",
      "url": "https://api.mailgi.xyz/mcp"
    }
  }
}
```

## Tools

- `register_agent`: Create an agent address and API key.
- `org_login_request_code`: Email an organisation admin a login code.
- `org_login_verify`: Verify the code and return a dashboard session token.
- `org_logout`: End the organisation session.
- `regtoken_create`: Create a registration token for another agent on the company domain.

## FAQ

### Does it use OAuth?

No. The agent obtains a key through a tool, and a human adds it to the client config once.

### What does it cost?

Receiving is free; mail to the outside world is pay-as-you-go.

### Is state kept between calls?

No, the server is stateless.

### How do I connect Claude Desktop?

Through the mcp-remote bridge, which needs Node.js.

### Is Mailgi free?

Mailgi has a free plan, with paid plans for more usage or features.

### How do I add Mailgi to Claude Code?

Run this command in your terminal: claude mcp add --transport http mailgi https://api.mailgi.xyz/mcp

### What are the best alternatives to Mailgi?

The closest alternatives to Mailgi are BoardAgent, Callout, nicemails, SOMMON Office and PostBaton.

## Alternatives

- [BoardAgent](https://ai-powered.com/mcp/boardagent): BoardAgent is a free MCP server for community directories.
- [Callout](https://ai-powered.com/mcp/callout): Callout is a freemium MCP server for communication.
- [nicemails](https://ai-powered.com/mcp/nicemails): nicemails is a freemium MCP server for communication.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [PostBaton](https://ai-powered.com/mcp/postbaton): PostBaton is a freemium MCP server for marketing and seo.
- [MeetBetr](https://ai-powered.com/mcp/meetbetr): MeetBetr is a free MCP server for productivity.
- [Host Tools](https://ai-powered.com/mcp/host-tools): Host Tools is an MCP server for home services.
- [iMessage MCP](https://ai-powered.com/mcp/imessage-mcp): iMessage MCP is an open-source MCP server for communication.

---
Source: https://ai-powered.com/mcp/mailgi
