Geography
Data source: GeoNames.org
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/geonames/
claude_desktop_config.json
{
"mcpServers": {
"gnist-geonames": {
"url": "https://context.gnist.ai/mcp/geonames/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/geonames/" \
-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": "search_cities", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/geonames/
7 endpoints available:
GET /rest/geonames/search_citiesGET /rest/geonames/get_cityGET /rest/geonames/get_countriesGET /rest/geonames/get_countryGET /rest/geonames/search_timezonesGET /rest/geonames/get_timezoneGET /rest/geonames/report_feedback
Shell
curl "https://context.gnist.ai/rest/geonames/search_cities?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/geonames/search_cities",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc geonames
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (7)
search_citiesSearch for cities by name.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | |
country_code | any | optional | |
limit | integer | optional | (default: 10) |
get_cityGet a city by its GeoNames ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
geonameid | integer | required |
get_countriesList all countries.
get_countryGet a country by its ISO-3166 code.
| Parameter | Type | Required | Description |
|---|---|---|---|
iso_code | string | required |
search_timezonesSearch for timezones by ID or filter by country.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | any | optional | |
country_code | any | optional | |
limit | integer | optional | (default: 10) |
get_timezoneGet a timezone by its IANA timezone ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
timezone_id | 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") |