mcp_census_server

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

  1. Clone and navigate into the repository
  2. Set up environment variables
  3. Install dependencies
  4. Start the server
  5. 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.