worldpop_stats_polygon
Pack: worldpop · Endpoint: https://gateway.pipeworx.io/worldpop/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/worldpop_stats_polygon for the schema, then POST the same URL with its arguments for the data.
Total population inside any polygon you draw, from WorldPop 100 m gridded population estimates (University of Southampton), for any year 2000-2020. Pass a GeoJSON Polygon or MultiPolygon in WGS84 and get the summed population count back. AUTHORITATIVE for “how many people live inside this boundary” at arbitrary geometry — a catchment, a flood extent, a service area, a proposed district — where census tables only answer for official administrative units. Keyless.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
geojson | object | yes | A GeoJSON geometry in WGS84 (lon, lat) — {“type”:“Polygon”,“coordinates”:[[[lon,lat],…]]} or a MultiPolygon. A Feature or FeatureCollection is unwrapped for you; the ring must be closed (first point repeated last). |
year | number | no | Year of the population surface, 2000-2020 (default 2020). |
dataset | string | no | WorldPop dataset id — “wpgppop” (population count, default) or “wpgpas” (age and sex structures). Call worldpop_datasets for the list. |
runasync | boolean | no | Return the task id immediately instead of waiting for the result. Default false — the tool polls until the job finishes (about 3-10 seconds). |
Example call
Arguments
{
"geojson": {
"type": "Polygon",
"coordinates": [
[
[
-0.14,
51.5
],
[
-0.1,
51.5
],
[
-0.1,
51.53
],
[
-0.14,
51.53
],
[
-0.14,
51.5
]
]
]
},
"year": 2020
}
curl
curl -X POST https://gateway.pipeworx.io/worldpop/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"worldpop_stats_polygon","arguments":{"geojson":{"type":"Polygon","coordinates":[[[-0.14,51.5],[-0.1,51.5],[-0.1,51.53],[-0.14,51.53],[-0.14,51.5]]]},"year":2020}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('worldpop_stats_polygon', {
"geojson": {
"type": "Polygon",
"coordinates": [
[
[
-0.14,
51.5
],
[
-0.1,
51.5
],
[
-0.1,
51.53
],
[
-0.14,
51.53
],
[
-0.14,
51.5
]
]
]
},
"year": 2020
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"worldpop": {
"url": "https://gateway.pipeworx.io/worldpop/mcp"
}
}
}
See Getting Started for client-specific install steps.