pypi districtapi-mcpstdioupdated 23d ago
mcp-name: dev.districtapi/districtapi-mcp
DistrictAPI 能做什么?
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
pip install districtapi-mcp
Or run directly with uvx (no install needed):
uvx districtapi-mcp
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"districtapi": {
"command": "uvx",
"args": ["districtapi-mcp"],
"env": {
"DISTRICTAPI_KEY": "your_api_key_here"
}
}
}
}
Cursor / other MCP clients
{
"mcpServers": {
"districtapi": {
"command": "uvx",
"args": ["districtapi-mcp"],
"env": {
"DISTRICTAPI_KEY": "your_api_key_here"
}
}
}
}
Get a free API key at districtapi.dev.
Available Tools
| Tool | Description |
|---|---|
lookup_district_by_address |
Find the district serving a US street address |
get_district |
Get full district profile by NCES LEA ID |
search_districts |
Search districts by name and/or state |
get_district_schools |
List all schools in a district |
get_school |
Get full school profile by NCES school ID |
find_schools_near_address |
Find 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
- Website: districtapi.dev
- PyPI: pypi.org/project/districtapi-mcp
- REST API docs: districtapi.dev/docs
License
MIT
安装
把 DistrictAPI 添加到你的客户端。选择你正在使用的那个。
claude mcp add districtapi-mcp -- uvx districtapi-mcpcodex mcp add districtapi-mcp -- uvx districtapi-mcpamp mcp add districtapi-mcp -- uvx districtapi-mcp{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"districtapi-mcp","command":"uvx","args":["districtapi-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"districtapi-mcp": {
"type": "local",
"command": "uvx",
"args": [
"districtapi-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"districtapi-mcp": {
"command": {
"path": "uvx",
"args": [
"districtapi-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx districtapi-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
6 个工具
DistrictAPI 向已连接的智能体提供 6 个工具。
- lookup_district_by_address
- Find the district serving a US street address
- get_district
- Get full district profile by NCES LEA ID
- search_districts
- Search districts by name and/or state
- get_district_schools
- List all schools in a district
- get_school
- Get full school profile by NCES school ID
- find_schools_near_address
- Find schools within a radius of an address
评分
65 / 100
良好
- 文档22/25
- 维护19/25
- 可信度6/20
- 能力6/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 15 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 6 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.1.2最新 | 2026年8月16日 |