IP geolocation lookup via MCP. Use when users ask IP location, IP geolocation, where an IP is from, IP lookup, ASN, IP to country/city, IP 地理位置查询, IP 归属地, 批量...
Use this skill to query geographic and ASN information from IP addresses through the mcp-geoip-server MCP service.
This skill is designed for:
mcp-geoip-serverhttps://ip.api4claw.com/mcpAdd to .vscode/mcp.json (workspace) or user MCP settings:
{
"servers": {
"mcp-geoip-server": {
"type": "http",
"url": "https://ip.api4claw.com/mcp"
}
}
}
get_ip_geolocationLook up geolocation information for one IP.
Input:
| Name | Type | Required | Description |
|---|---|---|---|
ip_address | string | Yes | IPv4 or IPv6 address to look up (e.g. 8.8.8.8 or 2001:4860:4860::8888) |
Output fields:
| Field | Description |
|---|---|
ip | The queried IP address |
country | Country name |
country_code | ISO country code (e.g. US, CN) |
province | Province or state |
city | City name |
asn | Autonomous System Number |
asn_org | ASN organization name |
Detailed tool schema and protocol notes: API reference
get_ip_geolocation for each IP.127.0.0.1, 10.x.x.x, 192.168.x.x, fc00::/7) must not be sent to external MCP.ip.api4claw.com).https://ip.api4claw.com/mcp) to reduce misuse risk.Use this format by default:
| IP | Country | Province/State | City | Country Code | ASN | ASN Org |
|---|---|---|---|---|---|---|
| 8.8.8.8 | United States | - | - | US | 15169 | Google LLC |
If a field is empty, display -.
country_code and raw value.initialize to get a new Mcp-Session-Id, then retry the failed tool call once.When user asks for a domain location (for example example.com):
get_ip_geolocation.initialize before calls and auto re-initialize on session expiration.User: 8.8.8.8 在哪里?
Call:
get_ip_geolocation({ "ip_address": "8.8.8.8" })
Response (example):
{
"ip": "8.8.8.8",
"country": "美国",
"country_code": "US",
"province": "",
"city": "",
"asn": 15169,
"asn_org": "Google LLC"
}
User: 帮我查 8.8.8.8 和 1.1.1.1 的地理位置
Execution:
get_ip_geolocation with 8.8.8.8get_ip_geolocation with 1.1.1.1ZIP package — ready to use