Skip to main content
Glama
Hiking MCP Server
by Adriapt

🏔️ Hiking MCP Server

This is an MCP (Modular Command Processor) server that allows you to search for hiking routes on Wikiloc, using geographic and textual queries.


🖥️ System Requirements

  • Python 3.10 or higher

  • uv installed

  • Python MCP SDK 1.2.0 or higher (included with mcp[cli])

  • Claude for Desktop (Windows or macOS only)


Related MCP server: AllTrails MCP Client

⚙️ Set Up Your Environment

1. Install uv

On Windows PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

After installation, restart your terminal so the uv command is recognized.


2. Clone and configure the project

# Clone the GitHub repository
git clone https://github.com/Adriapt/hiking-mcp.git
cd hiking-mcp

# Set up and activate a virtual environment
uv venv
.venv\Scripts\activate   # On macOS/Linux: source .venv/bin/activate

# Install required dependencies
uv add mcp[cli] httpx beautifulsoup4

▶️ Run the Server

To start the server, run:

uv run mcp-server.py

This will start the MCP server, ready to accept commands via stdio.


💻 Connect to Claude for Desktop

To use your MCP server with Claude for Desktop:

1. Ensure Claude for Desktop is installed

You can download Claude for Desktop here.

2. Open or create the configuration file

  • On macOS:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows (PowerShell):

code "$env:APPDATA/Claude/claude_desktop_config.json"

3. Add your MCP server configuration

{
  "mcpServers": {
    "hiking": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/hiking-mcp",
        "run",
        "mcp-server.py"
      ]
    }
  }
}

Replace /ABSOLUTE/PATH/TO/hiking-mcp with the actual full path to your project directory.

Use where uv on Windows or which uv on macOS/Linux to find the uv path if needed.

Available Tools

1 tool
get_routesA

Search for routes on Wikiloc based on geographical area.

Args:
    query: Search query (e.g. "Vall de Núria - Ribes de Freser").
    sw_lat: Latitude of the southwest corner of the bounding box.
    sw_lon: Longitude of the southwest corner of the bounding box.
    ne_lat: Latitude of the northeast corner of the bounding box.
    ne_lon: Longitude of the northeast corner of the bounding box.
    page: The page of results to fetch.
    max_results: The maximum number of results to return.


Output: 
    "title": Name of the trail,
    "url": Url,
    "distance_km": Distance in KM,
    "slope": Slope of the trail in meters,
    "author": Author of the trail,
    "location": Location of the trail,
    "trailrank": Punctuation of the trail.

Inputs: query (required), ne_lat (required), ne_lon (required), sw_lat (required), +3 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion between tools. The tool's purpose is clear and distinct.

    Naming Consistency5/5

    With a single tool, naming is internally consistent and follows a clear verb_noun pattern ('get_routes').

    Tool Count2/5

    The server contains only one tool, which feels too few for the apparent scope of a hiking server. Even if search is the core feature, users likely need additional operations like route details or filtering.

    Completeness2/5

    The server only offers route search, missing common operations for a hiking domain such as route detail retrieval, user favorites, or trip planning. This leaves significant gaps that will likely require workarounds.

    Related MCP Connectors

    Related MCP Servers