360 Secure SkillHub
360 安全技能中心

beach-safety

该技能通过MCP服务提供全球任意海滩的海况与安全查询,采用免费公开数据源,无需额外API密钥。提供4类查询能力:含分级安全评分与行动建议的综合文本报告、供程序调用的JSON结构化数据、冲浪专项预报(浪高、涌浪、离岸流风险等)、UV指数及防晒建议。用户仅需输入海滩名称即可查询(补充地区可提升定位准确率),适合出行前核实游泳、冲浪安全条件,美国海岸数据精度更高。

evanfoglia
evanfoglia
热度 60.59
最近更新 2026-10-07 12:16:46
分类:生活依赖:MCP 服务应用场景:旅行 / 报告撰写 / 推荐 / 健康

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add beach-safety
Metadata
name
beach-safety
version
1.1.1
description
Comprehensive beach surf conditions via mcporter MCP call. Use when asked about surf, waves, swim conditions, rip currents, or beach safety at any beach worldwide.

Beach Safety

Get surf/weather conditions for any beach using the beach-safety MCP server.

Quick Usage

mcporter call beach-safety get_beach_report --args '{"beach_name": "Waikiki"}'
mcporter call beach-safety get_beach_report --args '{"beach_name": "Hapuna Beach, Hawaii"}'

Tools Available

Tool Use Case
get_beach_report Full text report — waves, swell, wind, UV, safety score, recommendations
get_beach_json Same data as JSON for programmatic use
get_surf_forecast Surf-specific: wave height, swell, period, direction, rip risk
get_uv_forecast UV index with sun protection guidance

Safety Score

Score Meaning Action
9-10 Generally safe Enjoy with normal precautions
7-8 Minor concerns Caution advised
4-6 Caution Swim near lifeguard
1-3 Dangerous Stay out of the water

Reporting Style

Always include BOTH current UV and daily max UV in surf summaries. The API returns them as current=X (daily max=Y). Never just say "UV max" — say "UV current=X (daily max=Y)" so the user knows if it's day or night at the beach.

Installation (Universal)

1. Install dependencies

pip install -r requirements.txt

(Requires Python 3.10+ and httpx>=0.27.0)

2. Find your install path

After clawhub install beach-safety, the skill lands in your skills directory (e.g. ~/.openclaw/workspace/skills/beach-safety/). The MCP server is at:

<install-dir>/src/server.py

For example, if you installed into ~/.openclaw/workspace/skills/:

# Confirm the path
ls ~/.openclaw/workspace/skills/beach-safety/src/server.py

3. Add to mcporter

Add this to your mcporter config (e.g. ~/.openclaw/workspace/config/mcporter.json):

{
  "mcpServers": {
    "beach-safety": {
      "command": "python3",
      "args": ["<path-to>/src/server.py"]
    }
  }
}

Replace <path-to> with the actual install location from step 2.

4. Test

mcporter call beach-safety get_beach_report --args '{"beach_name": "Waikiki"}'

Data Sources (all free — no API keys)

Source Data
OpenStreetMap / Photons Beach name → coordinates
Open-Meteo Marine Wave height, swell, ocean currents
Open-Meteo Weather Air temp, wind, precipitation, UV index
NOAA NWS Rip current risk, surf zone forecast (US only)

Notes

  • Works for any beach worldwide — just name it
  • NOAA surf zone data is most detailed for US coasts
  • Open-Meteo marine data covers global oceans
  • Some less-famous beaches may not resolve — try adding country/state (e.g. "Kuta Beach, Bali, Indonesia")
  • Beach name → coordinates powered by OpenStreetMap + Photons (free)