search
Pack: photon · Endpoint: https://gateway.pipeworx.io/photon/mcp
Forward geocode — place name → coordinates. Strong on partial / autocomplete-style queries.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Free-text place name / address |
lat | number | no | Latitude bias center |
lon | number | no | Longitude bias center |
location_bias_scale | number | no | Strength of lat/lon bias (default 0.2) |
zoom | number | no | Zoom level for bias (0-18) |
limit | number | no | 1-50 (default 5) |
lang | string | no | Language for the response (en, de, fr, …) |
osm_tag | string | no | OSM tag filter (e.g. “amenity:pharmacy”) |
layer | string | no | house | street | locality | city | district | county | state | country |
bbox | string | no | Bounding box: “min_lon,min_lat,max_lon,max_lat” |
Example call
Arguments
{
"query": "Eiffel Tower Paris"
}
curl
curl -X POST https://gateway.pipeworx.io/photon/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"Eiffel Tower Paris"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search', {
"query": "Eiffel Tower Paris"
});
More examples
{
"query": "cafe",
"lat": 48.8566,
"lon": 2.3522,
"location_bias_scale": 0.5,
"limit": 10,
"osm_tag": "amenity:cafe",
"lang": "en"
}
Response shape
| Field | Type | Description |
|---|---|---|
features | array | Array of geocoding results |
Full JSON Schema
{
"type": "object",
"properties": {
"features": {
"type": "array",
"description": "Array of geocoding results",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "GeoJSON type (Feature)"
},
"geometry": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Geometry type (Point)"
},
"coordinates": {
"type": "array",
"description": "Longitude and latitude",
"items": {
"type": "number"
}
}
}
},
"properties": {
"type": "object",
"description": "Place properties",
"properties": {
"name": {
"type": "string",
"description": "Place name"
},
"osm_id": {
"type": "integer",
"description": "OpenStreetMap ID"
},
"osm_type": {
"type": "string",
"description": "OSM object type (node, way, relation)"
},
"extent": {
"type": "array",
"description": "Bounding box extent if available",
"items": {
"type": "number"
}
},
"country": {
"type": "string",
"description": "Country name"
},
"city": {
"type": "string",
"description": "City name"
},
"state": {
"type": "string",
"description": "State or province"
},
"postcode": {
"type": "string",
"description": "Postal code"
},
"street": {
"type": "string",
"description": "Street name"
},
"district": {
"type": "string",
"description": "District name"
}
}
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"photon": {
"url": "https://gateway.pipeworx.io/photon/mcp"
}
}
}
See Getting Started for client-specific install steps.