geocode_forward
Pack: mapbox · Endpoint: https://gateway.pipeworx.io/mapbox/mcp
“What are the coordinates of [address]” / “geocode [place]” / “lat lng for [location]” / “find [city] on a map” — convert a street address, city, or place name to GPS coordinates (longitude / latitude) using Mapbox’s global geocoder. Works on any street, intersection, POI, or administrative area worldwide. Example: geocode_forward({ query: “1600 Pennsylvania Ave, Washington DC” }).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | |
country | string | no | |
types | string | no | |
proximity | string | no | |
bbox | string | no | |
autocomplete | boolean | no | |
limit | number | no | |
language | string | no | |
fuzzyMatch | boolean | no |
Example call
Arguments
{
"query": "1600 Pennsylvania Avenue, Washington DC"
}
curl
curl -X POST https://gateway.pipeworx.io/mapbox/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"geocode_forward","arguments":{"query":"1600 Pennsylvania Avenue, Washington DC"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('geocode_forward', {
"query": "1600 Pennsylvania Avenue, Washington DC"
});
More examples
{
"query": "Eiffel Tower",
"country": "FR",
"limit": 5,
"language": "en"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Mapbox Geocoding API response for forward geocoding"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"mapbox": {
"url": "https://gateway.pipeworx.io/mapbox/mcp"
}
}
}
See Getting Started for client-specific install steps.