MCP server for querying U.S. Census Bureau datasets, variables, and geography data. It supports dataset discovery, variable search, geography resolution, data queries, and comparing geographies over STDIO or Streamable HTTP.
From the registry: Query U.S. Census Bureau data, variables, and geography via MCP.
Please install the `census-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Node.js** — Node.js v24 or higher is required for the preferred npx-based install path. (https://nodejs.org/)
- **Create a Census API key** — Register a free Census API key. This is required for data-query tools (`census_query_data`, `census_compare_geographies`) and practically required for full default functionality, though some metadata/geography tools work without it. (https://api.census.gov/data/key_signup.html)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","census-mcp-server@latest"]
- required environment variables:
- `MCP_TRANSPORT_TYPE`: Transport type for the server. Use `stdio` for MCP client configuration. (example: `stdio`)
- `CENSUS_API_KEY`: Census API key used for Census data query tools; practically required for normal server use. (example: `<your-census-api-key>`)
- optional environment variables:
- `MCP_LOG_LEVEL`: Log level for server logging (`debug`, `info`, `notice`, `warning`, `error`). (example: `info`)
- `CENSUS_DEFAULT_YEAR`: Default Census vintage year when no year is specified. (example: `<year>`)
- `CENSUS_VARIABLE_CACHE_TTL_HOURS`: Hours to cache variables metadata in memory per dataset and year. (example: `<hours>`)
- `MCP_HTTP_PORT`: Port for HTTP mode; not needed for stdio mode. (example: `<port>`)
- `MCP_AUTH_MODE`: Authentication mode for the server (`none`, `jwt`, or `oauth`). (example: `<auth-mode>`)
- `OTEL_ENABLED`: Enable OpenTelemetry instrumentation. (example: `<true-or-false>`)
Note: README also documents Streamable HTTP mode, but the provided portable installation/config example is stdio via npx. HTTP is started separately by setting `MCP_TRANSPORT_TYPE=http` and running the server locally; the README does not provide a canonical client-side HTTP config snippet beyond noting the endpoint path `/mcp`.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.CENSUS_API_KEYrequiredAPI key required for Census data queries and geography-comparison queries.Meta Ads MCP (Facebook + Instagram) - analyze performance, manage budgets, pause campaigns.