census_available_datasets
Pack: census · Endpoint: https://gateway.pipeworx.io/census/mcp
Discover Census datasets and their variables. Returns dataset names, descriptions, and variable codes (e.g., B25001_001E) for querying with other census tools.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | no | Census API key (not required for this endpoint but accepted for consistency) |
Example call
Arguments
{
"_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_available_datasets","arguments":{"_apiKey":"your-census-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('census_available_datasets', {
"_apiKey": "your-census-api-key"
});
Response shape
Always returns: total_housing_related, datasets
| Field | Type | Description |
|---|---|---|
total_housing_related | number | Count of housing-related datasets returned |
datasets | array | Housing-related Census datasets |
Full JSON Schema
{
"type": "object",
"properties": {
"total_housing_related": {
"type": "number",
"description": "Count of housing-related datasets returned"
},
"datasets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Dataset title"
},
"description": {
"type": "string",
"description": "Dataset description"
},
"vintage": {
"type": [
"number",
"null"
],
"description": "Dataset vintage year if available"
},
"identifier": {
"type": "string",
"description": "Dataset identifier code"
}
},
"required": [
"title",
"description",
"vintage",
"identifier"
]
},
"description": "Housing-related Census datasets"
}
},
"required": [
"total_housing_related",
"datasets"
]
}
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.