Ban Fr

v0.2.1
io.github.pipeworx-io/ban-fr Checked 2 days ago Published 1 month ago

Base Adresse Nationale (BAN) MCP — France's official keyless geocoding API…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

geocode

Forward-geocode a French address, street, locality or commune. Returns scored GeoJSON matches (score 0-1) with label, coordinates, postcode, citycode (INSEE) and context. France only.

ParameterTypeDescription
q *stringFree-text query, e.g. "8 bd du port" or "rue de la paix paris".
autocompletebooleanTreat q as a partial/autocomplete prefix (default false).
citycodestringFilter by INSEE commune code, e.g. "95127".
latnumberLatitude to bias/prioritise results geographically (pair with lon).
limitnumberMax results (default 5, server caps at 20).
lonnumberLongitude to bias/prioritise results geographically (pair with lat).
postcodestringFilter by 5-digit postal code, e.g. "95000".
typestringRestrict to a feature type.

reverse_geocode

Reverse-geocode a coordinate to the nearest French address/feature. Returns scored GeoJSON matches with label, postcode, citycode (INSEE), context and distance (metres). France only.

ParameterTypeDescription
lat *numberLatitude (WGS84).
lon *numberLongitude (WGS84).
typestringRestrict to a feature type.

search_municipality

Look up a French commune (municipality) by name to resolve its INSEE citycode, postcode, population and centre coordinates. Shortcut for geocode with type=municipality.

ParameterTypeDescription
q *stringCommune name, e.g. "montpellier".
limitnumberMax results (default 5).