datacommons_find_variable
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_find_variable for the schema, then POST the same URL with its arguments for the data.
Search Google Data Commons statistical variables by plain-language indicator, e.g. “median household income” -> Median_Income_Household, “unemployment rate” -> UnemploymentRate_Person. Returns variable ids with names and a match score. Use the id as variable in datacommons_observation.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | |
query | string | yes | What you want to measure, e.g. “life expectancy”, “CO2 emissions per capita” |
limit | number | no | Max variables (default 10, max 25) |
Example call
Arguments
{
"query": "median household income"
}
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_find_variable","arguments":{"query":"median household income"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('datacommons_find_variable', {
"query": "median household income"
});
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.