PublicSafetyAPI

dev.publicsafetyapi由 publicsafetyapi.dev 發布v0.1.3更新於 Oct 24, 2026

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

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

依地址或座標查詢美國警察局、消防隊、緊急救護站與醫院位置,資料來自聯邦 HIFLD、USFA 與 CMS。

可以做什麼
  • 依美國街道地址尋找最近的警察、消防、緊急救護或醫院設施,也可直接傳入經緯度以略過地理編碼
  • 依 ID 取得單一設施的完整紀錄
  • 依類型、州、名稱或郵遞區號列出與搜尋設施
  • 判斷某位置屬於哪個市鎮或郡,以及某類機構中哪些可能提供服務
  • 取得某州依類型統計的設施數量
  • 回傳結構化 JSON,包含地址、電話、座標,醫院另含病床數、外傷等級與所有權資訊
適用情境
適合需要美國公共安全設施資料的情境:查詢最近的站點、依州統計醫院數量與外傷中心資訊,或開發緊急應變與涵蓋範圍分析工具時需要某地點周邊的設施清單。
執行需求
以 Python 套件形式在本機透過 stdio 執行(pip install 或 uvx),需要 Python 與 uv/uvx。需透過環境變數 PUBLICSAFETYAPI_KEY 提供 API 金鑰,免費額度為每月 500 次請求。需要能連線至 publicsafetyapi.dev 服務的網路。
安裝前請注意
API 金鑰屬機密,透過環境變數 PUBLICSAFETYAPI_KEY 傳入,不應寫入共用設定檔。查詢內容會傳送至第三方服務 publicsafetyapi.dev,並計入每月免費請求額度。資料僅涵蓋美國設施。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PublicSafetyAPI,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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

來源:README.md,提交 db73d2b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.1.3最新Oct 4, 2026
  2. v0.1.2Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。