toolkit-mcp-server: geolocate IP
toolkit_geolocate_ipResolve a public IP address or hostname to geographic and network metadata, including country, region, city, coordinates, ASN, and timezone. Safe to expose as it queries the provider directly, avoiding SSRF risks.
Instructions
Resolve a public IP address (or hostname) to geographic and network metadata: country, region, city, latitude/longitude, the owning ASN and organization, and timezone. target accepts an IPv4/IPv6 address or a hostname — a hostname is DNS-resolved first and the resolvedIp field echoes which IP was actually located. The provider is called directly (never the target), so this is SSRF-free and safe to expose anywhere. Results are best-effort and provider-bounded: VPNs, proxies, mobile NAT, and anycast all defeat IP-to-location, accuracy is city-level at best, and many fields can be absent for reserved or thinly-documented ranges — absent fields are reported as unknown, never invented. Private/reserved addresses have no public geolocation and are rejected. The source field names which provider answered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | A public IPv4/IPv6 address or a hostname (e.g. "8.8.8.8" or "example.com"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | No | Autonomous System number, e.g. "AS15169". Absent on providers that omit it. | |
| org | No | Owning organization or ISP, e.g. "Google LLC". Absent when unknown. | |
| city | No | City name. Absent when unknown. | |
| region | No | Region or state name. Absent when unknown. | |
| source | Yes | The provider that answered the lookup, e.g. "ip-api". | |
| target | Yes | The target as supplied (IP or hostname). | |
| country | No | Country name. Absent when the provider does not report it. | |
| latitude | No | Latitude in decimal degrees. Absent when unknown. | |
| timezone | No | IANA timezone, e.g. "America/Los_Angeles". Absent when unknown. | |
| longitude | No | Longitude in decimal degrees. Absent when unknown. | |
| resolvedIp | Yes | The IP that was actually located (a supplied hostname is resolved to this first). | |
| countryCode | No | ISO 3166-1 alpha-2 country code. Absent when unknown. |