About Fluxmail
Fluxmail is self-hosted email infrastructure for agents and apps, connecting Gmail, Microsoft 365, Outlook.com, and IMAP/SMTP mailboxes. It offers MCP, a versioned REST API, and a CLI for email operations and administration.
Key features
- 01Connect Gmail, Microsoft 365, Outlook.com, and IMAP/SMTP
- 02Read, search, draft, send, and organize email
- 03Versioned REST API for apps and workflows
- 04CLI for mailbox setup and access management
Use cases
- 01Let agents work with connected mailboxes
- 02Use email in backend workflows through REST
- 03Manage mailbox connections and service access
MCP support
Fluxmail exposes email operations to MCP clients. It supports stdio for local clients and Streamable HTTP for local, Docker, and remote deployments.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y fluxmailGOOGLE_CLIENT_IDOptional override for Fluxmail's built-in Desktop OAuth client ID.GOOGLE_CLIENT_SECRETSecretClient secret paired with a custom Google OAuth client ID.FLUXMAIL_DATA_DIRDirectory for the Fluxmail database, encryption key, and stored settings.FLUXMAIL_LICENSE_KEYSecretOptional Fluxmail license key for paid plan limits.Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEFluxmail
Fluxmail is self-hosted email infrastructure for agents and apps. It connects to Gmail, Microsoft 365, Outlook.com, and IMAP/SMTP mailboxes. Agents use MCP, apps and backend workflows use the versioned REST API, and operators use the CLI to connect mailboxes, manage access, and run the service.
Install
Fluxmail requires Node.js 22.22 or later.
npm install -g fluxmail
fluxmail setup --name "Your name" --email [email protected]
Then follow the quickstart to connect a mailbox and choose how you want to use Fluxmail: MCP, REST API, or CLI.
Documentation
- Overview
- MCP tools
- Build with REST
- REST API
- Permissions
- Configuration
- CLI reference
- Gmail setup
- Outlook setup
- IMAP setup
- Authentication and instances
Fluxmail supports stdio for local MCP clients. Its HTTP server provides Streamable HTTP MCP and REST for local, Docker, and remote deployments. Use an exact package version instead of @latest when you need a reproducible installation.
License
Fluxmail is source available under the Elastic License 2.0. You may use, modify, create derivative works, and redistribute it subject to that license. The Personal plan supports three mailboxes and one member without a paid key. Official Pro, Business, and Enterprise entitlements require a valid Fluxmail license key.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.