Swiss Hiking Trails MCP
🥾 Swiss Hiking Trails MCP
An MCP server for Swiss hiking routes, built on Swiss open government data. Ask your AI agent things like "I want to do a not-too-hard 4-hour hike in Valais this week — what do you recommend, is it open, how do I get there by train, and give me the GPX."
Live endpoint: https://wandern.opencore.ch/api/mcp (Streamable HTTP, no auth)
What it knows
355 official SchweizMobil Wanderland routes (7 national, ~60 regional, local day hikes) with 887 stages — official hiking times in both directions, distance, ascent/descent, min/max elevation, fitness and technique difficulty, start/end places, cantons.
Live closures & diversions from the federal closures layer.
Elevation profiles from the swisstopo terrain model.
Weather at route elevation (Open-Meteo), public transport to/from trailheads (transport.opendata.ch), POIs along the trail — huts, water, restaurants (OpenStreetMap).
GPX generation with elevation data:
GET /api/gpx/{routeId}.gpx(e.g./api/gpx/39.2.gpx).
Tools
Tool | Purpose |
| Search routes by name/place with filters (length, duration, difficulty, canton, single/multi-day) |
| Routes near a Swiss place name or coordinates |
| Full route details incl. stages and GPX links |
| Elevation profile (distance/elevation pairs) |
| Current closures/diversions near the route |
| GPX download link for a route or stage |
| Daily forecast at route elevation |
| Public transport to the start / back from the end |
| Huts, drinking water, restaurants, picnic spots, viewpoints, transit stops |
All tools take lang (de default, fr, it, en). Route ids are SchweizMobil route numbers
("1" = Via Alpina), stage ids are "1.5" (route 1, stage 5).
Development
pnpm install
pnpm dev # MCP endpoint at http://localhost:3000/api/mcpRebuilding the route index
The bundled route index (data/) is generated from the official Wanderland dataset
(updated roughly yearly):
curl -LO https://data.geo.admin.ch/ch.astra.wanderland/wanderland/wanderland_2056.shp.zip
unzip wanderland_2056.shp.zip -d wanderland
pnpm build-index wanderland/2026_shape_wanderlandData sources & licenses
Source | Data | License / terms |
Wanderland Schweiz (FEDRO/SchweizMobil) | Routes, stages, times, difficulty | FSDI terms of use (free with attribution) |
Closures, elevation, geocoding | FSDI terms of use | |
Weather | CC-BY 4.0 | |
Public transport | Free, fair use | |
POIs | ODbL |
Not an official service of SchweizMobil, swisstopo or the Swiss Confederation.
License
MIT — see LICENSE.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OpenCoreCH/hiking_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server