Back to Browse

Publicsafetyapi MCP Server

Developer ToolsUse Caution4.8MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

4.8
Use Caution4.8High Risk

This is a well-designed MCP server for querying public safety facility data. Authentication is properly implemented via environment variable, permissions are tightly scoped to the server's stated purpose (network HTTP calls to a single API), and code quality is solid. No security vulnerabilities detected. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 5 high severity). Package verification found 1 issue.

4 files analyzed · 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

API key from https://publicsafetyapi.dev (free tier: 500 requests/month)Required

Environment variable: PUBLICSAFETYAPI_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "dev-publicsafetyapi-publicsafetyapi-mcp": {
      "env": {
        "PUBLICSAFETYAPI_KEY": "your-publicsafetyapi-key-here"
      },
      "args": [
        "publicsafetyapi-mcp"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub 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

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

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 and county contain a location
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

Reviews

No reviews yet

Be the first to review this server!