DistrictAPI

dev.districtapi由 districtapi.dev 发布v0.1.3更新于 Oct 24, 2026

US public school districts and schools by address — enrollment, demographics, boundaries

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

DistrictAPI 是一个本地 MCP 服务器,让助手按地址、名称、州或 NCES 编号查询美国学区和学校信息。

可以做什么
根据美国街道地址查找所属学区,并按 NCES LEA 编号获取包含入学人数和人口统计的完整学区档案。按名称和州搜索学区,并列出学区内的所有学校。按 NCES 学校编号获取完整学校档案,并查找某地址周边一定半径内的学校。
适用场景
当需要在 AI 助手会话中获取美国学区或学校信息时适用,例如某地址属于哪个学区、入学人数与人口统计、学区边界或附近学校。
运行要求
以 Python 包形式在本地运行(pip install 或 uvx),需在 Claude Desktop、Cursor 等 MCP 客户端中配置。需要 DISTRICTAPI_KEY 环境变量,提供商提供每月 500 次请求的免费额度。需要能访问提供商 API 的网络。
安装前请注意
DISTRICTAPI_KEY 是发送给提供商服务的密钥,请勿写入共享配置或代码仓库。请求计入免费额度每月上限,用量更大时可能需要付费方案。查询为只读操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 DistrictAPI,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

districtapi-mcp

mcp-name: dev.districtapi/districtapi-mcp

MCP server for districtapi.dev — US school district and school data for AI agents.

Expose school district lookups as tools to any MCP-compatible AI assistant (Claude, Cursor, Copilot, etc.).

Installation

bash
pip install districtapi-mcp

Or run directly with uvx (no install needed):

bash
uvx districtapi-mcp

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "districtapi": {      "command": "uvx",      "args": ["districtapi-mcp"],      "env": {        "DISTRICTAPI_KEY": "your_api_key_here"      }    }  }}

Cursor / other MCP clients

json
{  "mcpServers": {    "districtapi": {      "command": "uvx",      "args": ["districtapi-mcp"],      "env": {        "DISTRICTAPI_KEY": "your_api_key_here"      }    }  }}

Get a free API key at districtapi.dev.

Available Tools

ToolDescription
lookup_district_by_addressFind the district serving a US street address
get_districtGet full district profile by NCES LEA ID
search_districtsSearch districts by name and/or state
get_district_schoolsList all schools in a district
get_schoolGet full school profile by NCES school ID
find_schools_near_addressFind schools within a radius of an address

Example

Once configured, you can ask your AI assistant:

"What school district serves 1600 Pennsylvania Ave, Austin TX, and how many students are enrolled?"

The assistant will call lookup_district_by_address and return the full district profile.

Links

License

MIT

来源:README.md,提交 01bc0b4

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.1.3最新Oct 4, 2026
  2. v0.1.2Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。