API & MCP
Everything a person can do on ASN Relationship Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://asnrelationshipexplorer.usefulweb.site/api/v1/calculate– run ASN Relationship ExplorerGET https://asnrelationshipexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
ASN Relationship Explorer
Explains an Autonomous System Number with RIPEstat data: registered holder and country, neighbours observed in RIPE RIS AS paths (left = towards the collectors, typically upstreams/peers; right = towards the origin, typically customers), announced IPv4/IPv6 prefixes with address-space totals, and a neighbour graph.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (live, pasted) | "live" | Mode |
asn | text | — | AS number |
maxNeighbours | integer | 25 | Neighbours in the graph |
pasted | textarea | — | RIPEstat responses (JSON). Pasted mode: {asn, asOverview, asnNeighbours?, announcedPrefixes?, rirStatsCountry?} — full RIPEstat responses or their "data" objects. |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://asnrelationshipexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
asn_relationship_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=asn-relationship-explorer
{
"mcpServers": {
"asn-relationship-explorer": { "type": "http", "url": "https://asnrelationshipexplorer.usefulweb.site/mcp" }
}
}