mcp_census_server

mcp_census_server

3.2

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 access to US Census Bureau data through a JSON-RPC interface over HTTP. It supports both single and batch requests using JSON-RPC 2.0, ensuring efficient data retrieval and processing. The server employs Pydantic models for validating requests and responses, enhancing data integrity and reliability. To optimize performance, it caches Census API responses with a Time-To-Live (TTL) of 5 minutes. The server also features structured logging using Python's logging module, providing clear and organized logs for monitoring and debugging. API key authentication is enforced via the X-API-Key header, ensuring secure access to the server's resources. Additionally, the server includes a health check endpoint and interactive API documentation available through Swagger UI, making it user-friendly and easy to integrate into various applications.

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

  1. census/get

    Retrieve Census Bureau data