# PublicSafetyAPI

> PublicSafetyAPI is a freemium MCP server for analytics and data. Find US police, fire, EMS and hospital locations near any address, from federal data. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** self-hosted, CLI, API
- **Website:** https://publicsafetyapi.dev
- **Repository:** https://github.com/public-safety-api/publicsafetyapi-mcp
- **MCP Registry name:** dev.publicsafetyapi/publicsafetyapi-mcp
- **Categories:** analytics and data, maps and travel
- **Listing updated:** 2026-11-15

## About

Hospitals come with more than an address. The data includes licensed bed count, trauma centre level I to V, helipad availability, ownership type and accreditation body. The service covers more than 126,000 facilities across all 50 states, drawn from federal HIFLD, USFA and CMS data, which the README calls public domain and commercially usable.

Six tools search by address or by coordinates, fetch a facility by ID, list facilities by type, state, name or ZIP, and give a state summary of facility counts. A jurisdiction lookup returns which city or town, or county if unincorporated, contains a point, and which agencies of one type likely serve it. Facility types are fire, police, ems and hospital.

The server runs locally over stdio with `uvx publicsafetyapi-mcp` and needs a PUBLICSAFETYAPI_KEY. The free tier allows 500 requests a month with no card; paid tiers add email or priority support and a 99.9% SLA. A bundle covers the vendor's two other civic APIs from $49 a month. The package is MIT licensed.

## Features

- **Nearest facilities:** Ranks police, fire, EMS and hospital sites by distance from an address.
- **Coordinate search:** Searches from latitude and longitude, skipping geocoding.
- **Hospital detail:** Adds bed counts, trauma level, helipad and ownership.
- **Jurisdiction lookup:** Returns the incorporated place or county for a point.
- **State summaries:** Counts facilities by type for any state.
- **HIFLD identifiers:** Records use stable federal IDs.

## Good for

- Find the closest fire station to an address
- Count hospitals with trauma centres in a state
- Map police and fire coverage near a city centre for an emergency app
- Check which agencies likely serve an unincorporated location
- Look up a facility's phone number and status

## Install

### Claude Code (Terminal)

```sh
claude mcp add publicsafetyapi-mcp --env PUBLICSAFETYAPI_KEY='<PUBLICSAFETYAPI_KEY>' -- uvx publicsafetyapi-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "publicsafetyapi-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "publicsafetyapi-mcp"
      ],
      "env": {
        "PUBLICSAFETYAPI_KEY": "<PUBLICSAFETYAPI_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `find_stations_near_address`: Find the nearest facilities to a US street address
- `find_stations_near_coordinates`: Find nearest facilities from a latitude and longitude
- `get_station`: Full record for one facility by ID
- `list_stations`: List or search facilities by type, state, name or ZIP
- `get_jurisdiction`: Which city, town or county contains a location, and which agencies likely serve it
- `get_state_summary`: Facility counts by type for a state

## FAQ

### Do I need an API key?

Yes. Set PUBLICSAFETYAPI_KEY; the free tier has 500 requests a month and no card.

### Which facility types does it cover?

Police, fire, EMS and hospitals.

### Where does the data come from?

Federal HIFLD, USFA and CMS data.

### What licence is the package?

MIT.

### Is it suitable for live emergencies?

The pages describe a lookup service for facility locations and do not claim it is for emergency dispatch.

### Is PublicSafetyAPI free?

PublicSafetyAPI has a free plan, with paid plans for more usage or features.

### How do I add PublicSafetyAPI to Claude Code?

Run this command in your terminal: claude mcp add publicsafetyapi-mcp --env PUBLICSAFETYAPI_KEY='<PUBLICSAFETYAPI_KEY>' -- uvx publicsafetyapi-mcp

### What are the best alternatives to PublicSafetyAPI?

The closest alternatives to PublicSafetyAPI are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [Tutu eSIM](https://ai-powered.com/mcp/tutu-esim): Tutu eSIM is a paid MCP server for maps and travel.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/publicsafetyapi
