MCP server
A remote MCP server (Streamable HTTP) whose tools are the API's ops, with descriptions written for a model choosing a tool.
Endpoint: https://geocodeai.dev/mcp. Authenticate with an API key header, or with OAuth at https://geocodeai.dev/mcp?auth=required for apps that sign you in. Without either, the public tools still work.
Claude Code
claude mcp add --transport http geocode https://geocodeai.dev/mcp \
--header "Authorization: Bearer $GEOCODE_API_KEY"Or install the plugin, which adds the server plus skills, and signs you in in the browser on first use.
ChatGPT and Claude
Geocode AI is an official app in both. Add it from our listing in ChatGPT's directory or Claude's directory, approve the sign-in page, and the tools appear in the chat. There is no key to paste. Name Geocode AI in your first message so the app picks our tools; boundaries and areas come back drawn on a map.
Starter prompts (each link opens a new chat with the prompt filled in):
- Use Geocode AI to show the boundary of Berlin, Germany, on a map. ChatGPT · Claude
- Use Geocode AI to list the districts of Berlin and draw them on a map. ChatGPT · Claude
- Use Geocode AI to find which city, county and state contain 40.7484, -73.9857, and show them on a map. ChatGPT · Claude
- Use Geocode AI to draw the San Francisco Bay Area counties, excluding the City of San Jose, on a map. ChatGPT · Claude
On a workspace that only allows custom connectors, add one with the URL https://geocodeai.dev/mcp?auth=required instead.
Cursor, Windsurf and JSON configs
{
"mcpServers": {
"geocode": {
"url": "https://geocodeai.dev/mcp",
"headers": {
"Authorization": "Bearer ${GEOCODE_API_KEY}"
}
}
}
}Codex
[mcp_servers.geocode]
url = "https://geocodeai.dev/mcp"
http_headers = { "Authorization" = "Bearer geo_…" }To sign in with your Geocode AI account instead of a key, add the server and log in once. Codex does not start the sign-in by itself; until you log in, only the free tools work:
codex mcp add geocode --url https://geocodeai.dev/mcp
codex mcp login geocodeOr run npx @meterapp/geocode install to write the config for Claude Code, Codex and Cursor in one go.
stdio (any host)
For hosts that only launch a command, the CLI is also a stdio MCP server with the same tools:
{
"mcpServers": {
"geocode": {
"command": "npx",
"args": [
"-y",
"@meterapp/geocode",
"mcp"
],
"env": {
"GEOCODE_API_KEY": "geo_…"
}
}
}
}Tools
One tool per op, same name and input as the REST API. Read-only tools carry readOnlyHint, so hosts can run them without asking.
| Tool | Cost |
|---|---|
search_boundaries | Free |
suggest_boundaries | Free |
get_boundary | 1 unit |
export_boundary | 1 unit |
reverse_boundaries | 1 unit |
list_children | Free |
contains_points | 1 unit per 1,000 points (up to 10,000 per call) |
union_boundaries | 1 unit per boundary (up to 50) |
create_area | 50 units |
get_account | Free |
update_profile | Free |
get_usage | Free |
list_api_keys | Free |
create_api_key | Free |
revoke_api_key | Free |
get_email_preferences | Free |
update_email_preferences | Free |
list_orgs | Free |
list_members | Free |
list_teams | Free |
list_invites | Free |
list_audit_log | Free |
save_file | 1 unit |
list_files | Free |
get_file | Free |
update_file | Free |
delete_file | Free |
share_file | Free |
unshare_file | Free |
get_subscription | Free |
create_checkout_link | Free |
get_billing_link | Free |
list_feedback | Free |
get_feedback | Free |
list_my_feedback | Free |
request_feature | Free |
report_issue | Free |
upvote_feedback | Free |
remove_feedback_vote | Free |
comment_on_feedback | Free |
list_reviews | Free |
get_my_review | Free |
submit_review | Free |
get_pricing | Free |
Things to ask
- “Get the boundary of Kreuzberg as GeoJSON and save it to kreuzberg.geojson.”
- “Which county and city is 37.80, −122.27 in?”
- “List the counties of Colorado with their populations.”
- “Build one polygon for Alameda and Contra Costa counties minus Oakland.”
- “Which of the stores in stores.csv are inside Berlin?”
The server's instructions tell the model the workflow (search, then get; never guess an id; batch points) and what each call costs. A machine-readable server card is at /.well-known/mcp.json.