mcp_census_server

mcp_census_server

3.3

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 Model Context Protocol (MCP) server. It leverages JSON-RPC 2.0 for communication, allowing both single and batch requests. The server uses Pydantic models to ensure request and response validation, and it caches Census API responses for five minutes to enhance performance. Structured logging is implemented using Python's logging module, and API key authentication is enforced via the X-API-Key header. The server includes a health check endpoint and provides interactive API documentation through Swagger UI. Key MCP methods include 'initialize' for protocol negotiation, 'notifications/initialized' for client readiness, 'tools/list' to enumerate available tools, and 'tools/call' to retrieve Census Bureau data.

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