mcp_census_server
If you are the rightful owner of mcp_census_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A robust Model Context Protocol (MCP) server for accessing US Census Bureau data via JSON-RPC over HTTP.
The MCP Census Server is designed to facilitate seamless access to US Census Bureau data through a JSON-RPC interface over HTTP. It supports both single and batch requests, ensuring efficient data retrieval. The server employs Pydantic models for robust request and response validation, enhancing data integrity and reliability. To optimize performance, it implements caching of Census API responses with a Time-To-Live (TTL) of 5 minutes. Structured logging is integrated using Python's logging module, providing clear and organized logs for monitoring and debugging. Security is prioritized with API key authentication, requiring the 'X-API-Key' header for access. The server also includes a health check endpoint and interactive API documentation via Swagger UI, making it user-friendly and easy to integrate. Key MCP methods include 'initialize' for protocol negotiation, 'notifications/initialized' for client readiness, and 'tools/list' and 'tools/call' for tool management and data retrieval.
Features
- JSON-RPC 2.0 (single and batch requests)
- Pydantic models for request/response validation
- Caching of Census API responses (TTL 5 minutes)
- Structured logging (via Python `logging`)
- API key authentication via `X-API-Key` header
Tools
census/get
Retrieve Census Bureau data