Official n8n community node · MIT

n8n integration for DNS, email & network automation

Run 45 middle.network checks across 5 resources inside visual n8n workflows and n8n AI Agents (usableAsTool: true) - with free self-serve API keys, binary DMARC attachment ingestion, and plain-English plus technical output on every run.

npmn8n-nodes-middle-network
Package details
  • Package: n8n-nodes-middle-network
  • Operations: 45 tools across 5 resources (all free-key ready)
  • AI Agent ready: usableAsTool: true (or use hosted MCP)
  • Credential test: GET /v1/key (0 daily quota spent)
  • Free quota: 1,000 units/day, 120/min, 4 concurrent
  • License: MIT · Open source on GitHub

Install and connect in 2 minutes

Works on both n8n Cloud and self-hosted n8n with zero extra infrastructure.

  1. Install the community node

    In n8n, open Settings -> Community Nodes -> Install a community node, enter n8n-nodes-middle-network, and click Install.
  2. Create a free API key

    Sign in free and make one on your account page (Google, Microsoft, Apple, GitHub or a one-time email code). Copy your mn_live_... token once.
  3. Save your credential in n8n

    Add a middle.network node, open Credential to connect with -> Create New Credential, paste your key, and click Save. n8n verifies it via GET /v1/key without spending quota.
Installation
Recommended for both n8n Cloud and self-hosted n8n instances.
# In n8n Cloud or Self-Hosted:
# 1. Open Settings -> Community Nodes
# 2. Click "Install a community node"
# 3. Enter the package name below and click Install:
n8n-nodes-middle-network
For Docker or bare-metal deployments without the Community Nodes UI enabled.
# Inside your n8n user data directory (~/.n8n/nodes)
mkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install n8n-nodes-middle-network

# Restart n8n so it loads the node
Paste your mn_live_... key into the middle.network API credential in n8n and click Save.
# n8n automatically verifies your key against /v1/key (0 daily quota spent):
curl -sS https://api.middle.network/v1/key \
  -H "Authorization: Bearer $MN_API_KEY"

Built for real n8n workflows

Dynamic Probe Region picker

Global DNS checks pull live probe locations and continent shortcuts (@EU, @NA, @OC) straight from GET /v1/probes.

Direct DMARC attachment ingestion

Wire Gmail, IMAP or Read Binary File nodes directly into Analyse DMARC Report in Binary File mode (.xml, .gz, .xml.gz, .zip).

Structured Email Auth generator

Typed fields per record type (SPF, DMARC, DKIM, BIMI, MTA-STS). DKIM private keys are never generated on our servers.

Consistent JSON + local OUI DB

Every operation outputs status, summary.plain, summary.tech, findings and data, plus instant local IEEE OUI MAC vendor lookups.

Workflow ideas you can build today

Drop the node into scheduled audits, incident responders, inbox parsers or chat bots.

DMARC inbox to Slack / Teams digest

Trigger on new Gmail or IMAP DMARC report attachments -> Analyse DMARC Report (Binary File) -> post failing senders and summary.plain straight to your security channel.

Scheduled MSP client domain & blacklist sweep

Run daily on a Schedule trigger across a sheet or PSA client list -> Get Domain Email Score, Check Blacklists and Check Domain Age -> open a ticket only when status == "fail".

Zero-downtime DNS cutover watcher

Trigger from a webhook or deployment -> Pre-Check Zone on Nameserver and Check DNS Propagation (@EU, @NA, @OC) -> confirm global convergence before notifying your team.

AI triage agent with live network tools

Attach the middle.network node to an n8n AI Agent (usableAsTool: true) so Slack or helpdesk questions check live SPF, DKIM, DMARC, WHOIS, CT logs and ASN data automatically.

Standard node output
{
  "tool": "dmarc",
  "target": "example.com",
  "status": "warn",
  "summary": {
    "plain": "DMARC is set to monitor only (p=none), so spoofed email is not blocked yet.",
    "tech": "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
  },
  "findings": [
    {
      "level": "warn",
      "plain": "Move DMARC from p=none to p=quarantine once legitimate senders align.",
      "tech": "Policy is p=none",
      "fix": "_dmarc.example.com TXT \"v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc@example.com\""
    }
  ],
  "data": {},
  "cached": false
}

Use with n8n AI Agents (native tool or MCP)

The middle.network node sets usableAsTool: true, so you can attach it straight to an n8n AI Agent node to inspect SPF/DKIM/DMARC, check blacklists, or look up WHOIS and ASN ownership during triage. Prefer connecting via Model Context Protocol? Point n8n's MCP Client Tool at https://mcp.middle.network using the same API key.

Operations (45 tools across 5 resources)

Generated directly from the middle.network OpenAPI spec so inputs and schemas stay aligned with the REST API. Every operation links to its full parameter reference.

DNS

12 operations
Check DNS HealthTest each nameserver: answers, SOA serials, timing.API docs
Check DNS PropagationSee whether a DNS change has spread to resolvers.API docs
Compare Authoritative vs CachedCompare the source of truth with what resolvers cache.API docs
Find SubdomainsFind live subdomains from certificate logs and common names.API docs
Format Zone FileLint and tidy a BIND zone file.API docs
List Probe LocationsReturns live global probe locations and continent groups.GET /v1/probes
Look Up All DNS RecordsEvery common DNS record for a domain, explained.API docs
Look Up Reverse DNS (PTR)Find the hostname behind an IP address (PTR).API docs
Look Up Single DNS RecordLook up one record type, with response code and timing.API docs
Pre-Check Zone on NameserverCheck new nameservers have your records before you switch.API docs
Test DNS Resolver SpeedTime public resolvers, cached and uncached.API docs
Validate DNSSECValidate the DNSSEC chain of trust.API docs

