mcp_census_server
0
MCP Census Server is a versatile server designed to access US Census Bureau data using the Model Context Protocol. It supports JSON-RPC 2.0, offers structured logging, API authentication, and interactive API documentation.
MCP Census Server
A robust Model Context Protocol (MCP) server for accessing US Census Bureau data via JSON-RPC over HTTP.
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
- API key authentication
- Health check endpoint
- Interactive API docs
Quickstart
- Clone the repository
- Set environment keys
- Install dependencies
- Start the server
Development
- Use
pytest
for testing - Use
black
for formatting - CI configured in GitHub
Client Application
- Includes a Next.js-based client to interact with the server