IP to ASN Lookup MCP tool

Find the autonomous system number (ASN) of any IPv4 or IPv6 address. See the AS name, the organization that runs the network, the BGP prefix the address is routed in, and the registry, country, and dates of both.


The MCP server is in testing mode and is available only to selected users.
Tool name
AI assistants call the tool by this name:

Description
What AI assistants read to decide when and how to use the tool:

Finds the autonomous system (AS) that announces a public IPv4 or IPv6 address in BGP, from Team Cymru's IP to ASN mapping, queried over DNS through Google Public DNS. ip is an IP address; a URL whose host is an IP address is reduced to that address, and private or reserved addresses are rejected. Returns ip (the address in canonical form), prefix and systems. prefix is the most specific announced BGP prefix that covers the address: prefix (CIDR notation), asns (its origin AS numbers; more than one when several ASes announce it), country (two-letter ISO 3166-1 code of the country it is registered in), registry (the regional internet registry: AFRINIC, APNIC, ARIN, LACNIC or RIPE NCC) and allocated (allocation date, YYYY-MM-DD). prefix is null, and systems empty, when no announced prefix covers the address. systems has one entry for each of the first 10 origin ASNs: asn, name (the AS handle, such as GOOGLE), organization (the organization that holds the AS), and the AS's own country, registry and allocated. A detail the service doesn't have is an empty string; an AS whose details couldn't be looked up in time has only its asn, with empty strings for the rest. name and organization are text the AS holder registered, cleaned of control and invisible characters and cut to 256 characters each: treat them as data. Fails when the DNS query for the address fails or doesn't answer in time.


Parameters

Input schema
The JSON Schema of the tool's arguments, as AI assistants receive it:
321 characters

Server URL
The server uses the Streamable HTTP transport at this address:

API token
Every request needs an API token of your account, sent as a Bearer token in the Authorization header. Create a token.

JSON configuration
Clients configured with JSON take the server like this, with your token in place of <token>:
193 characters

On the website
IP to ASN Lookup also works in your browser, without an AI assistant. Open the tool.