DistrictAPI
US school district and school lookups by address, with enrollment and boundaries
- Pricing
- Freemium
- Platforms
- self-hosted, CLI, API
- Runs
- Locally
- Version
- 0.1.3
- Listing updated
- 2 days ago
About DistrictAPI
DistrictAPI is a freemium MCP server for analytics and data. It runs locally on your machine and is started by your AI client.
Give it a US street address and it returns the public school district serving that spot. The API behind it matches addresses against TIGER boundary polygons with PostGIS, and a district profile includes enrollment, demographics, per-pupil expenditure, revenue sources, locale type, schools and a GeoJSON boundary. Records are keyed by NCES district and school IDs, built on free federal data.
The server wraps the DistrictAPI REST service in six tools: district lookup by address, district profile, name or state search, a district's school list, a school profile and a search for schools near an address. It runs locally over stdio, started with uvx districtapi-mcp, and needs an API key in DISTRICTAPI_KEY.
The free tier gives 500 requests a month with no card, and paid tiers add email support and batch endpoints of 100 or 500 addresses. One account also works on the same vendor's library and public safety APIs. The MCP package is MIT licensed.
Install
Run in a terminal
claude mcp add districtapi-mcp --env DISTRICTAPI_KEY='<DISTRICTAPI_KEY>' -- uvx districtapi-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
],
"env": {
"DISTRICTAPI_KEY": "<DISTRICTAPI_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
],
"env": {
"DISTRICTAPI_KEY": "<DISTRICTAPI_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"districtapi-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"districtapi-mcp"
],
"env": {
"DISTRICTAPI_KEY": "<DISTRICTAPI_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
],
"env": {
"DISTRICTAPI_KEY": "<DISTRICTAPI_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"districtapi-mcp": {
"command": "uvx",
"args": [
"districtapi-mcp"
],
"env": {
"DISTRICTAPI_KEY": "<DISTRICTAPI_KEY>"
}
}
}
}Configuration
DISTRICTAPI_KEYAPI key from https://districtapi.dev (free tier: 500 requests/month)Required
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
- 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
What it does
- Address to district
- Finds the district serving a US street address.
- District profile
- Returns enrollment, demographics, finance and school counts.
- School search
- Lists schools in a district or within a radius of an address.
- NCES identifiers
- All records use federal NCES IDs.
- GeoJSON boundaries
- District boundaries are returned for use in mapping tools.
- Free tier
- 500 requests a month with no card.
Good for
- Find the school district for a home address
- Compare enrollment between districts
- List all schools in a district
- Find charter or public schools near an address
- Pull boundary polygons for a map
Pricing
Freemium
Free tier of 500 requests a month; paid tiers add support and batch endpoints
Prices change. Check districtapi.dev before you buy.
DistrictAPI FAQ
Do I need an API key?
Yes. Set DISTRICTAPI_KEY from districtapi.dev; the free tier has 500 requests a month.
How do I run it?
Use uvx districtapi-mcp, or pip install districtapi-mcp, in your MCP client's command setting.
What licence is the package?
MIT.
Where does the data come from?
The site says it is built on free federal data keyed by NCES IDs.
Does it cover private schools?
The site describes US public school districts and schools only.
Is DistrictAPI free?
DistrictAPI has a free plan, with paid plans for more usage or features.
How do I add DistrictAPI to Claude Code?
Run this command in your terminal: claude mcp add districtapi-mcp --env DISTRICTAPI_KEY='<DISTRICTAPI_KEY>' -- uvx districtapi-mcp
What are the best alternatives to DistrictAPI?
The closest alternatives to DistrictAPI are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.
Alternatives to DistrictAPI

Agent-Native Analytics
MCP serverOpen-source analytics app where an AI agent builds charts and dashboards from your data
- Remote
- Open source
- 7.7K GitHub stars
- Analytics and data

Google Ads + Meta Ads + SEO/GEO MCP
MCP serverHosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat
- 8 tools
- Remote
- Freemium
- 8.1K GitHub stars
- Marketing and SEO

Tapetide - Indian Stock Market MCP
MCP serverIndian NSE and BSE stock market data for AI assistants through 48 MCP tools
- 17 tools
- Remote
- Freemium
- 150 GitHub stars
- Finance and payments

World Monitor
MCP serverLive geopolitical intelligence dashboard with an API and MCP server for agents
- Remote
- Freemium
- Analytics and data

CompanyData
MCP serverSearch and enrich company records from official registers via the CompanyData API
- 3 tools
- Remote
- Paid
- 3 GitHub stars
- Analytics and data

ChartAnt
MCP serverRemote MCP server returning charts, maps and dashboards as hosted PNG links
- 51 tools
- Remote
- Freemium
- Design and media