MCP.so
登录

MCP Census Server

@cclarke411

基本信息

分类

其他

传输方式

stdio

作者

cclarke411

关于 MCP Census Server

暂无概览

#mcp-census-server#data-access#json-rpc

MCP Census Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

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-Key header
  • 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

常见问题

1

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.

2

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.

3

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`.

4

Does the server cache responses?

Yes, Census API responses are cached with a time-to-live (TTL) of 5 minutes.

5

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 服务器