geocode
Pack: geo · Endpoint: https://gateway.pipeworx.io/geo/mcp
Convert an address or place name to coordinates. Returns latitude, longitude, and formatted address. Use when you need map positions or spatial analysis.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Address or place name to geocode |
Example call
Arguments
{
"query": "1600 Pennsylvania Avenue, Washington DC"
}
curl
curl -X POST https://gateway.pipeworx.io/geo/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"geocode","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', {
"query": "1600 Pennsylvania Avenue, Washington DC"
});
More examples
{
"query": "Eiffel Tower, Paris"
}
Response shape
Always returns: results
| Field | Type | Description |
|---|---|---|
results | array | List of geocoding results |
Full JSON Schema
{
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "List of geocoding results",
"items": {
"type": "object",
"properties": {
"latitude": {
"type": "number",
"description": "Latitude coordinate"
},
"longitude": {
"type": "number",
"description": "Longitude coordinate"
},
"display_name": {
"type": "string",
"description": "Formatted address or place name"
},
"type": {
"type": "string",
"description": "OSM type of result"
}
},
"required": [
"latitude",
"longitude",
"display_name",
"type"
]
}
}
},
"required": [
"results"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"geo": {
"url": "https://gateway.pipeworx.io/geo/mcp"
}
}
}
See Getting Started for client-specific install steps.