alltrails-mcp

v3.2.1
io.github.chrischall/alltrails-mcp Checked 12 hours ago Published 27 days ago

Unofficial AllTrails MCP for Claude — search trails, get details, reviews, photos, saved lists

Values you need

VariableWhat it is
ALLTRAILS_USER_IDoptional Optional numeric AllTrails user id for the per-user tools (saved lists, completed trails, feed). If omitted, those tools resolve the signed-in user via /api/alltrails/me.
ALLTRAILS_REQUEST_TIMEOUT_MSoptional Per-request timeout in ms (default 30000).
ALLTRAILS_DEBUG_LOGoptional 1/true/yes/on logs each request/response to stderr — method, path, status, response size, and a redacted 200-char request-body prefix (response bodies are never logged).
ALLTRAILS_WS_PORToptional fetchproxy concentrator port (default 37149, shared by the whole fetchproxy fleet — override only for local dev/tests).
ALLTRAILS_LOCALEoptional Overrides the x-language-locale request header (default "en-US").
ALLTRAILS_CALLERoptional Overrides the x-at-caller request header (default "Mugen").

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add alltrails-mcp -- npx -y alltrails-mcp@3.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "alltrails-mcp": {
      "args": [
        "-y",
        "alltrails-mcp@3.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "alltrails-mcp": {
      "args": [
        "-y",
        "alltrails-mcp@3.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "alltrails-mcp": {
      "args": [
        "-y",
        "alltrails-mcp@3.2.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.alltrails-mcp]
command = "npx"
args = ["-y", "alltrails-mcp@3.2.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: alltrails_get_trail, alltrails_get_trail_reviews, alltrails_get_trail_photos, alltrails_get_trail_gpx, alltrails_get_trail_weather, alltrails_search, alltrails_resolve_location, alltrails_get_profile, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json