{
  "markdown": "# publicsafetyapi-mcp\n\n<!-- Links this package to its entry in the official MCP registry -->\nmcp-name: dev.publicsafetyapi/publicsafetyapi-mcp\n\nMCP server for [publicsafetyapi.dev](https://publicsafetyapi.dev) — US police stations, fire departments, EMS bases, and hospitals for AI agents.\n\nExpose 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.\n\n## Installation\n\n```bash\npip install publicsafetyapi-mcp\n```\n\nOr run directly with `uvx` (no install needed):\n\n```bash\nuvx publicsafetyapi-mcp\n```\n\n## Configuration\n\n### Claude Desktop\n\nAdd to `~/Library/Application Support/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"publicsafetyapi\": {\n      \"command\": \"uvx\",\n      \"args\": [\"publicsafetyapi-mcp\"],\n      \"env\": {\n        \"PUBLICSAFETYAPI_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Cursor / other MCP clients\n\n```json\n{\n  \"mcpServers\": {\n    \"publicsafetyapi\": {\n      \"command\": \"uvx\",\n      \"args\": [\"publicsafetyapi-mcp\"],\n      \"env\": {\n        \"PUBLICSAFETYAPI_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\nGet a free API key at [publicsafetyapi.dev](https://publicsafetyapi.dev) — 500 requests/month, no credit card.\n\n## Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `find_stations_near_address` | Find the nearest facilities to a US street address |\n| `find_stations_near_coordinates` | Same, but from a lat/lng (skips geocoding) |\n| `get_station` | Full record for one facility by ID |\n| `list_stations` | List/search facilities by type, state, name, or ZIP |\n| `get_jurisdiction` | Which city and county contain a location |\n| `get_state_summary` | Facility counts by type for a state |\n\nFacility types: `fire`, `police`, `ems`, `hospital`.\n\n## Examples\n\nOnce configured, you can ask your AI assistant:\n\n> \"What's the closest fire station to 350 Fifth Ave, New York?\"\n\n> \"How many hospitals are in Montana, and which have trauma centers?\"\n\n> \"I'm building an emergency-response app — find every police and fire station within 5 miles of downtown Austin.\"\n\nThe assistant calls the matching tool and gets structured JSON back — addresses, phone numbers, coordinates, and for hospitals, beds, trauma level, and ownership.\n\n## Links\n\n- **Website:** [publicsafetyapi.dev](https://publicsafetyapi.dev)\n- **PyPI:** [pypi.org/project/publicsafetyapi-mcp](https://pypi.org/project/publicsafetyapi-mcp)\n- **REST API docs:** [publicsafetyapi.dev/docs](https://publicsafetyapi.dev/docs)\n\n## License\n\nMIT\n",
  "bytes": 2603,
  "sha": "92e3efc9be6737bff26995f07aaf97772d6045c258e48b536bd17686b0c545fd",
  "repo_slug": "public-safety-api/publicsafetyapi-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_dev_publicsafetyapi_publicsafetyapi_mcp_8f45d9ce/readme"
}