# alltrails-mcp [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/chrischall/alltrails-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1336  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/alltrails-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **alltrails_search** — Search AllTrails by trail or place name — free-text queries use the same suggestions endpoint as the alltrails.com search box (`types: ["trail"]` narrows to trails only)
- **alltrails_resolve_location** — Resolve a place name to AllTrails location records (country/state/city/area/POI) with each one's kind, coordinates, slug, and disambiguation label
- **alltrails_get_trail** — Trail details — name, overview, length, elevation gain, difficulty, rating, route type, location (`detail`: `basic`/`medium`/`offline` picks what AllTrails sends us)
- **alltrails_get_trail_reviews** — User reviews for a trail — `{user, rating, comment}` each
- **alltrails_get_trail_photos** — Photos for a trail — slim records with a fetchable image `url
- **alltrails_get_trail_gpx** — Export a trail's route as GPX 1.1 (track points + elevation)
- **alltrails_get_trail_weather** — Weather overview for a trail
- **alltrails_get_profile** — The signed-in user's profile
- **alltrails_list_user_lists** — A user's saved lists / favorites
- **alltrails_get_list_items** — The trails saved in a list, by list id — ordered `{trailId, type, order, notes, addedAt}`, hydrate each via `get_trail
- **alltrails_list_completed_trails** — A user's completed trails
- **alltrails_get_activity_feed** — A user's activity feed (`feed`: `local`/`timeline`/`personal` for the items, omit for the directory; `cursor` paginates)
- **alltrails_healthcheck** — Round-trips a probe through the fetchproxy bridge and reports role/port/timing plus a plain-English hint about which hop broke

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "alltrails-mcp": {
    "command": "npx",
    "args": ["-y","alltrails-mcp"]
  }
}
```

## Documentation

## What alltrails-mcp does

alltrails-mcp exposes AllTrails data through MCP tools intended for use with Claude Desktop or another MCP host. It supports trail and place searches, location disambiguation, trail metadata, user reviews, photos, weather, and GPX 1.1 route exports. Account-oriented tools retrieve the signed-in profile, saved lists, list contents, completed trails, and activity feeds.

Every tool is read-only. The server can retrieve records and route data, but it does not create, edit, save, or delete AllTrails content.

## How it works

AllTrails does not provide a public API for this use case. The server works with the internal API used by alltrails.com and routes requests through the fetchproxy bridge as same-origin browser fetches. This lets requests reuse the session in an open, signed-in AllTrails tab while preserving the browser context expected by DataDome.

Authentication requires the ContextMint Bridge browser extension, a signed-in AllTrails tab, and a one-time pair-code approval. The server captures the live `x-at-key` value from the tab when needed and retains it only in memory. It can capture the value again if AllTrails rotates it.

Search, trail, review, photo, list-item, and activity-feed responses accept a `view` option. `compact` is the default projection for the fields callers generally use; `full` returns AllTrails' complete record. Per-user tools use the signed-in account by default, or can accept a `userId` for a public profile.

## Setup and configuration

Use Node.js 22.5 or later. Clone the repository, install dependencies, and build it with `npm install` followed by `npm run build`. Configure the MCP host to launch `dist/index.js` with Node, then restart the host.

Install the ContextMint Bridge extension and use Chrome with an authenticated AllTrails tab. The first request requires pair-code approval. There is no stored-cookie authentication mode.

Optional environment variables include `ALLTRAILS_USER_ID` for selecting a numeric user ID, `ALLTRAILS_WS_PORT` for changing the fetchproxy concentrator port, `ALLTRAILS_LOCALE` and `ALLTRAILS_CALLER` for request-header overrides, `ALLTRAILS_REQUEST_TIMEOUT_MS` for request timeouts, and `ALLTRAILS_DEBUG_LOG` for redacted request logging. The default timeout is 30 seconds and the default WebSocket port is 37149.

## Tools and capabilities

- Search AllTrails by trail or place name, with an option to restrict suggestions to trails.
- Resolve countries, states, cities, areas, and points of interest into coordinates, slugs, and labels.
- Retrieve trail descriptions, distance, elevation gain, difficulty, ratings, route type, location, reviews, photos, weather, and GPX track points with elevation.
- Inspect the signed-in profile, saved lists, list items, completed trails, and local, timeline, or personal activity feeds.
- Paginate activity results with a cursor and run a bridge health check that reports connection details and likely failure points.

## Limitations and notes

This is an unofficial integration that reverse-engineers an internal AllTrails API. AllTrails may change that API without notice, and automated access may conflict with its Terms of Service or trigger rate limits, CAPTCHA challenges, or account action.

Use it only for personal access through your own signed-in session. It is not affiliated with or endorsed by AllTrails, and it should not be used for bulk extraction, a competing product, or activity that burdens the service. Review the code and tool permissions before use; the project is AI-developed and has not been audited by a human maintainer.

_Full upstream README: https://allmcps.com/mcp/alltrails-mcp/readme_

