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 分

    請在儲存庫或註冊中心條目中宣告授權條款。