photon_autocomplete
Pack: photon · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/photon_autocomplete for the schema, then POST the same URL with its arguments for the data.
Address autocomplete: suggestions with id, one-line address, description, type and highlight offsets, filterable by city, country, postcode.
Tool description as the model sees it
Address autocomplete over OpenStreetMap data (Photon): give a partial street string and get up to limit suggestions, each with a stable id (OSM type + id, e.g. W432096036), the suggested address on one line, a description (place name, kind, area), a type (house, street, city, …), and highlight ranges showing where your input appears in the suggested address (empty when it does not appear literally). Optional filters: cityFilter, countriesFilter (ISO codes such as US, GB, or names) and postalOrZipFilter (prefix match). Photon cannot filter by city, country or postcode itself, so this tool applies those three to the returned rows and says so in the response; a filtered page can be short. Worldwide coverage, not a deliverability check.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | The partial street string typed so far, e.g. “1600 Pennsylvania Av” |
cityFilter | string | no | Keep only suggestions in this city (case-insensitive exact name). Applied by this tool after Photon answers. |
countriesFilter | string | no | ISO 3166-1 alpha-2 codes or country names, as an array or comma-separated string, e.g. [“US”,“CA”]. Applied by this tool after Photon answers. |
items | string | no | |
postalOrZipFilter | string | no | Keep only suggestions whose postcode starts with this (spaces and hyphens ignored). Applied by this tool after Photon answers. |
language | string | no | Language for place names (en, de, fr, …). Sent to Photon. |
limit | number | no | Suggestions to return, 1-20 (default 5) |
Example call
Arguments
{
"query": "1600 Pennsylvania Av",
"countriesFilter": [
"US"
],
"cityFilter": "Washington",
"limit": 3
}
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":"photon_autocomplete","arguments":{"query":"1600 Pennsylvania Av","countriesFilter":["US"],"cityFilter":"Washington","limit":3}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('photon_autocomplete', {
"query": "1600 Pennsylvania Av",
"countriesFilter": [
"US"
],
"cityFilter": "Washington",
"limit": 3
});
More examples
{
"query": "Unter den Linden 1",
"countriesFilter": "DE",
"postalOrZipFilter": "10",
"language": "de",
"limit": 3
}
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
reason | string | When found is false: no_suggestions (Photon had none) or filtered_out (Photon had rows, all removed by your filters) |
query | string | |
count | number | |
upstream_rows | number | Rows Photon returned before our filters |
suggestions | array | |
filters | object | |
highlight_note | string | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"reason": {
"type": "string",
"description": "When found is false: no_suggestions (Photon had none) or filtered_out (Photon had rows, all removed by your filters)"
},
"query": {
"type": "string"
},
"count": {
"type": "number"
},
"upstream_rows": {
"type": "number",
"description": "Rows Photon returned before our filters"
},
"suggestions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Stable id: OSM type letter + OSM id"
},
"address": {
"type": "string",
"description": "Suggested address on one line"
},
"description": {
"type": "string"
},
"type": {
"type": [
"string",
"null"
],
"description": "house, street, locality, city, district, county, state, country, ..."
},
"highlight": {
"type": "array",
"description": "Ranges of the input inside `address`; empty when no literal match",
"items": {
"type": "object",
"properties": {
"offset": {
"type": "number"
},
"length": {
"type": "number"
}
}
}
},
"osm_type": {
"type": [
"string",
"null"
]
},
"osm_id": {
"type": [
"number",
"null"
]
},
"housenumber": {
"type": [
"string",
"null"
]
},
"street": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"postcode": {
"type": [
"string",
"null"
]
},
"country": {
"type": [
"string",
"null"
]
},
"countrycode": {
"type": [
"string",
"null"
]
},
"latitude": {
"type": [
"number",
"null"
]
},
"longitude": {
"type": [
"number",
"null"
]
}
}
}
},
"filters": {
"type": "object",
"properties": {
"applied_by_us_after_upstream": {
"type": "array",
"items": {
"type": "string"
}
},
"server_side": {
"type": "array",
"items": {
"type": "string"
}
},
"note": {
"type": "string"
}
}
},
"highlight_note": {
"type": "string"
},
"source": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the photon pack
{
"mcpServers": {
"photon": {
"url": "https://gateway.pipeworx.io/photon/mcp"
}
}
}
See Getting Started for client-specific install steps.