Skip to main content
Glama
mailforagents

mailforagents

Official
by MailFAgents

mailforagents gives every AI agent its own email inbox. This repository documents the hosted remote MCP server: one URL that Claude, ChatGPT, Cursor, Claude Code and any MCP client can connect to so the agent can read, search, reply, send and bulk send email, and read attachments, from an inbox you choose.

https://api.mailforagents.io/mcp
  • Transport: Streamable HTTP (SSE compatible)

  • Auth: OAuth 2.1 with dynamic client registration and PKCE. You sign in and pick which inbox the client can use; it never sees the others.

  • Alternative: a per-inbox URL with a token, for config files and CI.

  • Official MCP Registry: io.mailforagents/mailforagents

This repo contains documentation, the registry manifest (server.json) and example configs. The server itself is hosted; there's nothing to install.

Connect MCP in mailforagents

Quick start

  1. Create a free inbox at mailforagents.io, for example support@agents.mailforagents.io.

  2. Add the server URL to your client (below).

  3. Sign in when asked and choose the inbox.

  4. Ask your agent: "Check my mailbox: how many unread emails do I have and what arrived today?"

Claude (web, desktop, mobile)

Customize → Connectors → Add → Add custom connector, paste https://api.mailforagents.io/mcp, then Connect and pick your inbox. Custom connectors are available on Free (one), Pro, Max, Team and Enterprise.

Claude Code

claude mcp add --transport http mailforagents https://api.mailforagents.io/mcp --scope user

Then run /mcp inside a session to sign in.

ChatGPT

Plugins → + → Add custom MCP server (earlier flow: Settings → Apps → Create, with developer mode on). Paste https://api.mailforagents.io/mcp, choose OAuth, sign in and pick your inbox. Full MCP with write actions is available on Business and Enterprise/Edu.

Cursor, VS Code and other clients

{
  "mcpServers": {
    "mailforagents": { "url": "https://api.mailforagents.io/mcp" }
  }
}

More examples in examples/: a token-based config and claude_desktop_config.json via mcp-remote.

With a token instead of OAuth

Create a token in the inbox's MCP connection tab (read-only, read & send, or full; with expiry) and use the inbox URL:

URL:    https://api.mailforagents.io/mcp/<inbox id>
Header: Authorization: Bearer mfa_mcp_...

Related MCP server: lenovmail

Tools

Tool

What it does

get_mailbox

Address and signature, unread and per-folder counts, mail received today / since a date, latest unread, sends left today and plan usage.

list_messages

List a folder (inbox, sent, drafts, scheduled, archive, trash, starred, all), filter by unread, sender or label.

search_messages

Full-text search with sender, date range and attachment filters.

get_thread

A whole conversation, optionally with quoted text.

send_message

Send a new email with cc/bcc and attachments.

reply

Reply or reply-all in a thread.

forward

Forward a message, with or without its attachments.

create_draft / update_draft

Write drafts for a human to review.

list_attachments

Files received or uploaded, filtered by sender, type or name.

get_attachment

Read PDF, Word, Excel (one CSV per sheet) and PowerPoint as text, or get the file.

upload_file

Save a file to the inbox drive.

move_message / add_label

Organize: folders and labels.

massive_send

One call, many recipients: the same template with {{name}}, {{email}} or custom variables, one separate email per person.

get_massive_send

Progress of a bulk send.

retry_message

Retry a failed send.

Each inbox has permission groups (read, send, drafts, files, folders) to turn tools on or off.

Safety

  • One inbox per agent, not your personal mailbox. OAuth grants and tokens are scoped to a single inbox.

  • Human approval: when enabled, emails and bulk sends wait until someone approves them in the dashboard.

  • Allow and block lists for who the inbox can write to, plus daily send limits.

  • Read-only tokens for summaries and triage.

  • Email content is third-party data: the server tells the model not to follow instructions found inside emails.

Plans

Free

Starter

Pro

Price

$0

$12/mo

$120/mo

Inboxes

1

10

150

Emails per month

3,000

10,000

150,000

Bulk sending and lists

—

✓

✓

Webhooks

—

✓

✓

Custom domains

—

—

✓

See mailforagents.io for current pricing.

Issues and feature requests are welcome in this repository.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Gives AI agents their own email address with inbound parsing, classification, extraction, and prompt injection screening, plus tools to manage mailboxes, send/receive emails, and handle draft approval workflows.
      14
      72 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to securely read, search, and send email across IMAP and Microsoft Graph accounts, with scoped tokens, approval flows, and an audit trail.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to run real email operations across multiple IMAP/SMTP and provider OAuth accounts — syncing, searching, reading, drafting, attaching, and sending mail — while requiring explicit human approval for sending, deleting, or forwarding and recording an inspectable audit trail.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Gives AI agents a real email inbox on the user's own domain, letting them read and search mail, draft and send or schedule replies, file messages, create addresses, and fix DNS records. Access is scoped to only the mailboxes the user explicitly grants.
      MIT