GnistAI GnistAI
Log in

US County Data

US county-level data — population, area, FIPS codes, and county seats for ~200 US counties.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Geography

Data source: Curated dataset (US Census Bureau)

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

API REST API

API Root https://context.gnist.ai/rest/us-county/

5 endpoints available:

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

OpenAPI Spec  ·  Full API Docs

CLI 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_county
Get detailed information about a US county by its 5-digit FIPS code.
ParameterTypeRequiredDescription
fipsstringrequired
search_counties
Search US counties by name (case-insensitive partial match).
ParameterTypeRequiredDescription
querystringrequired
limitintegeroptional (default: 20)
list_counties_by_state
List US counties in a given state, sorted by population descending.
ParameterTypeRequiredDescription
state_codestringrequired
limitintegeroptional (default: 50)
get_states
List all US states in the dataset with their county counts.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related