Back to Home
uscensusbureau icon

us-census-bureau-data-api-mcp

Verified Safe

by uscensusbureau

Overview

This MCP server provides a standardized client-server interface to query and interact with various U.S. Census Bureau data APIs, allowing AI assistants to access demographic and geographic information.

Installation

Run Command
docker compose --profile prod up --build -d && npm run seed:prod

Environment Variables

  • CENSUS_API_KEY
  • DATABASE_URL

Security Notes

The server uses environment variables for `CENSUS_API_KEY` and `DATABASE_URL`, which is good practice. However, `DATABASE_URL` has a hardcoded default (`postgresql://mcp_user:mcp_pass@localhost:5432/mcp_db`) that is a critical security risk if not overridden in a production environment. Additionally, the `SeedRunner`'s `fetchFromApi` method logs the full API URL, which includes the `CENSUS_API_KEY` as a query parameter, making it visible in logs if not properly redacted.

Similar Servers

Stats

Interest Score44
Security Score5
Cost ClassHigh
Avg Tokens50000
Stars34
Forks10
Last Update2025-12-05

Tags

Census APIData AccessGeographic DataDemographicsModel Context ProtocolAI Tools