surf-mcp-server
A server for querying surf spot data and searching spots, with tools to list regions, spots, get spot info, find spots by criteria, and get mock forecasts.
README
Surf MCP Server
Ein kleiner MCP Server fuer Surfspot-Daten und einfache Spot-Suche. Die Spots liegen als JSON-Dateien im Ordner data/ und koennen ueber MCP Tools abgefragt werden.
Der Server ist bewusst simpel gehalten, damit er auf verschiedenen Systemen und mit unterschiedlichen Python-Versionen leicht getestet werden kann.
Voraussetzungen
- Python
>=3.10 - Zugriff auf dieses Repo
- Installation der Python-Abhaengigkeiten aus
pyproject.toml
Abhaengigkeiten:
mcp[cli]requests
Setup
Vom Repo-Root aus:
cd surf-mcp-server
python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install -e .
Alternativ, falls du mit uv arbeitest:
cd surf-mcp-server
uv sync
Wichtig: Den Server aus dem Repo-Root starten, weil die Spot-Dateien relativ ueber data/ geladen werden.
Server starten
python src/server.py
Der Server startet aktuell mit streamable-http:
mcp.run(transport="streamable-http")
Wenn du ihn auf einem anderen System testest, reicht normalerweise:
- Repo kopieren oder klonen
- Python-Umgebung erstellen
- Dependencies installieren
python src/server.pyaus dem Repo-Root ausfuehren
Projektstruktur
surf-mcp-server/
├── src/
│ ├── server.py # MCP Tools und Server-Start
│ ├── spots.py # Laden der Spot-Dateien
│ ├── forecast.py # Forecast-Orchestrierung
│ └── providers/ # Forecast- und Tide-Provider
├── data/ # Surfspot JSON-Dateien
├── tests/ # Unit Tests
├── charts/ # Helm Chart
├── Dockerfile
├── .dockerignore
├── LICENSE
├── pyproject.toml
├── uv.lock
└── README.md
Verfuegbare MCP Tools
list_regions()
Gibt alle verfuegbaren Regionen zurueck.
Beispiel-Resultat:
["Airport Reefs", "Lakey", "Uluwatu", "Ungasan", "West Sumbawa"]
list_spots(region: string | null = null)
Listet Spots. Optional kann nach Region gefiltert werden.
Beispiel:
{
"region": "Uluwatu"
}
Resultat enthaelt:
{
"id": "uluwatu_the_peak",
"name": "Uluwatu - The Peak",
"country": "Indonesia",
"island": "Bali",
"region": "Uluwatu"
}
get_spot_info(spot_id: string)
Gibt alle Details fuer einen Spot zurueck.
Beispiel:
{
"spot_id": "lakey_peak"
}
find_spots(...)
Findet Spots anhand mehrerer Kriterien.
Parameter:
skill: z.B.intermediate,advanced,expertcountry: z.B.Indonesiaisland: z.B.BalioderSumbawaregion: z.B.Uluwatu,Lakey,West Sumbawatide: z.B.low,mid,highwind: z.B.SE,N,NWswell_direction: z.B.S,SW,Wswell_height_ft: z.B.4
Beispiel:
{
"skill": "intermediate",
"island": "Bali",
"region": "Uluwatu",
"tide": "mid",
"wind": "SE",
"swell_direction": "SW",
"swell_height_ft": 4
}
count_spots()
Gibt die Anzahl der Spot-Dateien zurueck.
search_spots(query: string)
Sucht Spots nach Name.
Beispiel:
{
"query": "uluwatu"
}
get_forecast(spot_id: string)
Gibt aktuell einen Mock Forecast zurueck.
Beispiel-Resultat:
{
"wave_height_ft": 6,
"period_s": 14,
"wind_kts": 8
}
Spot JSON Schema
Jeder Spot ist eine eigene JSON-Datei in data/. Der Dateiname sollte zur spot_id passen.
Beispiel:
{
"spot_id": "uluwatu_the_peak",
"name": "Uluwatu - The Peak",
"country": "Indonesia",
"island": "Bali",
"region": "Uluwatu",
"coordinates": {
"lat": -8.816633,
"lon": 115.08625
},
"conditions": {
"swell": {
"directions": ["S", "SW"],
"min_ft": 1,
"max_ft": 6
},
"wind": {
"offshore": ["SE"]
},
"tide": ["mid", "high"]
},
"wave": {
"direction": "left",
"type": "reef"
},
"ratings": {
"crowd": 10,
"localism": 9,
"risk": 6,
"fun": 9
},
"surfer_level": ["intermediate", "advanced"],
"notes": "At high tide, aim south of the cave when coming in.",
"description": "Short description of the spot.",
"hazards": [
"sharp coral reef",
"strong currents"
]
}
Wichtige Daten-Konventionen
surfer_level
surfer_level ist immer ein Array, damit die Suche einzelne Levels sauber matchen kann:
{
"surfer_level": ["intermediate", "advanced"]
}
Nicht mehr verwenden:
{
"surfer_level": "intermediate / advanced"
}
Empfohlene Werte:
beginnerintermediateadvancedexpert
Location Felder
country, island und region sind getrennte Felder:
{
"country": "Indonesia",
"island": "Bali",
"region": "Uluwatu"
}
Nicht mehr verwenden:
{
"region": "Bali - Uluwatu Area"
}
Aktuelle Regionen
Airport ReefsLakeyUluwatuUngasanWest Sumbawa
Neue Spots hinzufuegen
- Neue Datei in
data/erstellen, z.B.my_spot.json spot_idpassend zum Dateinamen setzen, z.B.my_spot- Schema wie oben verwenden
- JSON validieren:
jq empty data/my_spot.json
Alle Spot-Dateien validieren:
for f in data/*.json; do jq empty "$f" || exit 1; done
Hinweise
get_forecastist aktuell noch Mock-Datenlogik.- Spot-Daten werden bei jedem Tool-Aufruf direkt aus
data/*.jsongelesen. src/providers/open_meteo.py,src/providers/worldtides.pyundsrc/providers/stormglass.pysind als Provider-Struktur vorbereitet. Open-Meteo liefert aktuell noch normalisierte Platzhalterdaten.- Das Helm Chart nutzt standardmaessig die im Docker Image enthaltenen Spot-Daten. Ein externer ConfigMap-Mount fuer
/app/datakann ueberspotData.configMap.enabled=trueaktiviert werden.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.