Skip to main content

publicsafetyapi-mcp

MCP server for publicsafetyapi.dev — US police stations, fire departments, EMS bases, and hospitals for AI agents.

Expose public safety facility lookups as tools to any MCP-compatible AI assistant (Claude, Cursor, Copilot, etc.). Built on federal HIFLD, USFA, and CMS data — public domain, commercially usable.

Installation

pip install publicsafetyapi-mcp

Or run directly with uvx (no install needed):

uvx publicsafetyapi-mcp

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "publicsafetyapi": {
      "command": "uvx",
      "args": ["publicsafetyapi-mcp"],
      "env": {
        "PUBLICSAFETYAPI_KEY": "your_api_key_here"
      }
    }
  }
}

Cursor / other MCP clients

{
  "mcpServers": {
    "publicsafetyapi": {
      "command": "uvx",
      "args": ["publicsafetyapi-mcp"],
      "env": {
        "PUBLICSAFETYAPI_KEY": "your_api_key_here"
      }
    }
  }
}

Get a free API key at publicsafetyapi.dev — 500 requests/month, no credit card.

Available Tools

Tool Description
find_stations_near_address Find the nearest facilities to a US street address
find_stations_near_coordinates Same, but from a lat/lng (skips geocoding)
get_station Full record for one facility by ID
list_stations List/search facilities by type, state, name, or ZIP
get_jurisdiction Which city and county contain a location
get_state_summary Facility counts by type for a state

Facility types: fire, police, ems, hospital.

Examples

Once configured, you can ask your AI assistant:

"What's the closest fire station to 350 Fifth Ave, New York?"

"How many hospitals are in Montana, and which have trauma centers?"

"I'm building an emergency-response app — find every police and fire station within 5 miles of downtown Austin."

The assistant calls the matching tool and gets structured JSON back — addresses, phone numbers, coordinates, and for hospitals, beds, trauma level, and ownership.

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

publicsafetyapi_mcp-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

publicsafetyapi_mcp-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file publicsafetyapi_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: publicsafetyapi_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 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 publicsafetyapi_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92b72c193f22cba1ff068a542dbe68fa7b8a4ef8260ec92901586e268d25c6a0
MD5 eeea43fcbacd8cbdbf0c332d2c860313
BLAKE2b-256 1e7b0e38050210ee92bb9822692725ad1a7c9e3f261516a6ef41c77837984d04

See more details on using hashes here.

File details

Details for the file publicsafetyapi_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: publicsafetyapi_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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 publicsafetyapi_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50b2babe2fd88680f09f7a95b9c8bb6d1987f2a27df4181db178da291e6f1a28
MD5 e3c4daa67e6df43bc3fd178fa804f496
BLAKE2b-256 6633abbe3c704fcde430d3d2c544b0096829c3d15620118c59d8c3b3c89164fb

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