Skip to content
OCEANOFANYTHING edited this page Sep 3, 2026 · 4 revisions

MailGrab Wiki

🚀 MailGrab v2 is here — more firepower packed: concurrent crawling, an MCP server for AI agents (Claude, Copilot, Cursor, Codex), robots.txt-aware crawling, email de-obfuscation, MX validation, resume/append modes, and a lot more. See the release notes for the full rundown.

MailGrab is a concurrent, robots.txt-aware email harvester: give it a URL (or a file full of them), it crawls the site's links, pulls out email addresses (including ones hidden behind obfuscation tricks), and saves everything in plain text, CSV, and JSON.

This wiki is the deep-dive reference. The README covers installation and a quick start; here you'll find every feature explained, how to use it, and what's actually happening behind the scenes.

Pages

Getting oriented

  • Installation — getting MailGrab running on Windows, Linux, or macOS
  • Quick Start — your first crawl, interactive and batch mode
  • MCP Server — use MailGrab as a tool from Claude Code, Claude Desktop, Cursor, Copilot, or Codex CLI

Reference

Features, explained

Under the hood

  • Architecture — how the crawl engine is actually built, the concurrency model, and the bugs adversarial testing found along the way
  • FAQ & Troubleshooting — common questions and known limitations

The 30-second version

# Interactive
python MailGrab.py

# Fully scripted, respecting the seed's own domain, with a custom User-Agent
python MailGrab.py --url https://example.com --depth 30 --same-domain --user-agent "MyBot/1.0"

# Resume a previous run, keeping what it already found
python MailGrab.py --url https://example.com --depth 30 --resume

Every crawl writes _emails.txt, _scrappedUrls.txt, _emails.csv, _results.json, and _MailGrabLog.txt to the current directory. See Output Files for what's in each one.

Prefer to let an AI agent drive it instead? See MCP Serverpython mailgrab_mcp_server.py exposes the same crawl as a tool call for Claude Code, Claude Desktop, Cursor, Copilot, and Codex CLI.

Clone this wiki locally