toolkit-mcp-server: geolocate IP
toolkit_geolocate_ipResolve an IP or hostname to country, city, coordinates, ASN, organization, timezone, and proxy/hosting/mobile flags. Direct provider call avoids SSRF risk.
Instructions
Resolve a public IP address (or hostname) to geographic and network metadata: country, region, city, latitude/longitude, the owning ASN and organization, timezone, and the proxy/hosting/mobile quality flags. 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. Read proxy, hosting, and mobile before trusting the coordinates: a true on any of them means the location describes infrastructure, not the user. 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. | |
| error | No | Present when the call failed. Absent on success. | |
| proxy | No | True when the address is a known proxy, VPN, or Tor exit — the location describes the exit node, not the user. Absent when the provider does not report it. | |
| mobile | No | True when the address belongs to a mobile carrier network, where NAT can place the location far from the device. Absent when unreported. | |
| region | No | Region or state name. Absent when unknown. | |
| source | No | The provider that answered the lookup, e.g. "ip-api". | |
| target | No | The target as supplied (IP or hostname). | |
| country | No | Country name. Absent when the provider does not report it. | |
| hosting | No | True when the address belongs to a hosting or datacenter network, so the location is a facility rather than a person. Absent when unreported. | |
| 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 | No | 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. |