Skip to content

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

mcp.json
{
  "mcpServers": {
    "geocode": {
      "url": "https://geocodeai.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${GEOCODE_API_KEY}"
      }
    }
  }
}

Codex

~/.codex/config.toml
[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 geocode

Or 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.

ToolCost
search_boundariesFree
suggest_boundariesFree
get_boundary1 unit
export_boundary1 unit
reverse_boundaries1 unit
list_childrenFree
contains_points1 unit per 1,000 points (up to 10,000 per call)
union_boundaries1 unit per boundary (up to 50)
create_area50 units
get_accountFree
update_profileFree
get_usageFree
list_api_keysFree
create_api_keyFree
revoke_api_keyFree
get_email_preferencesFree
update_email_preferencesFree
list_orgsFree
list_membersFree
list_teamsFree
list_invitesFree
list_audit_logFree
save_file1 unit
list_filesFree
get_fileFree
update_fileFree
delete_fileFree
share_fileFree
unshare_fileFree
get_subscriptionFree
create_checkout_linkFree
get_billing_linkFree
list_feedbackFree
get_feedbackFree
list_my_feedbackFree
request_featureFree
report_issueFree
upvote_feedbackFree
remove_feedback_voteFree
comment_on_feedbackFree
list_reviewsFree
get_my_reviewFree
submit_reviewFree
get_pricingFree

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.