Connect your email to any AI agent

A self-hosted email server for agents and apps. Connect over MCP or the REST API to read, search, draft, and send through Gmail, Outlook, or IMAP.

Claude
ChatGPT
Codex
OpenClaw
Hermes
Cursor
Claude Code v2.1.201
Fable 5 · Claude Max
>

Use email in your agents

Link Fluxmail with your agent and use it to run customer support, sales, automate your inbox, and more.

Personal assistants

Give Claude Code, ChatGPT, or OpenClaw access to your email. Ask it to search your mail, give you a daily brief, or draft a reply.

> Find the Stripe invoice from March and forward it to accounting

Customer support

Link your shared mailboxes and automatically draft replies to customer support emails.

> Draft replies to every unanswered support email from today

Sales and outreach

Send cold emails, automatically follow up with leads, and stay on top of your pipeline.

> Follow up with every prospect who hasn’t replied in a week

Automation

Run your mailbox on a schedule: route invoices to bookkeeping, label recruiting mail, and archive receipts.

> Label and archive today’s receipts, then send me a summary

Everything you need to manage your email

Give your agent a unified API for reading, drafting, sending, and organizing email.

Search and read

Full-text search with filters for sender, folder, unread, and dates. Read full bodies, whole threads, and attachment metadata.

search_emailslist_emailsget_emailget_threadlist_folders

Draft and send

Create and revise drafts, then send, schedule, reply, or forward with correct threading. You can also review or cancel scheduled sends.

create_draftupdate_draftdelete_draftsend_emailforward_emaillist_scheduled_emailscancel_scheduled_email

Organize

Batch mark read, star, archive, label, move, or trash. Download attachments inline or straight to disk.

modify_emailsdownload_attachment

Accounts and status

List connected accounts with their capabilities, and check auth status and plan limits before doing work.

list_accountsget_status
REST API · /api/v1

Build email into your own apps

Call Fluxmail from a local script or your product's backend. The REST API exposes the same connected mailboxes and access controls as MCP.

One API across providers

Use the same routes and response shapes across Gmail, Outlook, Exchange, and IMAP.

Complete email workflows

Search mail, manage drafts, send or schedule messages, organize inboxes, and download attachments.

OpenAPI 3.1 included

Generate a client or inspect every route with the public contract at /api/v1/openapi.json.

Read the REST API docs
list-unread.sh
curl "$FLUXMAIL_URL/api/v1/accounts/$ACCOUNT_ID/messages" \
  --get \
  --data-urlencode "folder=inbox" \
  --data-urlencode "unreadOnly=true" \
  -H "Authorization: Bearer $FLUXMAIL_API_KEY"
Stable JSON responses
Gmail, Outlook, and IMAP

Your emails are private and secure

Fluxmail runs on your own infrastructure.

Run on your own infra

You run the MCP server on your own infrastructure and have full control over how it works.

Your emails are private

Your agent connects to your email provider through the server you run. Your emails are not stored on our servers.

Source-available code

The code is public on GitHub. You can audit it, report issues, and follow along on progress.

Works with Gmail, Outlook, and IMAP

Connect Google Workspace, Outlook, Exchange, or any mailbox with IMAP and SMTP access.

Gmail / Google Workspace

Live

Outlook / Exchange

Live

IMAP / SMTP

Live

Frequently asked questions

Still have questions? Email us or read the quickstart.

Use email in your AI agent

Get your email MCP server up and running in only 10 minutes.