GnistAI GnistAI
Log in

IP Geolocation

IP address geolocation — country, city, coordinates, ISP, and timezone from any IP.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 Utilities

Data source: ip-api.com

MCP 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"}}}'

API REST API

API Root https://context.gnist.ai/rest/ip-geolocation/

3 endpoints available:

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())

OpenAPI Spec  ·  Full API Docs

CLI 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_ip
Look up the geographic location of an IP address.
ParameterTypeRequiredDescription
ipstringrequired
geolocate_ip_batch
Look up geographic locations for multiple IP addresses at once.
ParameterTypeRequiredDescription
ipsstringrequired
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related