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.
n8n-nodes-middle-network- 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.
Install the community node
In n8n, open Settings -> Community Nodes -> Install a community node, entern8n-nodes-middle-network, and click Install.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 yourmn_live_...token once.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 viaGET /v1/keywithout spending quota.
# 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# 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 nodemn_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.
{
"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 Health | Test each nameserver: answers, SOA serials, timing. | API docs |
| Check DNS Propagation | See whether a DNS change has spread to resolvers. | API docs |
| Compare Authoritative vs Cached | Compare the source of truth with what resolvers cache. | API docs |
| Find Subdomains | Find live subdomains from certificate logs and common names. | API docs |
| Format Zone File | Lint and tidy a BIND zone file. | API docs |
| List Probe Locations | Returns live global probe locations and continent groups. | GET /v1/probes |
| Look Up All DNS Records | Every 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 Record | Look up one record type, with response code and timing. | API docs |
| Pre-Check Zone on Nameserver | Check new nameservers have your records before you switch. | API docs |
| Test DNS Resolver Speed | Time public resolvers, cached and uncached. | API docs |
| Validate DNSSEC | Validate the DNSSEC chain of trust. | API docs |
| Analyse DMARC Report (.xml, .gz, .zip or pasted XML) | Upload .xml, .gz or .zip DMARC reports, or paste XML. | API docs |
| Analyse Email Headers | Trace 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 BIMI | Check your brand logo record for inboxes. | API docs |
| Check Blacklists (DNSBL) | Check an IP or domain against spam blacklists. | API docs |
| Check Bulk Sender Compliance | Check the Gmail, Yahoo and Outlook sender rules. | API docs |
| Check DKIM | Find DKIM keys and check their strength. | API docs |
| Check DMARC | Read the DMARC policy and reporting setup. | API docs |
| Check MTA-STS | Check encryption is enforced for incoming mail. | API docs |
| Check SPF | Validate SPF and count the 10 DNS lookups. | API docs |
| Check TLS-RPT | Check you get reports when secure delivery fails. | API docs |
| Generate Email Auth Record | Build SPF, DMARC, DKIM, BIMI and MTA-STS records. | API docs |
| Get Domain Email Score | One score out of 100 for a domain’s email setup. | API docs |
| Look Up MX Records | Find the mail servers and check they resolve. | API docs |
Network & Ownership
8 operations| Check Domain Age & Expiry | How old is a domain and when does it expire? | API docs |
| Check Domain Availability | Is a domain name free to register? | API docs |
| Look Up BGP / ASN | A network’s prefixes, upstreams, peers, exchanges and history. | API docs |
| Look Up Bulk IPs | Look up to 50 IPs at once: owner, network, country, hostname. | API docs |
| Look Up Domain WHOIS / RDAP | Registrar, dates, status and nameservers for a domain. | API docs |
| Look Up IP Geolocation | Where in the world is an IP address? | API docs |
| Look Up IP WHOIS / RDAP | Who owns an IP address, and who to tell about abuse. | API docs |
| Poll Pending ASN Parts | Polls pending background BGP/ASN enrichment parts. | GET /v1/asn/parts |
Converter & Decoder
8 operations| Calculate Subnet / CIDR | Network, broadcast, range and host count for a CIDR. | API docs |
| Convert IP Address Format | IP to decimal, hex, binary and IPv6 forms. | API docs |
| Convert MAC to IPv6 | Turn a MAC address into its IPv6 link-local address, and back. | API docs |
| Convert Punycode / IDN | Convert international domains and spot look-alikes. | API docs |
| Convert Timestamp or TTL | Unix timestamps, dates and TTLs, converted. | API docs |
| Encode or Decode Text | Decode Base64, URL encoding, hex and JWTs. | API docs |
| Look Up MAC Vendor | Which company made a network card? | API docs |
| Look Up User-Agent | Identify 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.