PublicSafetyAPI

dev.publicsafetyapiPublished by publicsafetyapi.devv0.1.3Updated Oct 24, 2026

US police, fire, EMS and hospital locations near any address, from federal HIFLD data

VerifiedSTDIODesktop onlyLocation & LifestyleData & Analytics

Overview

AI-generated overview

Looks up US police, fire, EMS and hospital facilities near an address or coordinates, using federal HIFLD, USFA and CMS data.

What you can do
  • Find the nearest police, fire, EMS or hospital facilities to a US street address, or to a latitude/longitude pair to skip geocoding
  • Retrieve the full record for a single facility by its ID
  • List and search facilities by type, state, name or ZIP code
  • Identify which city, town or county contains a location and which agencies of a given type likely serve it
  • Get facility counts by type for a state
  • Returns structured JSON with addresses, phone numbers, coordinates and, for hospitals, beds, trauma level and ownership
When to use it
Useful when an assistant needs US public safety facility data: nearest-station questions, hospital counts and trauma-center details by state, or building emergency-response and coverage tools that need facility lists around a location.
Requirements
Runs locally as a Python package (pip install or uvx) over stdio, so Python and uv/uvx are needed. Requires an API key supplied in the PUBLICSAFETYAPI_KEY environment variable; a free tier of 500 requests per month is available. Network access to the publicsafetyapi.dev service is required.
Before you install
The API key is a secret passed in the PUBLICSAFETYAPI_KEY environment variable and should not be committed to shared config files. Lookups are sent to the third-party publicsafetyapi.dev service, and usage counts against the free monthly request quota. Coverage is limited to US facilities.

Installation

In SourceWeft

  1. Open PublicSafetyAPI in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

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

bash
pip install publicsafetyapi-mcp

Or run directly with uvx (no install needed):

bash
uvx publicsafetyapi-mcp

Configuration

Claude Desktop

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

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

Cursor / other MCP clients

json
{  "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

ToolDescription
find_stations_near_addressFind the nearest facilities to a US street address
find_stations_near_coordinatesSame, but from a lat/lng (skips geocoding)
get_stationFull record for one facility by ID
list_stationsList/search facilities by type, state, name, or ZIP
get_jurisdictionWhich city/town (or county, if unincorporated) contains a location, and which agencies of one type likely serve it
get_state_summaryFacility 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

Source: README.md at commit db73d2b

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

2
  1. v0.1.3LatestOct 4, 2026
  2. v0.1.2Sep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.