MCP server for districtapi.dev — US school district and school data for AI agents
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file districtapi_mcp-0.1.0.tar.gz.
File metadata
- Download URL: districtapi_mcp-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20f1aa201deb71c252006cfd2794a885e863731e6cbd284ebd3401190cc4eb1a
|
|
| MD5 |
db0df04666b89da0292cc4a7cc67cd26
|
|
| BLAKE2b-256 |
64c3eced31f25bdec50cd6dad46ca294440d8885eeb307d1953ed52e7fe52b3d
|
File details
Details for the file districtapi_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: districtapi_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4c0516607990faa8564170996ad54a8a81ddcff1fff734a40ceb4cfd99c9af2
|
|
| MD5 |
aa9e051e989cacdfa468f55ae12a3cce
|
|
| BLAKE2b-256 |
97d92c0f9966cd19e16f533a6d15e939ef92ac46e2557cecf158b2872c9fe5af
|