Are you the author? Sign in to claim
MCP server for searching routes and planning treks. Query hiking trails via Waymarked Trails & OpenStreetMap today; Wind
A multi-service MCP server for outdoor / mapping data. Service 1 wraps the open Waymarked Trails API (recreational routes from OpenStreetMap) and adds OpenStreetMap Nominatim geocoding so trails can be found by place name. Service 2 adds Windy point forecasts for trail weather, marine, and air-quality planning.
Trail search is read-only and needs no API keys. Windy forecasts require a
Point Forecast API key (WINDY_API_KEY).
GR20, E5, "Pennine Way")All six Waymarked Trails flavours are supported via a flavour parameter on each tool:
hiking (default), cycling, mtb, riding, skating, slopes.
Coordinates: the upstream API speaks Web Mercator (EPSG:3857) internally. This server accepts and returns WGS84 lon/lat everywhere — the conversion is automatic. Route geometry is summarised by default (
geometry_detail: "summary") to keep responses small; pass"full"for every coordinate or"none"to omit geometry.
| Tool | Purpose |
|---|---|
trails_status | Health/last-update of a flavour |
search_routes_by_name | Fuzzy name/ref search |
find_routes_near_place | Geocode a place + return nearby routes (primary entrypoint) |
find_routes_in_bbox | Routes inside an explicit lon/lat box |
get_routes_by_ids | Batch summary lookup by relation id |
get_route_details | Full route detail (geometry trimmed by default) |
get_route_elevation | Elevation profile |
get_route_segments | Route geometry clipped to a box (GeoJSON) |
get_route_wikilink | Wikipedia URL for a route |
get_guidepost | Guidepost node detail |
get_route_symbol | Waymarking symbol SVG |
geocode_place | Place name → coordinates (Nominatim) |
get_point_forecast | Weather/marine/AQ forecast at lat/lon (Windy; requires API key) |
list_forecast_options | Catalog of Windy models, parameters, levels (no API call) |
npm install
npm run build # compiles src/ -> dist/
npm test # unit tests for the geo/conversion helpers
Requires Node >= 18.18 (developed on Node 22).
The same stdio command works everywhere; only the config file differs. Run npm run build
first — the config points at dist/index.js.
Either run:
claude mcp add trails -- node /Users/chiragahuja/Desktop/trails-mcp/dist/index.js
…or add to ~/.claude.json (global) or a project .mcp.json:
{
"mcpServers": {
"trails": {
"command": "node",
"args": ["/Users/chiragahuja/Desktop/trails-mcp/dist/index.js"]
}
}
}
Add to ~/.cursor/mcp.json (global) or <project>/.cursor/mcp.json (project-scoped):
{
"mcpServers": {
"trails": {
"command": "node",
"args": ["/Users/chiragahuja/Desktop/trails-mcp/dist/index.js"]
}
}
}
Point the client at the TypeScript source via tsx instead of the built file:
{
"mcpServers": {
"trails": {
"command": "npx",
"args": ["tsx", "/Users/chiragahuja/Desktop/trails-mcp/src/index.ts"]
}
}
}
Use the MCP Inspector:
npm run inspect
Or, in a connected client, prompt:
Find hiking trails near Zermatt and show details of the longest one.
…which chains find_routes_near_place → get_route_details.
Copy .env.example to .env.dev and set your Windy Point Forecast key (create one at
api.windy.com). For local dev, npm run dev loads
.env.dev automatically. For MCP clients, pass env vars in the server config:
{
"mcpServers": {
"trails": {
"command": "node",
"args": ["/path/to/trails-mcp/dist/index.js"],
"env": { "WINDY_API_KEY": "your_point_forecast_key" }
}
}
}
| Variable | Default | Purpose |
|---|---|---|
WINDY_API_KEY | (unset) | Windy Point Forecast API key (Map/Webcam keys do not work) |
TRAILS_MCP_LOG_LEVEL | info | debug | info | warn | error (logs go to stderr) |
TRAILS_MCP_USER_AGENT | trails-mcp/<version> (...) | User-Agent sent to upstream APIs (Nominatim requires a descriptive one) |
src/
core/ registry, tool type, http, errors, rate limiter, logger, result helpers
geo/ Mercator <-> lon/lat conversion, bbox helpers, geometry trimming
services/
index.ts registerAllServices() — the single place new services plug in
geocoding/ Nominatim client + geocode_place (shared, rate-limited)
waymarked/ Waymarked Trails client, response shapers, and one file per tool
windy/ Windy Point Forecast client, parameter catalog, forecast shaping
Adding another service = create src/services/<name>/ with a register() function and add
one call in src/services/index.ts. No existing tool files change. Tool names are namespaced
to avoid collisions, and the registry rejects duplicates.
Please be considerate with request volume; these are free community services.
MIT (this wrapper). Upstream data/services keep their own licenses.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows