PublicSafetyAPI
v0.1.3US police, fire, EMS and hospital locations near any address, from federal HIFLD data
Values you need
| Variable | What it is | |
|---|---|---|
PUBLICSAFETYAPI_KEY | required secret | API key from https://publicsafetyapi.dev (free tier: 500 requests/month) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add publicsafetyapi-mcp -e 'PUBLICSAFETYAPI_KEY=<PUBLICSAFETYAPI_KEY>' -- uvx publicsafetyapi-mcp==0.1.3Add to
claude_desktop_config.json{
"mcpServers": {
"publicsafetyapi-mcp": {
"args": [
"publicsafetyapi-mcp==0.1.3"
],
"command": "uvx",
"env": {
"PUBLICSAFETYAPI_KEY": "<PUBLICSAFETYAPI_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"publicsafetyapi-mcp": {
"args": [
"publicsafetyapi-mcp==0.1.3"
],
"command": "uvx",
"env": {
"PUBLICSAFETYAPI_KEY": "<PUBLICSAFETYAPI_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "PUBLICSAFETYAPI_KEY",
"id": "publicsafetyapi-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"publicsafetyapi-mcp": {
"args": [
"publicsafetyapi-mcp==0.1.3"
],
"command": "uvx",
"env": {
"PUBLICSAFETYAPI_KEY": "${input:publicsafetyapi-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.publicsafetyapi-mcp]
command = "uvx"
args = ["publicsafetyapi-mcp==0.1.3"]
env = { "PUBLICSAFETYAPI_KEY" = "<PUBLICSAFETYAPI_KEY>" }For AI agents
- Ask the user for: PUBLICSAFETYAPI_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: find_stations_near_address, find_stations_near_coordinates, get_station, list_stations, get_jurisdiction, get_state_summary.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json