Skip to main content

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

License

MIT

Release files for districtapi-mcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for districtapi-mcp 0.1.2
File Size Uploaded
districtapi_mcp-0.1.2.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for districtapi-mcp 0.1.2
File Interpreter ABI Platform
districtapi_mcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / districtapi_mcp-0.1.2.tar.gz

Download URL districtapi_mcp-0.1.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a200645cd78b6495b8c4b1dba575067431ce5adf730129118a56a57f5b87bcd7
BLAKE2b-256 checksum
How to use checksums
5230a2ba67d4ad612a9ee1bc810ce1ed06cc7557f6b556375bef79f9aab62fc3
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / districtapi_mcp-0.1.2-py3-none-any.whl

Download URL districtapi_mcp-0.1.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c016eb52a00d11e4a1b45a65eb458a9fd2c4d5c5391f1b54b657ea9da28ec3df
BLAKE2b-256 checksum
How to use checksums
441d50258ecbfab48b751da09d1c5bd2c9f79004a65459350ba560e9043b30ae
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page