# Ban Fr [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/pipeworx-io/mcp-ban-fr  
**GitHub Stars:** 0  
**npm Downloads (last month):** 430  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ban-fr

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

## Tools
Capabilities this server exposes over MCP:

- **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.
- **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.
- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ban-fr": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-ban-fr"]
  }
}
```

## Documentation

## What Ban Fr does

Ban Fr exposes France’s official Base Adresse Nationale (BAN) API through MCP. Its scope is limited to French addresses, streets, localities, and communes. Results use GeoJSON FeatureCollections, with each match carrying a score from 0 to 1 so clients can distinguish stronger matches from weaker ones.

The server is useful when an agent needs to turn a French place description into coordinates, identify the administrative code for a commune, or resolve a coordinate to a nearby address. It is an independent integration and is not affiliated with, endorsed by, or published by the upstream provider.

## How it works

A hosted MCP endpoint is available at `https://gateway.pipeworx.io/ban-fr/mcp`. MCP clients connect to that URL and can call the Ban Fr tools through the Pipeworx gateway. The same gateway also exposes shared Pipeworx meta-tools on the hosted pack endpoint, so the tool list can contain more entries than the three Ban Fr-specific tools. `ask_pipeworx` can route questions across the wider gateway catalog.

The gateway also provides a full endpoint at `https://gateway.pipeworx.io/mcp`. Both endpoints use the same gateway and data sources; the pack endpoint lists Ban Fr tools directly, while the full endpoint lists the broader catalog directly.

For clients without MCP support, individual tools can be called through the gateway’s HTTP API. The package `@pipeworx/mcp-ban-fr` provides a local stdio bridge that forwards requests to the hosted endpoint, so it still requires network access and has no offline mode.

## Setup and configuration

Add the hosted endpoint to an MCP client configuration:

```json
{
  "mcpServers": {
    "ban-fr": {
      "url": "https://gateway.pipeworx.io/ban-fr/mcp"
    }
  }
}
```

The local option starts the bridge with `npx`:

```json
{
  "mcpServers": {
    "ban-fr": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-ban-fr"]
    }
  }
}
```

Anonymous local calls are capped at 50 per day. A free Pipeworx account increases the allowance to 200 calls per day; configure its token as `PIPEWORX_API_KEY`. The key is sent as a Bearer token, and calls are metered and billed in the same way as hosted connections. Set `PIPEWORX_META_TOOLS=1` if the local bridge should also list the shared gateway tools.

HTTP clients can call a tool directly, for example by posting JSON to `https://gateway.pipeworx.io/v1/tools/ban_fr_geocode`. The gateway requires network access. When using an HTTPS proxy, Node’s built-in `fetch` may require `NODE_USE_ENV_PROXY=1` on supported Node releases.

## Tools and capabilities

- `geocode` accepts a French address, street, locality, or commune and returns scored matches with labels, coordinates, postcodes, INSEE city codes, and context.
- `reverse_geocode` accepts coordinates and finds nearby French addresses or features. Results include labels, postcodes, INSEE city codes, context, scores, and distance in metres.
- `search_municipality` finds a French commune by name and returns its INSEE city code, postcode, population, and centre coordinates. It is a shortcut for geocoding with the municipality type.

All three tools are France-only. Forward and reverse results expose GeoJSON features, and higher scores indicate better matches.

## Limitations and notes

The service covers French geographic data rather than general worldwide geocoding. Hosted connections include shared Pipeworx meta-tools alongside the pack tools, and the exact scope is reported by the MCP `initialize` response. The local npm bridge forwards calls to the gateway instead of running a local geocoder. Ban Fr is distributed under the MIT license.

_Full upstream README: https://allmcps.com/mcp/ban-fr/readme_

