fluxmailBLOCK
Self-hosted email CLI / API / MCP server for AI agents and apps
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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 choose which mailboxes each can access on Business 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
1886a4e3ad88OBSERVED · 2026-10-10Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add fluxmail --env GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET} --env FLUXMAIL_LICENSE_KEY=${FLUXMAIL_LICENSE_KEY} -- npx -y [email protected] stdioExposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
list_emails | read | List messages in a mailbox. |
Trust audit
BLOCKgrade F · trust 48/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (7 observation(s))
- Shell
- declared (3 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (25)
NODE_TLS_REJECT_UNAUTHORIZED=0 \
console.log(`Reset ${member.name}'s password and revoked existing sessions.`);console.log(`Enrollment code (shown once): ${member.invitation.token}`);console.log(`${label} (shown once): ${token.token}`);console.log(`Expires: ${new Date(token.expiresAt).toISOString()}`);bWFpbGJveCxwcm92aWRlcixvd25lcgpzdXBwb3J0QG5vcnRoc3Rhci5sb2NhbCxHb29nbGUgV29ya3NwYWNlLFN1cHBvcnQKb3BzQG5vcnRoc3Rhci5sb2NhbCxNaWNyb3NvZnQgMzY1LE9wZXJhdGlvbnMKYXJjaGl2ZUBub3J0aHN0YXIubG9jYWwsSU1BUCxPcGVy
expect(resolveStdioInstance()).toMatchObject({ name: 'local', token: 'fms_private_local_session' });expect(resolveStdioInstance()).toMatchObject({ name: 'personal', token: 'fms_private_personal_session' });expect(resolveStdioInstance('local')).toMatchObject({ name: 'local', token: 'fms_private_local_session' });expect(resolveStdioInstance()).toMatchObject({ name: 'personal', token: 'fms_private_personal_session' });const secret = 'fluxmail_lic_super-secret';
-----BEGIN PRIVATE KEY-----
.oxfmtrc.json
CLAUDE.md
first as unknown as { $client: { exec(sql: string): void; pragma(sql: string): void; close(): void } }(db as unknown as { $client: { exec(sql: string): void } }).$client.exec(const sqlite = (db as unknown as { $client: { exec(sql: string): void } }).$client;const sqlite = (db as unknown as { $client: { exec(sql: string): void } }).$client;cwd: path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../..'),
readFileSync(new URL('../../../mcpb/manifest.template.json', import.meta.url), 'utf8'),import { AccountRegistry } from '../../src/accounts/registry.js';import { runCli } from '../../src/cli.js';import { EmailService } from '../../src/service/emailService.js';Remote profiles require HTTPS. Plain HTTP is accepted only for loopback addresses such as `http://127.0.0.1:8977`. The CLI refuses redirects for authenticated remote requests so it cannot forward a se
If Docker runs on the same computer as your browser, leave `FLUXMAIL_PUBLIC_URL` unset. Docker Compose publishes the local callback at `http://127.0.0.1:8976/oauth/callback`.
Gates applied: no_behavioural_pass.
1886a4e3ad88full audit observations/trust-audit/mcp-server/churichard__fluxmail.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-10 | 1886a4e3ad88 | BLOCK | F | 48 | first audit |
Questions
What is the fluxmail MCP server?
Self-hosted email CLI / API / MCP server for AI agents and apps
What tools does fluxmail expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is fluxmail safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (48/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.
What credentials does fluxmail need?
It reads ACTIONS_ID_TOKEN_REQUEST_TOKEN, ACTIONS_ID_TOKEN_REQUEST_URL, FLUXMAIL_ENCRYPTION_KEY, FLUXMAIL_ENCRYPTION_KEY_FILE, FLUXMAIL_LICENSE_KEY, FLUXMAIL_LICENSE_PUBLIC_KEYS, FLUXMAIL_PASSWORD and GOOGLE_CLIENT_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does fluxmail run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as fluxmail at 0.13.0.
How current is this page?
The grade is for one exact copy of the source (1886a4e3ad88), read on 2026-10-10. The repository is watched and re-audited when it changes.