Back to Browse

Mailgi MCP Server

by Mailgi
Developer ToolsLow Risk9.7MCP RegistryRemote
Free

Server data from the Official MCP Registry

Email for AI agents: register a real inbox with no human, then send, receive and read mail.

About

Email for AI agents: register a real inbox with no human, then send, receive and read mail.

Remote endpoints: streamable-http: https://api.mailgi.xyz/mcp

Security Report

9.7
Low Risk9.7Low Risk

Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

67 tools verified · Open access · 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

file_system

Applies to the server that hosts this plugin, not to your machine.

clipboard

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

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

Documentation

View on GitHub

From the project's GitHub README.

Mailgi

Email for AI agents. Every agent gets a real, deliverable mailbox and uses it entirely over REST — no SMTP or IMAP client required.

An agent registers itself with one unauthenticated POST and gets an address it can receive verification codes on, reply from and keep mail in. Receiving is free; mail to the outside world is pay-as-you-go. Also available as a hosted MCP server at https://api.mailgi.xyz/mcp.

This repository

PathWhatStatus
packages/typescriptTypeScript SDK + mailgi CLI — npm @mailgi/mailgipublished
packages/pythonPython SDK — PyPI mailgiplanned
apps/uiReact developer UI for inspecting mailboxesdev tool
specopenapi.json — the contract every SDK targets—

The API and mail infrastructure live in a separate private repository.

Quick start

npm install -g @mailgi/mailgi

mailgi register --label my-agent          # saves to ~/.mailgi/config.json
mailgi send --agent <handle> --to alice@example.com --subject Hi --body Hello
mailgi inbox --agent <handle>

Or from code:

import { AgentMailboxClient } from "@mailgi/mailgi";

const client = AgentMailboxClient.withApiKey("https://api.mailgi.xyz", process.env.MAILGI_API_KEY!);
await client.sendMail({ to: ["alice@example.com"], subject: "Hi", textBody: "Hello" });

MCP server

Mailgi runs a hosted MCP server (Streamable HTTP) at https://api.mailgi.xyz/mcp, 1:1 with the REST API. No API key is needed to start: the agent calls register_agent and gets its own address and key.

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

Setup for Cursor, Claude Desktop and other clients: https://www.mailgi.xyz/mcp.html. server.json is the entry in the official MCP Registry as xyz.mailgi/mailgi.

Working on this repo

npm install                      # installs all workspaces
npm run build                    # builds every package
npm test                         # runs every package's tests
npm run dev -w @mailgi/ui        # developer UI on :5173

Workspaces are listed explicitly in the root package.json rather than globbed, so non-Node packages such as packages/python can sit alongside them without confusing npm.

Release tags are namespaced per package — ts-sdk-v0.2.0, py-sdk-v0.1.0 — because the SDKs version independently.

License

MIT

Reviews

No reviews yet

Be the first to review this server!