Geocode + reverse geocode
geocode3 free MCP calls per day (all tools together), then $0.0015 USDC via x402 or card credits (paid in-band: params._meta["x402/payment"]). Geocoding with OpenStreetMap Nominatim: address or place name -> coordinates (up to 5 matches, optional country filter), or lat+lon -> structured address (reverse). Structured address fields, country code, bounding box, OSM id. Cached; ODbL attribution included. When to use: Use geocode to turn an address or place into coordinates, or coordinates into an address (OpenStreetMap).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | address or place name (forward geocoding) | |
| lat | No | latitude for reverse geocoding (with lon) | |
| lon | No | longitude for reverse geocoding (with lat) | |
| lang | No | result language, default en | |
| limit | No | 1-5 matches, default 1 | |
| country | No | ISO 3166-1 alpha-2 filter, e.g. dk or us,ca |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| count | No | ||
| query | No | ||
| results | No | ||
| sources | No | ||
| attribution | No |