Skip to main content

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

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

districtapi_mcp-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

districtapi_mcp-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file districtapi_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: districtapi_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for districtapi_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9043cb1175ca87bae50dce4e8fb70c74cc3fdd6f359b3625e98d4316b5f2696a
MD5 af9f8c4b2257ed02aa09419fd315dc91
BLAKE2b-256 846d281fcd560cc44139621da2f06a9fdf97ad2fabf8a5f76eb5bbc741c01256

See more details on using hashes here.

File details

Details for the file districtapi_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: districtapi_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for districtapi_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dad9031abe8213a17fabb32813566b77221c2692d210d0d21a8c33a1cd523ef
MD5 98cfb52a93c48ca07e8dd1b5a02a68af
BLAKE2b-256 31c8db022645cddccc8095abe47471ef552e2181cb4154f77cfb32f2f962e3ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page