mcp_census_server
0
The MCP Census Server is a dedicated server for accessing US Census Bureau data using JSON-RPC over HTTP. It features authentication, logging, and caching support, along with a Next.js-based client for interaction.
MCP Census Server
A robust Model Context Protocol (MCP) server for accessing US Census Bureau data via JSON-RPC over HTTP.
Features
- Supports JSON-RPC 2.0
- Pydantic models for request/response validation
- Caching with 5-minute TTL
- Structured logging
- API key authentication
- Health check endpoint
- Interactive API docs
Quickstart
- Clone and navigate into the repository
- Set up environment variables
- Install dependencies
- Start the server
- Send JSON-RPC requests with API-key
Development
- Testing with
pytest
- Code formatting with
black
- Import sorting with
isort
- Linting with
flake8
Documentation
The project includes detailed documentation on architecture, usage examples, and authentication. Styled documentation can be served using npm.
Hosted Documentation
Documentation can be published via GitHub Pages.
Client Application
Includes a Next.js-based client for interacting with the server.