fr_commune
Pack: france-geodata · 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/fr_commune for the schema, then POST the same URL with its arguments for the data.
French commune lookup (Etalab/INSEE commune register): INSEE code, postcodes, population, department, region, centre point and area. Look up by name or INSEE code, or pass lat+lon to find the commune containing a point. Example: “population of Lyon” -> 69123, 519,127.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | no | Commune name, e.g. “Lyon”. Returns the best matches. |
insee_code | string | no | 5-character INSEE code, e.g. “69123” (Corsica: “2A004”). |
lat | number | no | Latitude (WGS84); pair with lon to find the commune at a point. |
lon | number | no | Longitude (WGS84); pair with lat. |
limit | number | no | Max communes for a name search, 1-20 (default 5). |
Example call
Arguments
{
"name": "Lyon",
"limit": 3
}
curl
curl -X POST https://gateway.pipeworx.io/france-geodata/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fr_commune","arguments":{"name":"Lyon","limit":3}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('fr_commune', {
"name": "Lyon",
"limit": 3
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
source | string | |
count | number | |
communes | array |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"source": {
"type": "string"
},
"count": {
"type": "number"
},
"communes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"insee_code": {
"type": "string"
},
"postcodes": {
"type": "array",
"items": {
"type": "string"
}
},
"population": {
"type": "number"
},
"area_ha": {
"type": "number"
},
"centre": {
"type": "object",
"properties": {
"lon": {
"type": "number"
},
"lat": {
"type": "number"
}
},
"additionalProperties": true
},
"department": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": true
},
"region": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
}
},
"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 france-geodata pack
{
"mcpServers": {
"france-geodata": {
"url": "https://gateway.pipeworx.io/france-geodata/mcp"
}
}
}
See Getting Started for client-specific install steps.