census_acs
Pack: census · Endpoint: https://gateway.pipeworx.io/census/mcp
Search American Community Survey data by geography and variable code (e.g., B25077_001E for median home value). Returns housing ownership rates, rental costs, vacancy rates, and home values.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
year | number | no | Survey year (default 2022). ACS 5-year estimates available from 2009 onward. |
variables | string | yes | Comma-separated variable codes to retrieve (e.g., “NAME,B25001_001E,B25077_001E”). Always include NAME for place names. |
geography | string | yes | Geographic level and filter using Census “for” syntax (e.g., “state:06” for California, “county:” for all counties, “state:” for all states, “county:037&in=state:06” for LA County). |
_apiKey | string | yes | Census API key |
Example call
Arguments
{
"variables": "NAME,B25001_001E,B25077_001E",
"geography": "state:06",
"year": 2022,
"_apiKey": "your-census-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/census/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"census_acs","arguments":{"variables":"NAME,B25001_001E,B25077_001E","geography":"state:06","year":2022,"_apiKey":"your-census-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('census_acs', {
"variables": "NAME,B25001_001E,B25077_001E",
"geography": "state:06",
"year": 2022,
"_apiKey": "your-census-api-key"
});
More examples
{
"variables": "NAME,B25003_002E,B25003_003E",
"geography": "county:037&in=state:06",
"_apiKey": "your-census-api-key"
}
Response shape
Always returns: year, variables, geography, results
| Field | Type | Description |
|---|---|---|
year | number | Survey year queried |
variables | array | Variable codes requested |
geography | string | Geographic filter used |
results | array | Array of objects with Census data |
Full JSON Schema
{
"type": "object",
"properties": {
"year": {
"type": "number",
"description": "Survey year queried"
},
"variables": {
"type": "array",
"items": {
"type": "string"
},
"description": "Variable codes requested"
},
"geography": {
"type": "string",
"description": "Geographic filter used"
},
"results": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Census data rows with variable codes as keys"
},
"description": "Array of objects with Census data"
}
},
"required": [
"year",
"variables",
"geography",
"results"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"census": {
"url": "https://gateway.pipeworx.io/census/mcp"
}
}
}
See Getting Started for client-specific install steps.