datacommons_observation
Pack: datacommons · 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/datacommons_observation for the schema, then POST the same URL with its arguments for the data.
Get the value of one Google Data Commons statistical variable for one place: the latest value (default), the value at a date, or the whole time series. Each value names its original publisher (US Census, World Bank, Eurostat, CDC, …) and lists how alternate sources differ. Example: variable “Count_Person”, place “country/USA”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | |
variable | string | yes | Statistical variable dcid, e.g. Count_Person, Median_Income_Household (find with datacommons_find_variable) |
place | string | yes | Place dcid, e.g. country/USA, geoId/06, Earth (find with datacommons_find_place) |
date | string | no | LATEST (default), all (full series), or a date: 2019, 2019-06, 2019-06-30 |
limit | number | no | With date=all, max observations returned, most recent kept (default 50, max 500) |
Example call
Arguments
{
"variable": "Count_Person",
"place": "country/USA"
}
curl
curl -X POST https://gateway.pipeworx.io/datacommons/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"datacommons_observation","arguments":{"variable":"Count_Person","place":"country/USA"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('datacommons_observation', {
"variable": "Count_Person",
"place": "country/USA"
});
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 datacommons pack
{
"mcpServers": {
"datacommons": {
"url": "https://gateway.pipeworx.io/datacommons/mcp"
}
}
}
See Getting Started for client-specific install steps.