Skip to main content

publicsafetyapi-mcp

mcp-name: dev.publicsafetyapi/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.

License

MIT

Metadata

Release files for publicsafetyapi-mcp 0.1.3

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

Source distribution (sdist)

Source distribution for publicsafetyapi-mcp 0.1.3
File Size Uploaded Provenance Actions
publicsafetyapi_mcp-0.1.3.tar.gz 5.3 kB Without provenance Details for publicsafetyapi_mcp-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for publicsafetyapi-mcp 0.1.3
File Interpreter ABI Platform Actions
publicsafetyapi_mcp-0.1.3-py3-none-any.whl Python 3 none any Details for publicsafetyapi_mcp-0.1.3-py3-none-any.whl

Total release size: 11.0 kB

Release files / publicsafetyapi_mcp-0.1.3.tar.gz

Download URL publicsafetyapi_mcp-0.1.3.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
75005bc17130779c465eaa6dc1db848f9e3fcb099af7ed3b1c6cf85647a59df6
BLAKE2b-256 checksum
How to use checksums
6c9f3e1bfb3cb63d1058a176da507c1173e8789055e40d7a485055c66a01bdd7
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 / publicsafetyapi_mcp-0.1.3-py3-none-any.whl

Download URL publicsafetyapi_mcp-0.1.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0c939d0fbce9a9f06f5f999e69565aa9263d3f68114138cc491252213dd7a31
BLAKE2b-256 checksum
How to use checksums
194563c53ecff7febc4bdea4f3282707f9da6363d6fa59e77c5b76c28ade57de
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}

Security for publicsafetyapi-mcp 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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