fluxmail
Self-hosted email CLI / API / MCP server for AI agents and apps
Documentation
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.
Features
- ๐ฌ Connect Gmail, Google Workspace, Microsoft 365, Outlook.com, and IMAP/SMTP mailboxes to one instance.
- ๐ค Give agents MCP tools to list, search, read, draft, reply, forward, send, schedule, and organize email.
- ๐ Use the same mailbox operations from the versioned REST API and CLI.
- ๐งต Fetch complete messages and threads, work across several mailboxes, and download attachments.
- ๐๏ธ Mark mail as read, star or archive it, move it between folders, send it to Trash, and manage Gmail labels or Outlook categories.
- ๐ Limit each client to selected mailboxes and actions with permission profiles or custom policies.
- ๐ฅ Add members and share selected mailboxes on Team and Enterprise plans.
- ๐ Run Fluxmail locally or in Docker while keeping its database and encrypted provider credentials on your infrastructure.
Get started
Fluxmail requires Node.js 20.20.x, or Node.js 22.22 or later.
npm install -g fluxmail
fluxmail setup --name "Your name" --email you@example.comThen 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
- Architecture
- Teams and plans
- Authentication and instances
Plans and license
The Personal plan supports three mailboxes and one member. Paid plans raise those limits for teams that share an instance. See Fluxmail pricing for current details.
Fluxmail is source available under the Elastic License 2.0. You may use, modify, create derivative works, and redistribute Fluxmail subject to that license. Running a fork does not by itself require a paid Fluxmail subscription, and the built-in Personal plan supports three mailboxes and one member without a paid key.
Official Pro and Team entitlements require a valid Fluxmail license key. ELv2 does not allow you to change or circumvent license key functionality, remove protected functionality, or provide Fluxmail itself as a hosted or managed service that exposes a substantial set of its features. Use of the Fluxmail name and logos is also subject to the Fluxmail Terms of Service.
Frequently asked questions
What is fluxmail?
fluxmail is Self-hosted email CLI / API / MCP server for AI agents and apps
How do I install fluxmail?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is fluxmail open source?
Yes โ it is hosted on GitHub at https://github.com/churichard/fluxmail and has 4 stars.
Related MCP tools
The go-to web for your AI coding agent โ local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.
superglue (YC W25) builds integrations and tools from natural language. Get production-grade tools for long tail and enterprise systems.
Official Microsoft Learn MCP Server and CLI tool โ powering LLMs and AI agents with real-time, trusted Microsoft docs & code samples.
AI Agents & MCPs & AI Workflow Automation โข (~400 MCP servers for AI agents) โข AI Automation / AI Agent with MCPs โข AI Workflows & AI Agents โข MCPs for AI Ag...
MCP server that enables AI assistants to interact with Google Gemini CLI, leveraging Gemini's massive token window for large file analysis and codebase understanding
Universal AI context generator. Saves thousands of tokens per conversation in Claude Code, Cursor, Copilot, Codex, and more.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP