MCP Census Server
@cclarke411
关于 MCP Census Server
暂无概览
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Census Server?
MCP Census Server is a Model Context Protocol (MCP) server that provides access to US Census Bureau data. It implements JSON-RPC 2.0 over HTTP, uses API key authentication, and offers a single tool (census/get) for retrieving census data. The server is designed for developers who want to integrate Census Bureau data into MCP-compatible applications or AI agents.
How to use MCP Census Server?
Clone the repository, install dependencies (pip install -r requirements.txt), set your Census API key and server API key in a .env file, then start the server with uvicorn app:app --host 0.0.0.0 --port 8000. Send JSON-RPC POST requests to http://localhost:8000/ with the X-API-Key header. The server supports the MCP methods initialize, notifications/initialized, tools/list, and tools/call.
Key features of MCP Census Server
- JSON-RPC 2.0 (single and batch requests)
- Pydantic models for request/response validation
- Caching of Census API responses (TTL 5 minutes)
- API key authentication via
X-API-Keyheader - Health check endpoint (
/health) - Interactive API docs (Swagger UI at
/docs)
Use cases of MCP Census Server
- Programmatic retrieval of US Census Bureau data
- Integrate census data into MCP-compatible AI agents or chatbots
- Build client applications (e.g., the included Next.js MCP client) that query Census datasets
- Serve as a backend for data analysis workflows requiring recent Census statistics
FAQ from MCP Census Server
What Census data endpoints are available?
The server exposes the census/get tool. It retrieves data from the US Census Bureau API, but the README does not list specific Census endpoints or datasets.
What authentication is required?
Requests must include the X-API-Key header with your server API key (set in SERVER_API_KEY environment variable). Additionally, a valid Census API key must be set in the CENSUS_API_KEY environment variable.
What are the runtime requirements?
Python 3, the dependencies in requirements.txt, and a .env file with the required API keys. The server runs via uvicorn.
Does the server cache responses?
Yes, Census API responses are cached with a time-to-live (TTL) of 5 minutes.
Is there a client application included?
Yes, the repository contains a Next.js-based MCP client in the client/ directory that can interact with this server.
其他 分类下的更多 MCP 服务器
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Codelf
unbugA search tool helps dev to solve the naming things problem.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论