
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
概覽
依地址或座標查詢美國警察局、消防隊、緊急救護站與醫院位置,資料來自聯邦 HIFLD、USFA 與 CMS。
- 可以做什麼
- 依美國街道地址尋找最近的警察、消防、緊急救護或醫院設施,也可直接傳入經緯度以略過地理編碼
- 依 ID 取得單一設施的完整紀錄
- 依類型、州、名稱或郵遞區號列出與搜尋設施
- 判斷某位置屬於哪個市鎮或郡,以及某類機構中哪些可能提供服務
- 取得某州依類型統計的設施數量
- 回傳結構化 JSON,包含地址、電話、座標,醫院另含病床數、外傷等級與所有權資訊
- 適用情境
- 適合需要美國公共安全設施資料的情境:查詢最近的站點、依州統計醫院數量與外傷中心資訊,或開發緊急應變與涵蓋範圍分析工具時需要某地點周邊的設施清單。
- 執行需求
- 以 Python 套件形式在本機透過 stdio 執行(pip install 或 uvx),需要 Python 與 uv/uvx。需透過環境變數 PUBLICSAFETYAPI_KEY 提供 API 金鑰,免費額度為每月 500 次請求。需要能連線至 publicsafetyapi.dev 服務的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 PublicSafetyAPI,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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
Or run directly with uvx (no install needed):
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Cursor / other MCP clients
Get a free API key at publicsafetyapi.dev — 500 requests/month, no credit card.
Available Tools
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
- Website: publicsafetyapi.dev
- PyPI: pypi.org/project/publicsafetyapi-mcp
- REST API docs: publicsafetyapi.dev/docs
License
MIT
來源:README.md,提交 db73d2b
工具
0版本歷史
2- v0.1.3最新Oct 4, 2026
- v0.1.2Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。