Geography
Data source: Curated dataset (US Census Bureau)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/us-county/
claude_desktop_config.json
{
"mcpServers": {
"gnist-us-county": {
"url": "https://context.gnist.ai/mcp/us-county/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/us-county/" \
-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": "get_county", "arguments": {"fips": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/us-county/
5 endpoints available:
GET /rest/us-county/get_countyGET /rest/us-county/search_countiesGET /rest/us-county/list_counties_by_stateGET /rest/us-county/get_statesGET /rest/us-county/report_feedback
Shell
curl "https://context.gnist.ai/rest/us-county/get_county?fips=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/us-county/get_county",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"fips": "example"
},
)
print(resp.json())
Command Line
Command
gc us-county
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
get_countyGet detailed information about a US county by its 5-digit FIPS code.
| Parameter | Type | Required | Description |
|---|---|---|---|
fips | string | required |
search_countiesSearch US counties by name (case-insensitive partial match).
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | |
limit | integer | optional | (default: 20) |
list_counties_by_stateList US counties in a given state, sorted by population descending.
| Parameter | Type | Required | Description |
|---|---|---|---|
state_code | string | required | |
limit | integer | optional | (default: 50) |
get_statesList all US states in the dataset with their county counts.
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") |