Skip to main content
Glama
surfline-mcp

surfline-mcp

by ivoytov

surfline-mcp

极简的 Python MCP 服务器,包含一个工具:get_surf_forecast。

它会获取两个 Surfline 预报端点的数据:

  • conditions(海况)

  • rating(评分)

冲浪点通过环境变量 (SURFLINE_SPOT_ID) 固定,因此该服务器实际上仅支持单个冲浪点。

设置

cd surfline-mcp
uv sync

Related MCP server: Kitesurf Forecast MCP

运行 (stdio MCP 服务器)

cd surfline-mcp
export SURFLINE_SPOT_ID=5842041f4e65fad6a7708852
uv run surfline-mcp

通过 uvx 运行 (来自 GitHub)

export SURFLINE_SPOT_ID=5842041f4e65fad6a7708852
uvx --from git+https://github.com/ivoytov/surfline-mcp surfline-mcp

Nanobot MCP 配置 (uvx)

{
  "tools": {
    "mcpServers": {
      "surfline": {
        "command": "uvx",
        "args": ["--from", "git+https://github.com/ivoytov/surfline-mcp", "surfline-mcp"],
        "env": {
          "SURFLINE_SPOT_ID": "5842041f4e65fad6a7708852"
        }
      }
    }
  }
}

工具

get_surf_forecast(days=3)

返回:

  • spot_id

  • days

  • daily_forecast[],包含:

    • forecastDay

    • dayToWatch

    • headline

    • observation

    • rating_summary.dominant_key

    • rating_summary.min_value

    • rating_summary.max_value

    • rating_summary.avg_value

    • rating_windows[](以 3 小时为间隔的紧凑快照):

      • local_hour

      • key

      • value

Available Tools

1 tool
get_surf_forecastC

Fetch Surfline forecast data for one configured spot.

Uses SURFLINE_SPOT_ID from environment and returns both conditions and rating endpoint payloads.

Inputs: days. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    The single tool name 'get_surf_forecast' follows a clear verb_noun pattern. With only one tool, consistency is inherently perfect as there are no other tools to compare against.

    Tool Count2/5

    A single tool is too few for a surf forecast server's apparent scope, which typically involves multiple operations like listing spots, getting forecasts for different locations, or accessing different data types. This minimal set limits functionality.

    Completeness2/5

    The tool surface is severely incomplete for a surf forecasting domain. It only fetches forecast data for one pre-configured spot, lacking operations to list spots, get forecasts for multiple locations, or access other surf-related data like tides or reports.

    Related MCP Connectors

    Related MCP Servers