Utilities
Data source: ip-api.com
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/ip-geolocation/
claude_desktop_config.json
{
"mcpServers": {
"gnist-ip-geolocation": {
"url": "https://context.gnist.ai/mcp/ip-geolocation/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/ip-geolocation/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "geolocate_ip", "arguments": {"ip": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/ip-geolocation/
3 endpoints available:
GET /rest/ip-geolocation/geolocate_ipGET /rest/ip-geolocation/geolocate_ip_batchGET /rest/ip-geolocation/report_feedback
Shell
curl "https://context.gnist.ai/rest/ip-geolocation/geolocate_ip?ip=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/ip-geolocation/geolocate_ip",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"ip": "example"
},
)
print(resp.json())
Command Line
Command
gc ip-geolocation
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (3)
geolocate_ipLook up the geographic location of an IP address.
| Parameter | Type | Required | Description |
|---|---|---|---|
ip | string | required |
geolocate_ip_batchLook up geographic locations for multiple IP addresses at once.
| Parameter | Type | Required | Description |
|---|---|---|---|
ips | string | required |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |