mcpField
F
Faxdrop Mcp

Faxdrop Mcp

Local
github.com/klodrFiles & Storage5Updated 3d ago

About Faxdrop Mcp

Faxdrop Mcp wraps the FaxDrop API as an MCP server for sending and tracking faxes from compatible AI clients. It adds number approval, file isolation, dry-run testing, and audit logging.

Key features

  1. 01Send PDF, DOCX, JPEG, and PNG faxes
  2. 02Check fax delivery status
  3. 03Pair numbers and restrict type and country
  4. 04Restrict outbox paths and validate files
  5. 05Dry runs and redacted audit logs

Use cases

  1. 01Send documents by fax from an AI workflow
  2. 02Approve a new recipient number before sending
  3. 03Test a send request without transmitting a fax

MCP support

The MCP server exposes tools to send faxes, pair recipient numbers, and check delivery status.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"faxdrop": {
"command": "npx",
"args": [
"-y",
"faxdrop-mcp"
],
"env": {
"FAXDROP_API_KEY": "<FAXDROP_API_KEY>"
}
}
}
}
Run commandnpx -y faxdrop-mcp
Environment variables to set
FAXDROP_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmfaxdrop-mcp

Tools

3

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
subjectstringNoCover page subject / RE: line (max 200 chars).
filePathstringYesAbsolute path to the document to fax (PDF, DOCX, JPEG, or PNG, ≤10MB).
coverNotestringNoMessage printed on the cover page (max 500 chars). Only used when includeCover is true.
sendEmailbooleanNoWhether FaxDrop should email the sender a per-fax delivery confirmation. Defaults to **false** (suppress) — the MCP is built for batch / agent workflows where one email per fax floods the inbox, and the same information is already available via `faxdrop_get_fax_status`. Set to true to opt back into the confirmation email. Failed-fax emails, operator alerts, refunds and status pages are unaffected. The send response echoes `deliveryEmail: enabled | suppressed`.
senderNamestringYesSender display name shown on the cover page.
senderEmailstringYesSender email for delivery confirmation.
senderPhonestringNoSender callback number shown on the cover page (E.164 format).
includeCoverbooleanNoInclude a FaxDrop cover page. Free accounts always include a branded cover regardless; paid accounts default to false. The cover-page fields below (coverNote, recipientName, subject, senderCompany, senderPhone) are only printed when includeCover is true.
recipientNamestringNoRecipient display name on the cover page, e.g. "Dr. Jane Smith" (max 50 chars).
senderCompanystringNoSender company shown on the cover page (max 100 chars).
recipientNumberstringYesRecipient fax number, international (E.164) format with leading + and country code, e.g. +12125551234

Details

From the project README

📠 faxdrop-mcp

Send real faxes from any MCP-enabled AI assistant. Wraps the FaxDrop HTTP API.

CI CodeQL Tested with Vitest codecov OpenSSF Scorecard OpenSSF Best Practices Socket Security CodeRabbit Pull Request Reviews

npm version npm downloads Node.js Version MCP MCP Server PRs Welcome

Sponsor on GitHub Patreon Ko-fi

A Model Context Protocol (MCP) server that lets AI assistants (Claude, Cursor, Continue, OpenClaw…) send real faxes through the FaxDrop API.

✨ Why this MCP?

Faxing is still required by US healthcare, government forms, and a long tail of legal/financial workflows. FaxDrop is a hosted fax service with a clean HTTP API and a free tier (2 faxes/month). This MCP exposes it to LLMs with the safeguards an agent platform actually needs.

🤔 Why not just call the FaxDrop API directly?

You can. But every agent that does ends up re-implementing the same handful of guards. This MCP gives them to you for free:

  • Input validation — absolute-path + extension + 10 MB cap on the upload (all before the file is opened); E.164 regex on the fax number; no SSRF, no path traversal.
  • TOCTOU-safe read — file descriptor pinned with fs.open(), size enforced continuously while reading.
  • No secret leakage — error objects strip the response body; the audit log keeps only an explicit allowlist of FaxDrop response-shape fields (recipientNumber, faxId, id) in clear, blocks the credential set (apiKey / authorization / password / …), and elides every other field with a length marker ([ELIDED:NNN]). Property-tested with fast-check.
  • Dry-run + audit log — FAXDROP_MCP_DRY_RUN=true to test prompts without sending; FAXDROP_MCP_AUDIT_LOG=/abs/path for a JSONL trail (mode 0o600).
  • Clean errors — FaxDrop's 402 / 429 / 4xx surfaced as MCP isError with error_type, hint, retry_after.
  • Drop-in for any MCP client — one npx -y faxdrop-mcp line in Claude Desktop / Code / Cursor / Continue / OpenClaw.
  • Verifiable releases — Sigstore-signed + SLSA in-toto attestation + npm provenance (verify).

