Open source · Self-hosted · Agent-native

Mailgod

Stop renting your list.
Start ruling your inbox.

Visual flows, a shared reply inbox, your own SMTP sender pool, and an MCP server so AI agents can run campaigns for you. On your servers. No per-contact pricing. Ever.

$ git clone https://github.com/LuciferSharma/mailgod.git

The Ten
Commandments

Carved from a year of sending to a real 300,000-subscriber list. Every law below is a feature that ships in the box.

I

Thou shalt own thy list.

Your subscribers live in your MongoDB, not on a vendor's invoice. Export anything, anytime.

II

Thou shalt not pay per contact.

300 subscribers or 3 million, the license costs the same: nothing. MIT, forever.

III

Honor the reply.

Every email carries a tokenized Reply-To. Replies land in a shared inbox, threaded to the exact campaign and flow step.

IV

Know when to stop.

Flows exit on reply and hand the lead to a human. No more robots following up on a "yes".

V

Thou shalt not spam.

Per-subscriber frequency caps, a global rate limit, mailto List-Unsubscribe, CAN-SPAM footers.

VI

Send from many mouths.

A sender pool of your own SMTP mailboxes with daily caps, warmup, IMAP reply polling, and auto-pause when one gets sick.

VII

Keep the thread unbroken.

RFC 5322 threading so follow-ups land in the same conversation, from the same mailbox that started it.

VIII

Covet no redirector.

Click-tracking rewrites are disabled. Your links stay clean, and spam filters stay calm.

IX

Let the machines labor.

A built-in MCP server gives Claude and other agents 25 tools. Bulk sends are draft-first, so they can't blast your list by accident.

X

Judge by revenue, not opens.

Engagement scoring, an auto-advancing pipeline, Cal.com bookings, and weekly reports that diagnose themselves.

A small act
of heresy.

Email SaaS charges more the more you grow and keeps your data hostage behind its UI. We think that's backwards.

THE OLD GODS

  • The bill climbs with every new subscriber
  • Your list lives on someone else's servers
  • Replies dumped in a generic inbox, context lost
  • Sequences keep firing after the prospect says yes
  • "AI features" locked to their walled garden
  • Closed source. Their roadmap, not yours.
vs

MAILGOD

  • $0 license. Pay only for your server and sending.
  • Self-hosted. One docker compose up.
  • Replies threaded to subscriber, campaign and step
  • Exit-on-reply hands hot leads to a human
  • Any MCP-capable agent can run it, safely
  • MIT. Fork it, rebrand it, sell it.

The inbox was never theirs.
It was always yours.

Visual flows

Automations that know when to shut up.

Drag together sends, delays and branches. Follow-ups reuse the first subject, so the whole sequence reads as one conversation.

The moment someone replies, the flow exits, the subscriber gets tagged responded, and the conversation lands in your inbox with full context.

flow · cold-outreach-v3 ✉ Send: intro email ⏳ Wait 3 days ◇ Replied? YES NO ⚑ Exit flowTAG · INBOX · HUMAN ✉ Follow-up #2SAME THREAD · SAME MAILBOX
claude · mcp: mailgod
Find everyone tagged webinar-2026 who hasn't replied and draft a follow-up campaign.
→ find_prospects { tag: "webinar-2026" }
412 prospects · 38 replied · 374 eligible
→ create_segment "webinar-2026 · no reply"
→ create_template "Still thinking it over, {{first_name}}?"
→ draft_campaign { segment, template }
⚠ Draft staged. Nothing sent. 374 recipients, frequency cap respected.
Looks good. Send it.
→ confirm_send { draft_id }
✓ Dispatching through the sender pool…

Agent-native

Your agents,
ordained.

Mailgod ships an MCP server. Plug it into Claude Code (or any MCP client) and your agent can prospect, segment, write and send, all through the same rules your humans follow.

It's safe by design. Bulk sends are draft-first, only confirm_send dispatches, there's a global kill-switch, and you can set hard recipient caps.

check_connectionread_guideadd_prospectsfind_prospectstag_prospectscreate_segmentpreview_segment_countcreate_templatedraft_one_offdraft_campaigntest_sendconfirm_sendenroll_in_flowget_analyticsschedule_sendget_engaged_prospects+9 more

The full
arsenal.

Everything a growth team needs, in one Node + React + MongoDB app you can read end to end.

01 / SUBSCRIBERS

Import & enrich

CSV import with bulk tags, custom fields, engagement scores, and a full event timeline per person.

02 / SEGMENTS

Rule builder

AND/OR logic over any field, tag, custom attribute, or engagement score, with live counts.

03 / TEMPLATES

Write once

Rich-text and HTML editors, Handlebars variables, presets, and a desktop/mobile preview.

04 / INBOX

Shared replies

Prospect panel, notes, labels, reminders, and auto-reply detection. Reply from the same thread.

05 / PIPELINE

Kanban that moves itself

Stages advance on opens, replies, and Cal.com bookings. Drag to override.

06 / OPS

Built to scale

Batching, rate limiting, cron-scheduled sends, and optional Temporal for durable flows.

Installation

Three steps
to ascension.

Docker, a MongoDB, and a SendGrid key when you're ready to send. That's the whole list.

I

Summon

$ git clone https://github.com/LuciferSharma/mailgod.git
$ cd mailgod
II

Anoint

$ cp .env.example .env
# set ADMIN_PASSWORD, JWT_SECRET,
# UNSUBSCRIBE_SECRET, SENDGRID_API_KEY
III

Ascend

$ docker compose up -d
# → http://localhost:8080