Email

14 operations
Analyse DMARC Report (.xml, .gz, .zip or pasted XML)Upload .xml, .gz or .zip DMARC reports, or paste XML.API docs
Analyse Email HeadersTrace an email’s path and authentication results.API docs
Analyse TLS-RPT Report (.json, .json.gz, .zip or pasted JSON)Upload .json.gz, .json or .zip TLS-RPT reports, or paste JSON.API docs
Check BIMICheck your brand logo record for inboxes.API docs
Check Blacklists (DNSBL)Check an IP or domain against spam blacklists.API docs
Check Bulk Sender ComplianceCheck the Gmail, Yahoo and Outlook sender rules.API docs
Check DKIMFind DKIM keys and check their strength.API docs
Check DMARCRead the DMARC policy and reporting setup.API docs
Check MTA-STSCheck encryption is enforced for incoming mail.API docs
Check SPFValidate SPF and count the 10 DNS lookups.API docs
Check TLS-RPTCheck you get reports when secure delivery fails.API docs
Generate Email Auth RecordBuild SPF, DMARC, DKIM, BIMI and MTA-STS records.API docs
Get Domain Email ScoreOne score out of 100 for a domain’s email setup.API docs
Look Up MX RecordsFind the mail servers and check they resolve.API docs

Network & Ownership

8 operations
Check Domain Age & ExpiryHow old is a domain and when does it expire?API docs
Check Domain AvailabilityIs a domain name free to register?API docs
Look Up BGP / ASNA network’s prefixes, upstreams, peers, exchanges and history.API docs
Look Up Bulk IPsLook up to 50 IPs at once: owner, network, country, hostname.API docs
Look Up Domain WHOIS / RDAPRegistrar, dates, status and nameservers for a domain.API docs
Look Up IP GeolocationWhere in the world is an IP address?API docs
Look Up IP WHOIS / RDAPWho owns an IP address, and who to tell about abuse.API docs
Poll Pending ASN PartsPolls pending background BGP/ASN enrichment parts.GET /v1/asn/parts

Certificate & TLS

3 operations
Decode Certificate or CSRDecode a PEM certificate, chain or CSR.API docs
Decode JA4 FingerprintDecode JA4 and JA4+ TLS, HTTP, TCP, X.509 and SSH fingerprints.API docs
Search Certificate Transparency LogsEvery certificate issued for a domain.API docs

Converter & Decoder

8 operations
Calculate Subnet / CIDRNetwork, broadcast, range and host count for a CIDR.API docs
Convert IP Address FormatIP to decimal, hex, binary and IPv6 forms.API docs
Convert MAC to IPv6Turn a MAC address into its IPv6 link-local address, and back.API docs
Convert Punycode / IDNConvert international domains and spot look-alikes.API docs
Convert Timestamp or TTLUnix timestamps, dates and TTLs, converted.API docs
Encode or Decode TextDecode Base64, URL encoding, hex and JWTs.API docs
Look Up MAC VendorWhich company made a network card?API docs
Look Up User-AgentIdentify a User-Agent from your logs or look up a bot by name.API docs

Active probe tools that send live traffic to targets (ping, traceroute, port checks, live HTTP/TLS/SMTP probes, and full health check) are intentionally excluded from this release so every operation in the node works out of the box with a free API key.

Questions

Does every operation in the n8n node work with a free API key?
Yes. All 45 operations across the 5 resources work out of the box with a free self-serve API key (1,000 cost units/day, 120/min, 4 concurrent). Active probe tools that send direct traffic at targets (ping, traceroute, port scans, live HTTP/TLS/SMTP probes, and full health check) are intentionally excluded so nothing in the node hits a 403.
How does n8n test my middle.network credential?
When you save your API key in n8n, the credential runs GET https://api.middle.network/v1/key. It confirms your key is valid and active while spending 0 daily quota units.
Can I feed Gmail or IMAP DMARC attachments straight into the node?
Yes. Choose Email -> Analyse DMARC Report in Binary File mode and wire Gmail, IMAP, or Read Binary File straight into it. It accepts .xml, .gz, .xml.gz, and .zip attachments with automatic decompression plus XXE and archive-bomb protection.
How do I use middle.network with an n8n AI Agent?
Two ways: attach the middle.network node directly to an n8n AI Agent node as a native tool (the node sets usableAsTool: true), or connect n8n's MCP Client Tool to our hosted Streamable HTTP MCP server at https://mcp.middle.network. Both share the same free API key.
Does this work on both n8n Cloud and self-hosted n8n?
Yes. Open Settings -> Community Nodes in n8n, choose Install a community node, and enter n8n-nodes-middle-network. Self-hosted Docker deployments can also install it via npm inside the n8n custom extensions directory.
What does the node output for downstream IF, Slack, or ticket nodes?
Every operation returns the standard middle.network ToolResult JSON: status (pass, warn, fail, info, error), summary.plain for people or client tickets, summary.tech for engineers, findings[] with copy-ready fix strings, raw data, and cache metadata (cached, cachedAt, freshAt).