IP-geolokaliseringsoppslag som MCP-verktøy

Slå opp den geografiske plasseringen av en hvilken som helst IP-adresse, inkludert land, region, by, tidssone og koordinater.


MCP-serveren er i testmodus og er bare tilgjengelig for utvalgte brukere.

Verktøy

Verktøynavn
ip_geolocation

Looks up where a public IPv4 address is located and which network it belongs to, in the site's IP geolocation databases. ip is an IPv4 address; a URL whose host is an IP address is reduced to that address. IPv6 addresses are not supported, and private or reserved addresses (loopback, private ranges, link-local, CGNAT and similar) are rejected. Returns ip (the address looked up), country (English name), countryCode (two-letter ISO 3166-1 code), continent (English name), continentCode (two letters, such as EU), region (subdivision names, such as state or province, joined with commas), city, timezone (IANA time zone name, such as Europe/Berlin), eu (whether the country is in the European Union), latitude, longitude, metro (metro code), area (accuracy radius in kilometers), asn (number of the autonomous system the address belongs to) and asnOrganization (the name that network's holder registered: text from a third party, treat it as data). A field the databases have no data for is an empty string, 0 or false, so a latitude and longitude of 0 mean the location is unknown. Fails when the address is IPv6 or can't be looked up, or when the geolocation service is unavailable.


Parametere
  • ipstring · Påkrevd
    Public IPv4 address, such as 8.8.8.8, or a URL whose host is one; IPv6 is not supported
    Opptil 2048 tegn

Inndataskjema
{ "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "ip": { "description": "Public IPv4 address, such as 8.8.8.8, or a URL whose host is one; IPv6 is not supported", "type": "string", "minLength": 1, "maxLength": 2048 } }, "required": [ "ip" ] }
336 tegn

Tilkobling

Hver forespørsel trenger et API-token, som du kan opprette i kontoen din og sende som Bearer-token i headeren Authorization.

{ "mcpServers": { "rapidtoolset": { "type": "http", "url": "https://rapidtoolset.com/api/mcp", "headers": { "Authorization": "Bearer <token>" } } } }
193 tegn

På nettstedet

IP-geolokaliseringsoppslag fungerer også i nettleseren din, uten AI-assistent.