A ~12 KB wrapper that turns a one-week security review into a one-line config change.

📦 Installation

npm install -g faxdrop-mcp

Or use directly with npx:

npx faxdrop-mcp

⚙️ Configuration

The server reads FAXDROP_API_KEY from the environment. Get your key at faxdrop.com/account (Developer API → Generate Key). Keys look like fd_live_<32 hex>.

🤖 Claude Desktop / Claude Code

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (or ~/.claude.json for Claude Code):

{
  "mcpServers": {
    "faxdrop": {
      "command": "npx",
      "args": ["-y", "faxdrop-mcp"],
      "env": {
        "FAXDROP_API_KEY": "fd_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
🖱️ Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "faxdrop": {
      "command": "npx",
      "args": ["-y", "faxdrop-mcp"],
      "env": {
        "FAXDROP_API_KEY": "fd_live_..."
      }
    }
  }
}
🦀 OpenClaw

Add to ~/.openclaw/openclaw.json, then restart the gateway (docker restart openclaw-openclaw-gateway-1 or your equivalent).

🛠️ Tools (3)

📤 faxdrop_send_fax

Send a fax. Uploads a local document from the outbox (default ~/FaxOutbox/) to a fax number in international (E.164) format.

Required:

  • filePath (string, absolute) — PDF, DOCX, JPEG, or PNG, ≤10 MB. Must live inside the outbox.
  • recipientNumber (string) — E.164, e.g. +12125551234. Subject to the 3-layer phone gate (TYPE → COUNTRY → per-number).
  • senderName (string)
  • senderEmail (string)

Optional cover-page fields (printed only when includeCover is true):

  • includeCover (boolean) — free accounts always include a branded cover; paid accounts default to false
  • coverNote (string, ≤500) — message body
  • recipientName (≤50), subject (≤200), senderCompany (≤100), senderPhone (validated E.164)

Notifications:

  • sendEmail (boolean) — whether FaxDrop should email the sender a per-fax delivery confirmation. Defaults to false (suppress) — the MCP is built for batch/agent workflows where one email per fax floods the inbox, and the same information is already retrievable via faxdrop_get_fax_status. Set to true to opt back in. Failed-fax emails, operator alerts, refunds and status pages are unaffected. The send response echoes deliveryEmail: enabled | suppressed.

Returns: { success, faxId, status, statusUrl, deliveryEmail }

🔗 faxdrop_pair_number

Add a fax number to the paired whitelist (~/.faxdrop-mcp/paired.json). Only effective when FAXDROP_MCP_NUMBER_GATE=pairing (default). The number must still pass the TYPE and COUNTRY checks (no bypass). Always confirm with the user before pairing — paired numbers can be faxed without further per-number approval.

Required:

  • recipientNumber (string) — E.164

Returns: { paired, country, type }

📊 faxdrop_get_fax_status

Check the delivery status of a previously sent fax. Terminal statuses (delivered / failed / partial) are cached process-wide (LRU 100 entries, whitelist-sliced) — re-polling a finished fax short-circuits with a _cached: true marker to spare your FaxDrop quota.

Recommended polling cadence: every ~5s for the first 2 min, then every ~30s for up to 10 min, stop on terminal status.

Required:

  • faxId (string)

Returns: { id, status, recipientNumber?, pages?, completedAt?, _cached? }

🛡️ Safeguards

KnobEnv varDefaultNotes
Outbox jailFAXDROP_MCP_WORK_DIR=/abs/path~/FaxOutbox/ (auto-created mode 0o700)Every filePath must live inside this directory after realpath canonicalization. Symlinks to outside the outbox are rejected.
Number gateFAXDROP_MCP_NUMBER_GATE=open|pairing|closedpairingpairing requires HITL approval via faxdrop_pair_number before a new number can be faxed. closed disables runtime pairing (paired.json edited out-of-band).
Allowed typesFAXDROP_MCP_ALLOWED_TYPES=...FIXED_LINE,FIXED_LINE_OR_MOBILE,VOIP,TOLL_FREElibphonenumber NumberType allow-list.
Allowed countriesFAXDROP_MCP_ALLOWED_COUNTRIES=...US,CA,PR,GU,VI,AS,MPISO-3166-1 alpha-2 allow-list (US/CA + US territories).
State directoryFAXDROP_MCP_STATE_DIR=/abs/path~/.faxdrop-mcp/ (mode 0o700)Where paired.json lives (mode 0o600, atomic write).
Dry runFAXDROP_MCP_DRY_RUN=trueoffWrite tools (faxdrop_send_fax, faxdrop_pair_number) return the would-be payload (passed through the same allowlist redaction as the audit log — see row below) and never call FaxDrop or touch paired.json.
Audit logFAXDROP_MCP_AUDIT_LOG=/abs/path/audit.logoffAppend-only JSON Lines (file mode 0o600). Allowlist-based redaction: only FaxDrop response-shape fields (recipientNumber, faxId, id) are kept in clear; known credential keys (apiKey / authorization / password / secret / token) are replaced with [REDACTED]; every other field is elided with a [ELIDED:NNN] length marker. This is a fail-closed design: a new API field added upstream is hidden by default, not leaked.
⚠️ Error catalog

Every failure is returned as isError: true with a structured error_type, message, and (when applicable) hint and retry_after. Programmatic consumers can match on error_type (in structuredContent) to drive retry logic.

error_typeLayerTriggerSuggested action
phone_parseinputRecipient number can't be parsed by libphonenumber.Ask user for an E.164 number.
phone_typepolicyPhone type (e.g. MOBILE) not in FAXDROP_MCP_ALLOWED_TYPES.Use a fax line, or extend the env var.
phone_countrypolicyCountry not in FAXDROP_MCP_ALLOWED_COUNTRIES.Confirm with the user; extend the env var if intentional.
phone_gatepolicyNumber not in paired.json and gate is pairing or closed.In pairing mode: call faxdrop_pair_number first. In closed: edit paired.json out-of-band.
pair_disabledpolicyfaxdrop_pair_number called outside pairing mode.Set FAXDROP_MCP_NUMBER_GATE=pairing.
bad_requestfilesystemPath is relative, outside outbox, leaf-symlink, missing, oversized, or has an unsupported extension.The accompanying hint describes the exact remedy.
unauthorizedupstreamFaxDrop returned 401.Check FAXDROP_API_KEY in your MCP client config.
payment_requiredupstreamFaxDrop returned 402 (out of credits).Top up at the FaxDrop pricing page.
rate_limitedupstreamFaxDrop returned 429.Wait retry_after seconds; the hint shows the bucket that was hit.
invalid_responseupstreamFaxDrop returned a non-JSON body (proxy interception, incident page).Body is discarded for safety; check FaxDrop status page.
fax_errorupstream (fallback)FaxDrop returned an error with no error_type field.Read the message; treat as transient.
🚦 Rate limits & quotas

Two independent caps gate every fax send, both enforced by FaxDrop:

  • Per-key rate limits (per-minute / per-hour / per-day buckets) — 429 rate_limited with retry_after and X-RateLimit-* headers.
  • Account credit balance — 402 payment_required when you run out, with a top-up hint.

The MCP does not add its own limiter; it forwards FaxDrop's response as a clean isError: true with error_type, hint, and retry_after. See FaxDrop's API docs for the current numbers.

🔒 Security

  • Always confirm with the user (recipient, file, cover-page) before invoking faxdrop_send_fax. This is also baked into the tool description.
  • The MCP reads files from the user's local filesystem — only expose this server to agents you trust.
  • Test prompts safely with FAXDROP_MCP_DRY_RUN=true.
  • Behind a local proxy that answers DNS itself (Surge in enhanced mode hands out 198.18.0.0/15), set MCP_TRUSTED_CIDRS=198.18.0.0/15 so the SSRF guard accepts its addresses; prefer a single IP whenever the proxy allows it. Refused at startup: a malformed entry, more than 131,072 addresses in all (one range: IPv4 /15 at most, IPv6 /111), anything that touches loopback, link-local, 0.0.0.0/8 or an IPv6 range carrying an IPv4 (an IPv4-mapped address such as ::ffff:10.47.83.1 counts as its IPv4).
  • See SECURITY.md for the vulnerability reporting process.

🗺️ Roadmap

See ROADMAP.md.

🌐 Ecosystem

Other MCP servers in the klodr family:

🤝 Contributing

PRs welcome. See CONTRIBUTING.md for the test/build/lint checklist and release process.

📄 License

MIT — see LICENSE.

Comments

Markdown supported

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.