IP-geolokaliseringssökning som MCP-verktyg

Slå upp den geografiska platsen för en IP-adress, inklusive land, region, stad, tidszon och koordinater.


MCP-servern är i testläge och är bara tillgänglig för utvalda användare.

Verktyg

Verktygets namn
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.


Parametrar
  • ipstring · Obligatorisk
    Public IPv4 address, such as 8.8.8.8, or a URL whose host is one; IPv6 is not supported
    Upp till 2048 tecken

Indataschema
{ "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 tecken

Anslutning

Varje förfrågan behöver en API-token, som du kan skapa i ditt konto och skicka som Bearer-token i headern Authorization.

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

På webbplatsen

IP-geolokaliseringssökning fungerar också i din webbläsare, utan AI-assistent.