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

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.2.tar.gz (3.1 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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: districtapi_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 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.2.tar.gz
Algorithm Hash digest
SHA256 a200645cd78b6495b8c4b1dba575067431ce5adf730129118a56a57f5b87bcd7
MD5 31f438aac1c16f112a3f4b58d29fc9aa
BLAKE2b-256 5230a2ba67d4ad612a9ee1bc810ce1ed06cc7557f6b556375bef79f9aab62fc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: districtapi_mcp-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c016eb52a00d11e4a1b45a65eb458a9fd2c4d5c5391f1b54b657ea9da28ec3df
MD5 8a44b12a93a4a229b29576cab4b0ed28
BLAKE2b-256 441d50258ecbfab48b751da09d1c5bd2c9f79004a65459350ba560e9043b30ae

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