mcp-french-open-data
Provides tools for geocoding French addresses and reverse geocoding via the IGN Géoplateforme (BAN) API, returning ranked matches with postcode, INSEE code, score, coordinates, and nearest addresses with distances.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-french-open-data What's the address for 10 rue de la Paix, Paris?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-french-open-data
Français · English
An MCP server that gives AI assistants (Claude, Cursor, ChatGPT, …) typed, read-only access to French public open data. It covers addresses, companies and communes. All the APIs it wraps are free and keyless.

It is a small but complete reference implementation:
Tools: 5 read-only tools with validated input (zod) and descriptions written for models.
Transports: stdio, plus stateless Streamable HTTP with API-key auth.
Operations: structured JSON logs on stderr, upstream timeouts, readable error mapping, and polite per-API rate limiting.
Tests: unit tests with mocked HTTP, protocol tests through the official SDK client, and an opt-in live smoke test.
Tools
Tool | What it does | Upstream |
| Geocodes a free-text French address. Returns ranked matches with postcode, INSEE code, score and coordinates. | IGN Géoplateforme geocoding (BAN) |
| Finds the nearest addresses to a lat/lon, with their distance in metres. | IGN Géoplateforme geocoding (BAN) |
| Searches companies by name, address, leader or SIREN/SIRET, with postcode, département, NAF and active-only filters. | API Recherche d'entreprises (SIRENE/RNE) |
| Returns one company by SIREN: legal form, VAT number, head office, leaders and published revenue/net income. | API Recherche d'entreprises |
| Lists communes by name, postcode or département, with INSEE code, postcodes and population. | geo.api.gouv.fr |
Every tool is annotated readOnlyHint: true. Upstream failures come back as tool errors (isError: true) with a readable message, for example Recherche d'entreprises rate limit reached; retry after 5 s.. They never surface as raw stack traces.
Upstream APIs and limits
API | Base URL | Published limit | This server |
| 50 req/s per IP | ≤ 40 req/s | |
| 7 req/s per IP | ≤ 5 req/s | |
| — | ≤ 20 req/s |
The BAN address API at api-adresse.data.gouv.fr was retired in January 2026 and replaced by the IGN Géoplateforme service, which this server uses. The limits are applied per process. Company data excludes non-public ("non-diffusible") entities. Leaders' birth dates, which the upstream returns, are not passed on.
Related MCP server: French Open Data & IGN
Install and run
Requires Node.js ≥ 20.
git clone https://github.com/maelguimet/mcp-french-open-data.git
cd mcp-french-open-data
npm ci
npm run build
# stdio (for local clients such as Claude Desktop or Cursor)
node dist/index.js
# Streamable HTTP on http://127.0.0.1:3000/mcp
export MCP_API_KEY="$(openssl rand -hex 32)"
npm run start:httpTry it without an AI client: npm run demo connects the bundled SDK client over stdio and calls every tool. Use npm run demo -- --http http://127.0.0.1:3000/mcp for HTTP; it reads MCP_API_KEY. The real output is in docs/demo.md.
With Docker:
docker build -t mcp-french-open-data .
docker run --rm -p 3000:3000 -e MCP_API_KEY -e ALLOWED_HOSTS=localhost,127.0.0.1 mcp-french-open-dataClient configuration
Claude Desktop (stdio)
Edit claude_desktop_config.json. On macOS it is in ~/Library/Application Support/Claude/; on Windows, in %APPDATA%\Claude\.
{
"mcpServers": {
"french-open-data": {
"command": "node",
"args": ["/absolute/path/to/mcp-french-open-data/dist/index.js"]
}
}
}Cursor
Edit ~/.cursor/mcp.json, or .cursor/mcp.json in a project. You can use stdio:
{
"mcpServers": {
"french-open-data": {
"command": "node",
"args": ["/absolute/path/to/mcp-french-open-data/dist/index.js"]
}
}
}or the HTTP server with the API key:
{
"mcpServers": {
"french-open-data": {
"url": "http://127.0.0.1:3000/mcp",
"headers": { "Authorization": "Bearer ${env:MCP_API_KEY}" }
}
}
}ChatGPT
ChatGPT only connects to remote MCP servers, through a public HTTPS URL or OpenAI's Secure MCP Tunnel. It cannot use a local stdio server. Its connection settings offer OAuth or No authentication; they don't offer a custom API key header. So:
Deploy the HTTP server behind HTTPS, for example with the Docker image behind a reverse proxy. Set
ALLOWED_HOSTSto your domain.Because the data is public and every tool is read-only, you can start it with
MCP_AUTH=none(no key). This is an explicit opt-in; without it, the server refuses to start with no key.In ChatGPT, open Plugins → + → Add custom MCP server. Enter
https://your-domain/mcp, choose No authentication, acknowledge the warning and select Create as a plugin. Then install the plugin.
For the OpenAI Responses API, use an mcp tool with server_url set to your public URL. The authorization value is sent as a bearer token, so the API key should work there. See the OpenAI MCP docs. The menu names are taken from those docs (October 2026) and may change.
Environment variables
Variable | Default | Purpose |
|
|
|
| — | Required for HTTP; at least 16 characters. Accepted as |
| — | Set to |
|
| HTTP bind address. |
| — | Comma-separated |
|
|
|
| public endpoints | Override the upstreams, e.g. for a proxy or cache. |
See .env.example.
Security
Authentication: the HTTP transport requires an API key by default. Keys are compared in constant time (SHA-256 digests compared with
crypto.timingSafeEqual). Requests without a valid key get401and aWWW-Authenticateheader. stdio needs no key, because it only talks to the process that launched it.Statelessness: HTTP is stateless. Each request gets a fresh server and transport, so clients share no state.
Binding: by default the server binds to
127.0.0.1, with the SDK's DNS-rebinding protection. On0.0.0.0, put it behind TLS and setALLOWED_HOSTS.Scope: every tool is read-only over public data. No credentials for any upstream are stored or needed.
Validation and logging: inputs are validated before any network call (e.g. a SIREN must have 9 digits). Logs record the tool, the upstream status and the latency, never the API key.
Keep
.envout of version control. It is in.gitignore.
Development
npm run lint # ESLint (typescript-eslint)
npm run typecheck # tsc on src, tests and scripts
npm test # vitest: mocked HTTP + MCP protocol tests (no network)
npm run test:live # opt-in smoke test against the real APIs (LIVE=1)
npm run build # compile to dist/.github/workflows/ci.yml runs lint, typecheck, tests and build on Node 20 and 22.
License
MIT © 2026 Maël Guimet. Data comes from French public services under their open licences: Licence Ouverte / Etalab 2.0 for BAN, SIRENE and geo.api.gouv.fr.
Available Tools
5 toolsget_companyGet a company by SIRENARead-only
Fetch one French company by its 9-digit SIREN: legal form, VAT number, creation and closure dates, head office, leaders and published yearly revenue/net income.
Inputs: siren (required).
list_communesList French communesARead-only
Look up French communes by name, postcode or département (geo.api.gouv.fr). Returns INSEE code, postcodes, département, région and population. Give at least one filter.
Inputs: name, limit, postcode, departement.
reverse_geocodeReverse geocode a pointARead-only
Find the nearest French addresses to a latitude/longitude (WGS84). Returns addresses with their distance in metres. Coverage: France including overseas départements.
Inputs: lat (required), lon (required), limit.
search_addressSearch French addressesARead-only
Geocode a free-text French address with the national address base (BAN, via the IGN Géoplateforme). Returns ranked matches with label, postcode, city, INSEE code, relevance score (0-1) and WGS84 coordinates. Use this to normalise or locate an address.
Inputs: query (required), type, limit, citycode, +1 more.
search_companySearch French companiesARead-only
Search the French company register (SIRENE/RNE via API Recherche d'entreprises) by name, address, leader name or SIREN/SIRET. Returns SIREN, name, status, NAF activity code, head office and establishment counts. Follow up with get_company for details.
Inputs: query (required), naf, page, per_page, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: reverse_geocode (coords→address) vs search_address (text→coords) are opposite directions, and get_company (fetch by SIREN) vs search_company (search register) are cleanly separated by lookup versus discovery. list_communes is a separate administrative resource entirely. No overlap or confusion.
All five names follow a strict verb_noun snake_case pattern: reverse_geocode, get_company, search_address, search_company, list_communes. Verbs (reverse, get, search, list) are standard and predictable, and resource nouns are consistent.
Five tools is well-scoped for a French open-data server covering addresses, companies, and communes. Each tool earns its place with no redundancy, and the surface is neither thin nor bloated.
The set covers forward and reverse geocoding, company search and detail retrieval, and commune lookup, forming a solid lifecycle for the domain. Minor gaps exist (e.g. no establishment/SIRET-level lookup or batch geocoding), but agents can work around these via the existing tools.
Related MCP Connectors
French addresses, geocoding, routing, companies, catchment stats & email checks (BAN, INSEE, OSM).
Independent platform exposing French official public territorial data through read-only MCP tools.
Search 2.19M French street records, IRIS-level amenities and commune-level risk codes.
French public registers: companies (SIRENE, BODACC) and real estate (cadastre, DVF, DPE, risks).
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides spatial context and geographic data access for LLMs through France's Géoplateforme services, including geocoding, altitude queries, administrative boundaries, cadastral data, and vector data exploration.1064 npm32MIT
- FlicenseNot gradedqualityCmaintenanceProvides access to French public data through data.gouv.fr, IGN cartographic services (maps, tiles, geographic data), address geocoding, and administrative divisions with demographic information.6-
- AlicenseNot gradedqualityCmaintenanceEnables point and radius queries against live French public geodata, covering commune register details and population, nearby building footprints with attributes, CORINE land-cover class at a location, and recorded flood-risk zones. All lookups are proxied per request with no stored copies.52 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only querying of the UK public register through task-shaped tools with concise, LLM-friendly outputs and next-step hints. Supports local stdio and hosted streamable HTTP with bearer-token authentication while limiting personal data exposure.MIT