loading…
Search for a command to run...
loading…
Enables access to U.S. Census Bureau data including demographics, population, income, and housing statistics. Users can query specific variables, search dataset
Enables access to U.S. Census Bureau data including demographics, population, income, and housing statistics. Users can query specific variables, search datasets, and retrieve geographic FIPS codes across various surveys like the American Community Survey and Decennial Census.
Access U.S. Census Bureau data including demographics, population, income, housing, and more.
acs/acs1) - Areas with 65,000+ populationacs/acs5) - All areas, more reliable for small populationsdec/pl) - Official population counts every 10 years{
"census": {
"command": "node",
"args": ["/path/to/census-api/dist/index.js"],
"env": {
"CENSUS_API_KEY": "your-api-key"
}
}
}
queryFetch Census data with full control over variables and geography.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year (e.g., "2022") |
| dataset | Yes | Dataset path (e.g., "acs/acs1", "acs/acs5", "dec/pl") |
| variables | Yes | Comma-separated variable codes (e.g., "NAME,B19013_001E") |
| forClause | Yes | Geography to fetch (e.g., "state:", "county:", "state:06") |
| inClause | No | Parent geography for nested queries (e.g., "state:06" when getting counties) |
Example: Get median household income for all states
year: "2022"
dataset: "acs/acs5"
variables: "NAME,B19013_001E"
forClause: "state:*"
list_datasetsList available Census datasets for a given year.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Year to list datasets for |
list_variablesSearch for variables in a dataset. Useful for finding the right variable codes.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year |
| dataset | Yes | Dataset path |
| search | No | Keyword to filter (e.g., "income", "population") |
| limit | No | Max results (default 50) |
Example: Find income-related variables
year: "2022"
dataset: "acs/acs5"
search: "income"
list_geographiesList available geographic levels for a dataset.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year |
| dataset | Yes | Dataset path |
get_fipsGet FIPS codes for states, counties, or other geographies.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year |
| dataset | Yes | Dataset path |
| geography | Yes | Level (e.g., "state", "county") |
| inClause | No | Parent geography filter |
Example: Get all county FIPS codes in California
year: "2022"
dataset: "acs/acs5"
geography: "county"
inClause: "state:06"
| Variable | Description |
|---|---|
| B01003_001E | Total Population |
| B19013_001E | Median Household Income |
| B25077_001E | Median Home Value |
| B23025_005E | Unemployed Population |
| B15003_022E | Bachelor's Degree holders |
| B25064_001E | Median Gross Rent |
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"census-api-mcp-server": {
"command": "npx",
"args": []
}
}
}