Skip to main content
Glama

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

Related MCP server: unofficial-magister-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.

License

MIT

Available Tools

6 tools
find_schools_near_addressA

Find public schools within a radius of a US street address.

Args: address: Full US street address radius_miles: Search radius in miles (default 5.0, max 25.0)

Inputs: address (required), radius_miles.

get_districtA

Get full profile for a school district by its NCES LEA ID.

Args: nces_id: 7-digit NCES Local Education Agency ID, e.g. "4807380"

Inputs: nces_id (required).

get_district_schoolsA

List all schools in a district.

Args: nces_id: 7-digit NCES LEA ID of the district

Inputs: nces_id (required).

get_schoolA

Get full profile for a school by its NCES school ID.

Args: nces_id: 12-digit NCES school ID

Inputs: nces_id (required).

lookup_district_by_addressA

Find the public school district serving a US street address.

Returns the district name, NCES ID, state, enrollment, school count, per-pupil expenditure, and demographic breakdown.

Args: address: Full US street address, e.g. "1600 Pennsylvania Ave, Austin, TX"

Inputs: address (required).

search_districtsA

Search for school districts by name, optionally filtered by state.

Args: name: Full or partial district name, e.g. "Austin" or "Austin ISD" state: Two-letter state code to narrow results, e.g. "TX" (optional)

Inputs: name (required), state.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: address-to-district, district-by-ID, district-search, schools-in-district, school-by-ID, and schools-near-address. The two address-based tools are clearly differentiated by return type (district vs schools).

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with optional qualifiers (by_address, near_address, by ID). Verbs (lookup, get, search, find) are semantically distinct and used appropriately, and snake_case is used throughout.

    Tool Count5/5

    With 6 tools, the set is well-scoped for a school district information API. Each tool addresses a distinct query need without unnecessary redundancy or bloat.

    Completeness5/5

    The domain is read-only lookup, and the set covers all natural entry points: by address, by name, by district ID, and by school ID, plus the ability to list schools within a district or near an address. No critical gaps are evident.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers