Back to Home
uscensusbureau icon

us-census-bureau-data-api-mcp

Verified Safe

by uscensusbureau

Overview

The MCP Server provides a standardized API for AI assistants (LLMs) to access and process U.S. Census Bureau data and geography information, enabling data retrieval and analysis through an agent-like interface.

Installation

Run Command
npm run prod:build

Environment Variables

  • CENSUS_API_KEY
  • DATABASE_URL
  • DEBUG_LOGS
  • SEED_MODE

Security Notes

The server uses environment variables for sensitive data like `CENSUS_API_KEY` and `DATABASE_URL`, which is good practice. Input validation is implemented using `zod` schemas. Database interactions largely use parameterized queries, which mitigates common SQL injection risks. However, the `recordApiCall` and `hasApiBeenCalled` functions directly interpolate the `url` parameter into SQL queries. While `url` is typically constructed internally from trusted Census API endpoints, this pattern could pose a risk if malicious user input could somehow manipulate this variable without prior sanitization.

Similar Servers

Stats

Interest Score45
Security Score8
Cost ClassMedium
Avg Tokens2500
Stars46
Forks11
Last Update2026-01-16

Tags

U.S. Census BureauData APIModel Context ProtocolLLM ToolingPostgreSQL