INDIVIDUAL MCP TOOL
get_period_comparison
查詢縣市(或全國)某年某月累計的交通事故死傷人數,並與上游提供的比較期間(預設去年同期)比較;回傳事故總件數與指定指標(headline:事故總件數,加 30日死亡/事故受傷/事故死傷),以及依年齡、用路人、肇因等分類的 breakdown;metric 選「全部」時對死亡、受傷、死傷各查一次(3 個上游請求),輸出改依指標分組(byMetric)。酒駕、毒駕問題請用本工具。breakdown 的分類名稱(受傷、死傷版本把「死亡」換成「受傷」「死傷」):兒童(0-12歲)、少年(13-17歲)、年輕人(18-24歲)、成年人(25-64歲)、高齡者(65歲以上)、少年無照機車騎士(含大重機)、高齡者事故無照駕駛、年輕人機車騎士(含大重機)、高齡者機車騎士(含大重機)、高齡者機車騎士(含大重機)自撞、機車騎士(含大重機)自撞、高齡者行人(含代步)、高齡者使用電動代步器(含輪椅)、行人、自小客駕駛人、自行車騎士(含電自、電輔)、機車騎士(含大重機)、少年自行車騎士(含電自、電輔)、微型電動二輪車(含電輔)、大型車案件導致死亡、平交道事故總件數、平交道事故導致死亡、行人路口事故、高齡者路口事故、高齡者路段事故、大型車造成行人涉入(含代步)、大型車造成機車涉入(含大重機)、大型車造成自行車涉入(含電自、電輔)、動力機械案件導致死亡、營業用小客車案件導致死亡、追撞事故死亡人數、酒駕案件導致死亡、吸食違禁物駕駛導致死亡、外籍人士。肇因類(追撞、酒駕、毒駕)也在其中。毒駕(吸食違禁物駕駛):統計自 115 年起,115 年 7 月起定義改為納入第二當事人,所以 1–6 月與 7 月起的數字不能相加(起算年與定義變更由專案維護者提供,未核對官方公告);比較期間早於 115 年時 previous 為 null、note 為「未統計」,不是沒有發生;涵蓋月份未知。category 選填,只回傳名稱包含該字串的分類(例如 吸食違禁物駕駛),此時 headline 為空;沒帶時行為不變
LIVE ENDPOINT
https://roadsafety.taux.io/mcp
Connect to this endpoint to inspect the live schema for get_period_comparison and invoke it with your own arguments.
Indexed input schema
{}Risk classification
Inferred read-only · medium confidence · heuristic, not a guarantee.
- No write-capable action terms were found; this is not proof that invocation has no side effects.
Parent server
CONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.roadsafety-mcp]
url = "https://roadsafety.taux.io/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"roadsafety-mcp": {
"type": "http",
"url": "https://roadsafety.taux.io/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: roadsafety-mcp
Remote MCP URL: https://roadsafety.taux.io/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"roadsafety-mcp": {
"url": "https://roadsafety.taux.io/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"roadsafety-mcp": {
"type": "http",
"url": "https://roadsafety.taux.io/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "roadsafety-mcp",
"transport": "streamable-http",
"url": "https://roadsafety.taux.io/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
Related tools
ping— 確認 roadsafety MCP server 是否運作中,原樣回傳訊息get_cbi_hotspots— 查詢指定縣市(可再限定鄉鎮)的肇事熱點排名,資料來自交通部道安總動員get_hotspot_detail— 查詢單一肇事熱點的肇因與碰撞類型分布;hotspotKeyid 與 kind 取自 get_cbi_hotspots 的結果get_location_history— 查詢單一路口或路段歷年(106 年起)的事故件數、死亡與受傷人數趨勢;locationKeyid 與 kind 取自 get_cbi_hotspots 的結果get_location_accident_points— 查詢單一路口或路段某年度的事故位置,相同座標合併成「座標+件數」(件數多的在前);座標可能高度重複(同一路口可能落在同一點),不要當成逐案精確位置;只支援全年(不能指定月份);locationKeyid 與 kind 取自 get_cbi_hotspots 的結果get_location_overview— 一次查詢單一路口或路段的概況:熱點的肇因與碰撞類型分布、地點歷年(106 年起)件數趨勢、某年度的事故位置;只給 year 與 get_cbi_hotspots 同一列的 rowRef(已包含 kind、熱點代碼與地點代碼,不會配錯);事故位置的限制同 get_location_accident_pointsget_location_trend— 查詢單一路口或路段的歷年(106 年起)件數趨勢,以及指定年度(最多 5 個,省略時為上游已發布的最近 3 年)的肇因與碰撞類型;逐年說明哪些年度因未進入熱點排名而沒有肇因資料(不代表沒有事故);歷年資料的最後一年是初估值,不能單憑件數升降判斷改善成效;kind 與 locationKeyid 取自 get_cbi_hotspots 的結果,city、area 與 metric 用來掃描各年排名list_areas— 列出可查詢的縣市與鄉鎮,供 get_cbi_hotspots 的 city、area 參數使用