Census ACS MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Census ACS MCP Server
MCP server for querying Census American Community Survey data.
Supports two transport modes:
Stdio - Local CLI, for use with Claude Desktop
SSE - Remote HTTP server, for hosting and sharing with others
Prerequisites
Node.js 24+ (LTS)
DuckDB production databases from census_acs_duckdb_importer
Related MCP server: census-mcp-server
Installation
npm install
npm run buildDatabase Setup
Create a symlink to the database directory:
ln -s /path/to/census_acs_duckdb_importer/output dbThe db/ directory should contain:
census_acs.production.json_summaries.dbcensus_acs.production.percentiles.db
Configuration
Environment variables:
Variable | Default | Description |
|
| Transport mode: |
|
| HTTP port (SSE mode only) |
|
| Path to database directory |
|
| DuckDB memory limit |
|
| DuckDB parallel threads |
|
| Query timeout in milliseconds |
Running the Server
Local Mode (Stdio)
For use with Claude Desktop or other local MCP clients:
npm run startRemote Mode (SSE)
For hosting as an HTTP server:
CENSUS_ACS_TRANSPORT=sse npm run startOr with a custom port:
CENSUS_ACS_TRANSPORT=sse CENSUS_ACS_PORT=8080 npm run startThe server will be available at http://localhost:3000/sse.
Client Configuration
Claude Desktop (Local/Stdio)
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"census-acs": {
"command": "node",
"args": ["/path/to/census_acs_mcp/dist/index.js"]
}
}
}Remote SSE Server
Connect MCP clients to: http://your-server:3000/sse
Deployment (SSE Mode)
For remote hosting:
Deploy to a server with the databases
Set environment variables:
export CENSUS_ACS_TRANSPORT=sse export CENSUS_ACS_PORT=3000Run the server:
npm run startUsers connect via the SSE endpoint URL
Available Tools
Location & Geography
lookup_location- Get census data for lat/lng coordinatessearch_locations- Search for locations by namelist_geographies- List all geographies at a summary level (states, counties, etc.)
Data Query
rank_areas_by_metric- Rank areas by metric or computed rate (supports compound metrics)get_area_summary- Get full summary for a geographic areacompare_areas- Compare two geographic areas
Discovery
list_topics- Browse available data categoriessearch_data- Search table metadata by keyworddescribe_table- Get details about a specific ACS tablelist_universes- List all data universes (populations)list_population_groups- List available population group codes (race/ethnicity)
Exploration
get_interesting_facts- Find outlier statistics for an area
Documentation
Document | Description |
Architecture overview, database schema, geographic levels, and population groups | |
Detailed specifications for all tools, parameters, and return types | |
Technical implementation details, SQL patterns, and error handling |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query US Census Bureau data: demographics, economics, and housing statistics.
Population, income, poverty, education, housing, and commuting from the US Census ACS
Search and query government open-data portals (Socrata SODA API).
Query FDA data on drugs, food, devices, and recalls via openFDA. STDIO or Streamable HTTP.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA production-grade MCP server for querying U.S. Census Bureau data (ACS 5-Year and Decennial) with tools for geographic fuzzy matching, variable search, and batched data retrieval, backed by a PostgreSQL cache for performance.-
- AlicenseNot gradedqualityBmaintenanceMCP server to query U.S. Census Bureau data, variables, and geography through 7 tools supporting dataset discovery, variable search, geography resolution, and data queries with suppression code decoding.216 npm3Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides access to official U.S. Census Bureau data, including decennial census, American Community Survey, economic census, population estimates, and housing characteristics, across geographic levels from nation to block group. Enables natural-language queries and direct tool calls for demographic and housing analysis.90 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables querying US Census TIGERweb geographic layers such as tracts, blocks, districts, and places, with tools to list layers, run ArcGIS queries, and find every geography containing a given coordinate.69 npmMIT