net-mcp
Uses the 1.1.1.1 public DNS resolver as the default service for performing DNS lookups and tracing delegation chains with DNSSEC validation.
Integrates with Cloudflare Radar to detect BGP hijack events, identify route leaks, and provide prefix-to-ASN mapping data with RPKI status.
Utilizes the local curl command-line tool to make HTTP requests, allowing for connectivity checks and inspection of response headers.
Provides local network diagnostic tools, including path tracing, routing table inspection, and port scanning, tailored for Linux systems.
Provides local network diagnostic tools, including path tracing, routing table inspection, and port scanning, tailored for macOS systems.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@net-mcp Show me the BGP routing info and RPKI status for 1.1.1.0/24"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
net-mcp
MCP server for network engineering — BGP routing analysis, RPKI validation, DNSSEC-aware DNS, and historical route data from MRT archives.
Gives LLMs structured access to real network state using public data sources (RIPE RIS, RIPEstat, RPKI repositories, bgp.tools, bgproutes.io).
Example Queries
Once connected as an MCP server, an LLM can answer questions like:
"Is 1.1.1.0/24 RPKI valid?" →
rpki_validate"Who originates 8.8.8.0/24?" →
bgp_prefix_origin"What does Cloudflare's AS footprint look like?" →
bgp_asn_info(13335)"Is cloudflare.com DNSSEC signed?" →
dns_lookupordns_trace"Show me routes to 1.1.1.0/24 from Tokyo" →
ris_collectors(region='asia')thenbgp_route_lookup(prefix, collector='RRC06')"What did routing look like for 8.8.8.0/24 two days ago?" →
mrt_searchthenbgp_historical_lookup"What route objects does AS13335 have in IRR?" →
irr_route_lookup"Where does Cloudflare peer?" →
peeringdb_network(13335)"What ASes are at AMS-IX?" →
peeringdb_ix("AMS-IX", include_members=True)"Split 10.0.0.0/24 into /26s" →
subnet_split"Is 192.168.1.1 a bogon?" →
bogon_check"Do these two prefixes overlap?" →
prefix_overlap"Ping 1.1.1.1 from my machine" →
local_ping"What's my public IP?" →
local_public_ip"Trace the path to 8.8.8.8" →
local_traceroute"What ports are open on 192.168.1.1?" →
local_nmap"Show my routing table" →
local_routes
Related MCP server: Packet Tracer MCP
Tools
DNS
Tool | Description |
| Query DNS records (A, AAAA, MX, NS, TXT, SOA, CNAME, PTR, SRV, CAA) with DNSSEC validation status |
| Trace delegation chain from root to authoritative, showing DNSSEC signing status at each zone level |
RPKI & ASPA
Tool | Description |
| Validate a prefix + origin ASN pair against RPKI ROAs. Queries RIPEstat (ROA details) and Cloudflare Radar (status cross-check) |
| Look up all ROAs for a given prefix or ASN, including max-length and trust anchor |
| Look up ASPA objects — which upstream providers an AS has authorized (Cloudflare Radar) |
| Track ASPA object changes over time — additions, removals, modifications (Cloudflare Radar) |
BGP — Live
Tool | Description |
| Look up current BGP routes for a prefix. Optionally filter by RIPE RIS collector for regional perspective |
| Find which AS(es) originate a prefix, with AS name enrichment |
| Get AS name, all announced prefixes (v4/v6), upstream providers, and total prefix count |
BGP — Collectors & Historical
Tool | Description |
| List RIPE RIS route collectors with location, peer counts, and type (IXP vs multihop). Filter by region |
| Find available MRT archive files (RIB dumps or updates) for a time range and collector |
| Download and parse MRT files to retrieve BGP routes for a prefix at a specific point in time |
BGP — Security (Cloudflare Radar)
Tool | Description |
| Search BGP origin hijack events with confidence scores, affected prefixes, hijacker/victim ASNs |
| Search BGP route leak events — improper route propagation between peers |
These tools require a Cloudflare Radar API token (CLOUDFLARE_API_TOKEN). Free to obtain at dash.cloudflare.com/profile/api-tokens.
IRR (Internet Routing Registry)
Tool | Description |
| Look up route objects by prefix or origin ASN across RADB, RIPE, ARIN, and other registries |
| Look up aut-num objects — AS name, description, import/export policies |
| Expand an AS-SET into its member ASNs (e.g. AS-CLOUDFLARE → list of ASNs) |
PeeringDB
Tool | Description |
| Look up a network by ASN — peering policy, IXP presence, port speeds, IRR as-set |
| Search IXPs by name or city — location, member list, route server info |
| Search data center facilities — location, network count |
IP/Subnet Math & Bogon Detection
Tool | Description |
| Get full details on a prefix — network/broadcast, host count, private/global classification |
| Split a prefix into smaller subnets (e.g. /24 → four /26s) |
| Check if an IP or prefix is within a network (e.g. is 10.5.5.1 in 10.0.0.0/8?) |
| Check if two prefixes overlap and the relationship (contains, equal, disjoint) |
| Aggregate contiguous prefixes into the smallest covering supernet |
| Check if an IP/prefix is reserved space (RFC 1918, CGNAT, documentation, multicast, etc.) |
Local Diagnostics
Tools that run standard CLI commands on the user's machine. All inputs are validated and passed as list arguments to subprocess (never shell=True) to prevent command injection.
Tool | Description | Admin Required |
| Ping a host with configurable count and timeout | No |
| Trace network path to a host (UDP mode) | No |
| Combined ping + traceroute with per-hop stats | Yes (raw sockets) |
| DNS lookup via dig (falls back to nslookup) | No |
| Show network interfaces and IP addresses | No |
| Show the local routing table | No |
| Show active TCP/UDP connections and listening ports | No (PIDs need admin) |
| Show ARP table (IP-to-MAC mappings) | No |
| Whois lookup for domains, IPs, or ASNs | No |
| Make HTTP requests, check headers and connectivity | No |
| TCP connect scan (port scanning, no SYN scan) | No |
| Show TCP/UDP/ICMP protocol statistics | No |
| Get the public-facing IP of the machine | No |
Tools that require admin privileges will attempt to run and return a clear error message if permission is denied. Cross-platform: macOS, Linux, and Windows.
Active tools (local_nmap, local_curl) are disabled by default. Because this server can be driven by an LLM, the ability to port-scan or fetch arbitrary URLs from the host machine is an SSRF/scanning surface (internal services, cloud metadata endpoints). Enable them deliberately by setting allow_active_tools = true under [local] in config.toml, or NET_MCP_ALLOW_ACTIVE_LOCAL_TOOLS=1. When disabled, they return a clear message explaining how to turn them on.
Data Sources
Data sources are queried in this priority order:
Source | Auth | Used For |
RIPEstat | None (free) | BGP looking glass, routing status, prefix origins, AS info, RPKI validation, collector metadata. Primary for most queries |
Cloudflare Radar | Free API token | Real-time BGP routes, prefix-to-ASN with RPKI status, BGP hijack detection, BGP route leak detection. Primary alongside RIPEstat |
bgproutes.io | API key required | RIB snapshots with RPKI ROV + ASPA validation, BGP updates, AS topology. Only used when API key is configured |
bgp.tools | None (free) | ASN-to-name mappings (asns.csv, cached in-memory), full BGP table (table.jsonl, last resort) |
RIPE RIS MRT archive | None (free) | Historical RIB dumps and BGP update files, accessed via BGPKIT Broker + Parser |
IRR databases | None (free) | Route objects, aut-num, AS-SET expansion via whois protocol (RADB, RIPE, ARIN, APNIC, etc.) |
PeeringDB | None (free) | Network peering info, IXP membership, facility data. No API key needed for read-only |
dnspython | N/A (local) | All DNS queries and DNSSEC validation |
All RIPEstat requests include sourceapp=net-mcp per their API guidelines.
Usage
With Claude Code
Sessions opened inside this repository pick up the server automatically from the checked-in .mcp.json. To use it from any other project, register it once at user scope:
claude mcp add --scope user --transport stdio net-mcp -- \
uv run --directory /path/to/net-mcp net-mcpAPI tokens are read from your environment (CLOUDFLARE_API_TOKEN, BGPROUTES_API_KEY) or from config.toml; see Configuration.
Claude Desktop and other MCP clients
{
"mcpServers": {
"net-mcp": {
"command": "uv",
"args": ["run", "--directory", "/path/to/net-mcp", "net-mcp"],
"env": { "CLOUDFLARE_API_TOKEN": "your-token" }
}
}
}Standalone
uv run net-mcpConfiguration
Settings are loaded from (in priority order):
Environment variables (
NET_MCP_*prefix)Config file (
config.toml)Built-in defaults
Config file is searched at:
Path in
NET_MCP_CONFIGenv var./config.toml(next to pyproject.toml)~/.config/net-mcp/config.toml
config.toml is gitignored because it may hold API tokens. Start from the template:
cp config.example.toml config.tomlconfig.toml
[storage]
# Directory for downloaded MRT files (RIB dumps can be ~400MB each).
# Default: system temp directory (/tmp/net-mcp/mrt)
mrt_cache_dir = "/path/to/mrt/cache"
# Maximum cache size in GB. Oldest files are removed when exceeded.
mrt_max_cache_gb = 10
[api]
# Cloudflare Radar API token (or set CLOUDFLARE_API_TOKEN env var)
cloudflare_api_token = "your-token-here"
# bgproutes.io API key (or set BGPROUTES_API_KEY env var)
bgproutes_api_key = "your-key-here"
[bgp]
# Default RIPE RIS collector for queries
default_collector = "rrc00"
[dns]
# Default DNS resolver
resolver = "1.1.1.1"
[local]
# Enable active local tools (local_nmap, local_curl). Off by default because
# they can scan/fetch arbitrary targets (internal services, metadata endpoints).
allow_active_tools = falseEnvironment Variables
Variable | Description | Default |
| Path to config file | (auto-detected) |
| MRT file download/cache directory |
|
| Max cache size before evicting old files |
|
| Default RIPE RIS collector ID |
|
| Default DNS resolver IP |
|
| Enable |
|
| Cloudflare Radar API token (get one free) | (none) |
| bgproutes.io API key | (none) |
MRT File Caching
Historical BGP lookups download MRT files from the RIPE RIS archive. These files can be large:
RIB dumps (
bview): ~400MB each, created every 8 hours (00:00, 08:00, 16:00 UTC)Update files (
updates): ~3MB each, created every 5 minutes
Downloaded files are cached at <mrt_cache_dir>/<collector>/<year.month>/<filename>.gz and reused on subsequent queries. The cache is automatically pruned when it exceeds mrt_max_cache_gb.
Error reporting
Every API-backed result carries an error field. It is null when the source answered, and set to a short message when the lookup failed, so an empty routes/origins/roas list with error: null means "genuinely nothing there", not "the API was down". Invalid input (bad prefix, unknown record type, out-of-range port) is rejected with a tool error that explains the valid form. Local diagnostic tools report failures in CommandResult.error.
Development
git clone https://github.com/steelcutoatmeal/net-mcp.git
cd net-mcp
uv sync --group dev
uv run pytest -q # offline, ~1s
uv run ruff check src tests # lint (CI enforces)
uv run ruff format src tests # formatTests never touch the network: they monkeypatch the HTTP helpers on each tool module and call tools in-process via mcp.call_tool. CI runs lint, format check, and tests on Python 3.10, 3.12, and 3.14.
License
MIT
Available Tools
39 toolsbgp_asn_infoBgp Asn InfoA
Get information about an Autonomous System.
Returns the AS name, announced prefixes (v4 and v6), upstream providers, and total prefix count. Use this to understand an AS's footprint on the Internet.
Inputs: asn (required). Returns: asn, name, note, error, +4 more
bgp_hijacksBgp HijacksA
Search for BGP origin hijack events.
Detects when an AS announces prefixes it is not authorized to originate (based on RPKI, IRR, and historical data). Each event includes a confidence score, the hijacker and victim ASNs, affected prefixes, and duration.
Requires Cloudflare Radar API token (CLOUDFLARE_API_TOKEN).
Inputs: asn, prefix, date_end, date_start, +2 more. Returns: error, total, events, source
bgp_historical_lookupBgp Historical LookupA
Look up historical BGP routes for a prefix from MRT archive data.
Downloads and parses MRT files from RIPE RIS to show what BGP routes existed for a prefix at a specific point in time (rib) or what route changes occurred during a time window (update).
For RIB lookups: shows all routes for the prefix at that snapshot. For update lookups: shows announcements and withdrawals during the window.
Note: RIB files are ~400MB and take 30-60s to download and parse. Update files are ~3MB and parse in seconds. Prefer 'update' for narrow time windows and 'rib' for full routing state.
Inputs: prefix (required), time_end (required), time_start (required), collector, +2 more. Returns: error, total, prefix, source, +6 more
bgp_leaksBgp LeaksA
Search for BGP route leak events.
Detects when an AS improperly propagates routes it received from one peer to another peer (violating expected routing policy). Each event includes the leaking AS, affected origin/prefix counts, and detection timestamps.
Requires Cloudflare Radar API token (CLOUDFLARE_API_TOKEN).
Inputs: asn, date_end, date_start, max_results. Returns: error, total, events, source
bgp_prefix_originBgp Prefix OriginA
Find which AS(es) originate a given prefix.
Returns the distinct origin ASN(s) with AS names. Cloudflare Radar
(pfx2as) is queried first because it also reports per-origin RPKI
status; if it is not configured or returns nothing, RIPEstat
routing-status is used (no rpki_status). error is set only when
every source failed, so an empty origins with no error means the
prefix is genuinely not announced.
Inputs: prefix (required). Returns: error, source, origins, query_prefix
bgp_route_lookupBgp Route LookupA
Look up current BGP routes for a prefix from global routing tables.
Returns BGP route entries including origin AS, AS path, communities, and peer information. Optionally filter by a specific RIPE RIS collector to get a regional perspective (e.g. RRC06 for Tokyo, RRC15 for Sao Paulo).
Source order: RIPEstat looking glass, then Cloudflare Radar (if a
token is configured), then bgproutes.io (if a key is configured), then
the bgp.tools full table only if RIPEstat itself failed. At most 20
routes are returned; total reports how many were observed. Use
ris_collectors first to pick a collector ID for a regional view.
Inputs: prefix (required), collector. Returns: error, total, prefix, routes, +1 more
bogon_checkBogon CheckA
Check if an IP address or prefix is a bogon (reserved/non-routable).
Tests against all IANA reserved ranges including RFC 1918 (private), RFC 6598 (CGNAT), RFC 5737 (documentation), multicast, loopback, link-local, and other special-use prefixes.
A bogon appearing in the global routing table usually indicates a misconfiguration or a hijack attempt.
Inputs: query (required). Returns: query, detail, matches, is_bogon
dns_lookupDns LookupA
Query DNS records for a domain with DNSSEC validation status.
Returns the requested records along with whether DNSSEC is enabled and whether validation passes. Use this to check DNS configuration and DNSSEC health for any domain.
If the resolver returns SERVFAIL (which a validating resolver does when DNSSEC validation fails), this re-queries with the CD (Checking Disabled) bit to distinguish a genuine DNSSEC failure from an unrelated server error.
Inputs: name (required), resolver, record_type. Returns: dnssec, records, resolver, query_name, +2 more
dns_traceDns TraceA
Trace DNS resolution from root to authoritative nameservers.
Walks the actual delegation chain (zone cuts) from the root down, showing each zone's nameservers and DNSSEC signing status. Labels that are not their own zone (e.g. 'www' as a record inside a parent zone) are skipped so they are not mistaken for a broken delegation.
This traces the delegation/chain-of-trust structure, which is independent of any particular record type.
A DNSSEC break is reported when a zone is signed (publishes DNSKEY) but its parent publishes no DS record for it — an "island of security" that breaks the chain of trust.
Inputs: name (required). Returns: query_name, break_point, delegation_chain, dnssec_chain_intact
ip_containsIp ContainsA
Check if an IP address or prefix is within a network.
Answers questions like 'is 10.5.5.1 in 10.0.0.0/8?' or 'is 192.168.1.0/24 inside 192.168.0.0/16?'.
Inputs: address (required), network (required). Returns: detail, address, network, contains
irr_as_set_expandIrr As Set ExpandA
Expand an AS-SET into its member ASNs.
Recursively resolves an AS-SET: reads its members/mp-members
attributes, follows any nested AS-SET members, and collects every
member ASN. Useful for understanding the customer cone of a transit
provider or what ASNs are in a peering group. Uses RADB by default
because it mirrors objects from many registries.
The name must look like an RPSL set ('AS-...', 'RS-...', or a
hierarchical 'AS13335:AS-...' name); bare ASNs are rejected.
Recursion is bounded (6 levels deep, 20000 ASNs) to keep very large
transit cones from running unbounded. If any lookup during expansion
fails, error is set and the members collected so far are returned.
Inputs: as_set (required), source. Returns: error, total, as_set, source, +1 more
irr_autnumIrr AutnumA
Look up an aut-num object in IRR databases.
Returns the AS name, description, import/export policies (capped at 20 lines each), and organisation handle. Useful for understanding an AS's registered routing policy. The ASN may be given as 'AS13335' or a bare '13335'.
One object is returned per queried registry: the first aut-num object
in that registry's response whose aut-num matches the requested ASN.
registry is the server queried and source is the object's own
source: attribute (they differ for mirrored objects). If a registry
cannot be reached, error is set and results from the remaining
registries are still returned.
Inputs: asn (required), sources. Returns: asn, error, objects, sources
irr_route_lookupIrr Route LookupA
Look up IRR route objects for a prefix or origin ASN.
Queries Internet Routing Registries to find what route objects exist. Compare with RPKI (rpki_validate) and actual BGP (bgp_prefix_origin) to identify inconsistencies between what's registered, what's authorized, and what's actually announced.
The query must be an ASN ('AS13335' or bare '13335', normalised to
'AS13335') or an IP prefix/address (normalised to CIDR form); anything
else is rejected. Each returned object reports both registry (the
server it was fetched from) and source (the registry that
authoritatively holds it), which differ for objects mirrored by RADB.
Results are capped at 200 objects; total is the uncapped count.
If a registry cannot be reached, error is set and the objects from
the remaining registries are still returned.
Inputs: query (required), sources. Returns: error, query, total, objects, +1 more
local_arpLocal ArpA
Show the ARP table (IP-to-MAC address mappings).
Displays cached ARP entries for the local network. Useful for seeing what hosts are on the same L2 segment. Does not require admin privileges.
Inputs: no named parameters. Returns: note, error, stderr, stdout, +4 more
local_connectionsLocal ConnectionsA
Show active network connections and listening ports.
Displays TCP/UDP sockets with local/remote addresses and state. Uses ss on Linux (netstat as a fallback) and netstat on macOS and Windows. ss filters by state natively; netstat on macOS, Windows and older Linux has no state filter, so for 'listen' and 'established' this tool filters the output lines itself after the command runs and says so in the note field. Does not require admin privileges (PIDs may require admin).
Inputs: state. Returns: note, error, stderr, stdout, +4 more
local_curlLocal CurlA
Make an HTTP request from the local machine using curl.
Useful for testing connectivity, checking HTTP headers, TLS certificates, and response codes from the local network perspective. Output is capped at 10,000 characters (the note field says when it was truncated). Does not require admin privileges.
curl runs with -q (ignores ~/.curlrc) and -g (no URL globbing, so brackets and braces in the URL are literal and cannot fan out into many requests). Only http:// and https:// URLs are accepted.
Disabled by default. When enabled via allow_active_tools this tool deliberately does NOT block private, loopback, link-local or cloud metadata addresses (for example 127.0.0.1, 10.0.0.0/8 or 169.254.169.254): reaching internal endpoints from this host is part of its purpose as a local diagnostic, and operators who enable it accept that trade-off.
Inputs: url (required), timeout, head_only, follow_redirects. Returns: note, error, stderr, stdout, +4 more
local_digLocal DigA
Run dig on the local machine for DNS lookups.
Unlike dns_lookup (which uses dnspython), this runs the actual dig binary and returns raw output including query time, server used, and all sections. Useful for seeing exactly what a real resolver returns. Falls back to nslookup when dig is not installed. Does not require admin privileges.
record_type must be a bare mnemonic (1-10 letters/digits); dig options such as '+trace' or '-x' are rejected and reported in the result's error field.
Inputs: name (required), short, server, record_type. Returns: note, error, stderr, stdout, +4 more
local_interfacesLocal InterfacesA
Show network interfaces and their IP addresses on the local machine.
Returns interface names, IP addresses, subnet masks, and status. Uses ifconfig on macOS, ip addr on Linux, ipconfig on Windows. Does not require admin privileges.
Inputs: no named parameters. Returns: note, error, stderr, stdout, +4 more
local_mtrLocal MtrA
Run mtr (My Traceroute) combining ping and traceroute.
Shows per-hop packet loss and latency statistics. Requires mtr to be installed. May require admin/sudo for raw ICMP sockets on some systems — if permission is denied, the error will say so.
Inputs: host (required), count. Returns: note, error, stderr, stdout, +4 more
local_netstat_statsLocal Netstat StatsA
Show network protocol statistics (TCP, UDP, ICMP counters).
Displays packet counts, error rates, retransmissions, and other protocol-level statistics. Useful for diagnosing network health issues. Does not require admin privileges.
Inputs: no named parameters. Returns: note, error, stderr, stdout, +4 more
local_nmapLocal NmapA
Run an nmap TCP connect scan on a target.
Uses TCP connect scan (-sT, no admin needed) with host discovery skipped (-Pn) and reports only open ports. SYN scans and OS detection require root and are not used. Nmap must be installed separately.
Targets are limited to one host or a CIDR block of at most 256 addresses (/24 for IPv4, /120 for IPv6): with -Pn nmap probes every address in the block, so a larger prefix would exhaust the 120 s time budget without finishing. nmap's octet-range (10.0.0-255.1), wildcard and comma-list target syntax is rejected for the same reason; scan several small blocks instead. Rejected inputs are reported in the result's error field.
Disabled by default (it can scan arbitrary internal hosts from this machine). Enable via allow_active_tools in config.
Inputs: target (required), ports. Returns: note, error, stderr, stdout, +4 more
local_pingLocal PingA
Ping a host from the local machine.
Sends ICMP echo requests and reports round-trip time, packet loss, and latency statistics. Does not require admin privileges. Invalid hosts are reported in the result's error field rather than raised.
Inputs: host (required), count, timeout. Returns: note, error, stderr, stdout, +4 more
local_public_ipLocal Public IpA
Get the public IP address of the local machine.
Queries external services (ifconfig.me, ipify, icanhazip) in turn until one answers, identifying itself with the net-mcp User-Agent. Useful for verifying NAT, VPN, or proxy configuration. Does not require admin privileges.
Inputs: no named parameters. Returns: note, error, stderr, stdout, +4 more
local_routesLocal RoutesA
Show the local routing table.
Displays all routes including default gateway, connected networks, and static routes. Uses netstat -rn on macOS, ip route on Linux, route print on Windows. Does not require admin privileges.
Inputs: no named parameters. Returns: note, error, stderr, stdout, +4 more
local_tracerouteLocal TracerouteA
Trace the network path to a host from the local machine.
Shows each hop along the route with latency. Uses UDP probes by default (no admin required). On macOS/Linux uses traceroute, on Windows uses tracert. If the trace exceeds its time budget the partial output collected so far is returned with returncode 124.
Inputs: host (required), max_hops. Returns: note, error, stderr, stdout, +4 more
local_whoisLocal WhoisA
Run a whois lookup from the local machine.
Queries the appropriate whois server for domain registration, IP allocation, or ASN information. Does not require admin privileges.
Inputs: query (required). Returns: note, error, stderr, stdout, +4 more
mrt_searchMrt SearchA
Find available MRT data files for a given time range and collector.
Use this to discover what historical BGP data is available before calling bgp_historical_lookup. Returns URLs, sizes, and timestamps for each MRT file.
RIB dumps (bview) are snapshots of the full routing table, taken every 8 hours at 00:00, 08:00, 16:00 UTC. Use these to see what the routing table looked like at a specific time.
Update files contain BGP announcements and withdrawals, archived every 5 minutes. Use these to see route changes during an incident.
Inputs: time_end (required), time_start (required), collector, data_type. Returns: tip, error, files, total, +4 more
peeringdb_facilityPeeringdb FacilityA
Search for data center facilities in PeeringDB.
Returns facility name, location, website, how many networks are
present (networks_count), and how many IXPs are reachable there
(exchanges_count). Useful for understanding colocation options and
where networks can physically interconnect.
Data source: PeeringDB, one request (two if the name search is empty
and falls back to a city search). Counts come from PeeringDB's own
net_count / ix_count fields, so no per-facility lookups are made.
If error is set the search failed upstream and facilities is empty.
Inputs: query (required). Returns: error, query, total, source, +1 more
peeringdb_ixPeeringdb IxA
Search for Internet Exchange Points (IXPs) in PeeringDB.
Returns exchange name, location, website, and the number of connected
networks (total_members) for every match. With include_members,
the member list (ASN, LAN addresses, port speed, route-server flag) is
fetched for ONE exchange only: the exact name match if there is one,
otherwise the first result. That entry has members_included=true.
To get members of a specific exchange, query by its numeric IX id.
Data source: PeeringDB. A name search that returns nothing falls back
to a city search. total_members comes from PeeringDB's net_count and
costs no extra requests. If error is set the search or the member
fetch failed upstream and the payload may be empty or partial.
Inputs: query (required), include_members. Returns: error, query, total, source, +1 more
peeringdb_networkPeeringdb NetworkA
Look up a network in PeeringDB by ASN.
Returns peering policy, network type, IRR as-set, website, and every IXP where the network peers (with LAN addresses, port speeds, and route-server participation). Useful for understanding a network's peering footprint and how to reach it.
Data source: PeeringDB (two requests: the net record, then its
netixlan entries). A null network with no error means the ASN has
no PeeringDB entry; if error is set the lookup failed upstream and
the record may be missing or partial (e.g. exchanges empty).
Inputs: asn (required). Returns: error, source, network, query_asn
prefix_overlapPrefix OverlapA
Check if two IP prefixes overlap.
Returns the relationship: disjoint, one contains the other, or equal. Useful for detecting conflicts in IP allocation or routing policy.
Inputs: prefix_a (required), prefix_b (required). Returns: overlaps, prefix_a, prefix_b, relationship
ris_collectorsRis CollectorsA
List RIPE RIS route collectors with location, peer counts, and status.
Use this to understand where BGP data is collected from. Each collector is at a specific IXP or operates as a multihop peer. Collectors with more full-feed peers provide better global visibility.
Common use cases:
Need Asian perspective? Use RRC06 (Tokyo) or RRC23 (Singapore)
Need US perspective? Use RRC11 (NYC), RRC14 (Palo Alto), RRC16 (Miami)
Need South American view? Use RRC15 (Sao Paulo) or RRC24 (Montevideo)
Need African view? Use RRC19 (Johannesburg)
Need best global visibility? Use RRC00 or RRC25 (multihop, most peers)
Inputs: region, active_only. Returns: tip, error, total, active, +1 more
rpki_aspa_changesRpki Aspa ChangesB
Track changes to RPKI ASPA objects over time.
Shows when ASPA objects were added, removed, or modified. Useful for monitoring provider authorization changes and detecting potential routing policy shifts.
Requires Cloudflare Radar API token (CLOUDFLARE_API_TOKEN).
Inputs: asn, date_end, date_start. Returns: error, total, source, changes, +2 more
rpki_aspa_lookupRpki Aspa LookupA
Look up RPKI ASPA (AS Provider Authorization) objects.
ASPA defines which upstream providers an AS authorizes for its route announcements. This is a newer RPKI extension that helps prevent route leaks by validating AS path relationships.
Use 'customer' role to see who an AS has authorized as providers. Use 'provider' role to see which ASes have authorized a given AS as their provider.
At most 200 objects are returned (an unfiltered snapshot is the whole
dataset); total reports the real count. Requires a Cloudflare Radar
API token (CLOUDFLARE_API_TOKEN); error explains if it is missing.
Inputs: asn, date, role. Returns: error, total, source, objects, +1 more
rpki_roa_lookupRpki Roa LookupA
Look up RPKI ROAs for a prefix or ASN.
Returns Route Origin Authorizations matching the query, including max-length, trust anchor, and ASN. Useful for understanding what routes an AS is authorized to originate or what ROAs cover a prefix.
For an ASN query only the first 50 announced prefixes are scanned
(large ASes announce thousands); note says when that cap applied.
Data source: RIPEstat. error is set if RIPEstat could not be reached.
Inputs: query (required). Returns: note, roas, error, query, +1 more
rpki_validateRpki ValidateA
Validate a BGP route origin against RPKI ROAs.
Checks whether a given prefix + origin ASN pair is VALID, INVALID, or NOT_FOUND in RPKI. Returns matching ROAs and details about any max-length issues.
Queries RIPEstat first for full ROA details. If RIPEstat returns NOT_FOUND, Cloudflare Radar is consulted to confirm the status. If RIPEstat is unavailable entirely, falls back to Cloudflare Radar (status only, no ROA details).
Inputs: prefix (required), origin_asn (required). Returns: detail, prefix, status, origin_asn, +1 more
subnet_infoSubnet InfoA
Get detailed information about an IP prefix or address.
Returns network/broadcast addresses, netmask, host count, and classification (private, global, multicast, etc.). Works with both IPv4 and IPv6.
Inputs: prefix (required). Returns: prefix, netmask, hostmask, is_global, +10 more
subnet_splitSubnet SplitA
Split an IP prefix into smaller subnets.
For example, split 10.0.0.0/24 into /26s to get 4 subnets. Works with both IPv4 and IPv6.
Inputs: prefix (required), new_prefix_length (required). Returns: total, subnets, original, new_prefix_length
supernet_aggregateSupernet AggregateA
Try to aggregate a list of IP prefixes into a supernet.
Given contiguous subnets, returns the smallest covering supernet. Useful for summarizing route announcements.
Inputs: prefixes (required). Returns: detail, prefixes, supernet, aggregatable
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 39 tools
Most tools have a clear, distinct target and data source, and descriptions explicitly call out differences (e.g., dns_lookup vs local_dig). A few pairs overlap in concept (bgp_prefix_origin vs bgp_route_lookup, local_mtr vs local_ping/local_traceroute), but the descriptions are enough to disambiguate.
Names are all lowercase snake_case and consistently use a domain-prefix pattern (rpki_*, bgp_*, irr_*, peeringdb_*, local_*). The tails mix verbs and plain nouns (lookup, validate, info, hijacks, public_ip), so it is not a uniform verb_noun scheme, but it is predictable.
39 tools is beyond the 25+ threshold and presents a heavy selection surface, even though the tools are organized into distinct clusters. The broad network scope justifies more than a typical server, but the count strains agent decision-making.
The server covers core workflows across IP planning, DNS, BGP, RPKI, IRR, PeeringDB, and local diagnostics with no serious dead ends. Minor gaps exist (e.g., no RDAP abstraction or multi-vantage-point probing), but the covered domains feel substantially complete.
Maintenance
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Network, domain and website diagnostics for AI clients via MCP.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
IP intelligence, network diagnostics, and AI service availability tools for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables LLMs to retrieve structured network information, including routing, interfaces, MPLS, and topology, from devices using gNMI and OpenConfig models. It facilitates real-time network analysis, log filtering, and status monitoring through a standardized interface.1014BSD 3-Clause
- AlicenseNot gradedqualityAmaintenanceAn MCP server that allows LLMs to create, configure, validate, and explain Cisco Packet Tracer network topologies. It provides a comprehensive suite of tools for generating deployment scripts, CLI configurations, and automated network troubleshooting.1,619 PyPI405MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server that provides AI assistants with professional-grade network analysis capabilities, combining Wireshark packet analysis, nmap scanning, and threat intelligence for enhanced network troubleshooting and security analysis.MIT
- FlicenseNot gradedqualityDmaintenanceA secure MCP server for network diagnostics, providing tools like ping, traceroute, whois, nslookup, dig, nmap, curl, and netstat through natural language interfaces.-