{"id":51389666,"url":"https://github.com/zaydiscold/alltrails-cli-mcp-api","last_synced_at":"2026-07-03T22:31:20.621Z","repository":{"id":366727265,"uuid":"1250542219","full_name":"zaydiscold/alltrails-cli-mcp-api","owner":"zaydiscold","description":"AllTrails CLI (MCP + API) — unofficial AllTrails API map + CLI + MCP: trails, maps, GPS routes, recordings, lists, reviews. The API map is the product.","archived":false,"fork":false,"pushed_at":"2026-06-23T03:25:09.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T05:17:41.580Z","etag":null,"topics":["alltrails","api","cli","gps","hiking","mcp","openapi","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaydiscold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-26T18:27:54.000Z","updated_at":"2026-06-23T03:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zaydiscold/alltrails-cli-mcp-api","commit_stats":null,"previous_names":["zaydiscold/alltrails-cli-mcp-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zaydiscold/alltrails-cli-mcp-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaydiscold%2Falltrails-cli-mcp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaydiscold%2Falltrails-cli-mcp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaydiscold%2Falltrails-cli-mcp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaydiscold%2Falltrails-cli-mcp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaydiscold","download_url":"https://codeload.github.com/zaydiscold/alltrails-cli-mcp-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaydiscold%2Falltrails-cli-mcp-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35104113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alltrails","api","cli","gps","hiking","mcp","openapi","typescript"],"created_at":"2026-07-03T22:31:19.751Z","updated_at":"2026-07-03T22:31:20.616Z","avatar_url":"https://github.com/zaydiscold.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AllTrails CLI (MCP + API)\n\nI wanted my AllTrails data — trails, maps, GPS routes, my own recordings and activities — reachable from the terminal and from agents instead of locked inside the app. AllTrails has no public developer API, so I mapped the routes the web and mobile clients actually use, then built a small TypeScript CLI and MCP server on top of that map.\n\nThis is unofficial and not affiliated with AllTrails. It maps and drives my own account surfaces; it stores no cookies, tokens, or private ids.\n\n## What it does\n\n- **Search trails** by name, location, or map bounds.\n- **Trail details + weather** — full trail payloads plus the weather overview surface.\n- **Maps \u0026 GPS routes** — static maps, offline-map metadata, GPX, and route geometry.\n- **Recordings \u0026 activities** — community recordings, your activity list, and activity detail/upload.\n- **Lists** — saved and custom lists.\n- **Reviews \u0026 photos** — trail reviews and the trail/photo surfaces.\n\n```bash\npnpm install\npnpm build\npnpm cli api-map summary --json\npnpm cli trail get 10027248 --detail offline --json\npnpm cli search plan \"Half Dome\" --lat 37.746 --lng -119.533 --radius 25 --limit 3 --json\n```\n\nLive commands read caller-owned auth from environment variables set outside this repo (`ALLTRAILS_ACCESS_TOKEN`, or `ALLTRAILS_COOKIE` with an optional `ALLTRAILS_CSRF_TOKEN`). Writes are real by default and print a stderr warning before mutating; pass `--dry-run` to rehearse without sending. There is no CAPTCHA solving, bot-bypass, TLS impersonation, or stealth code here.\n\n## The map is the point\n\nThe headline artifact lives in [`api-map/`](api-map/): an OpenAPI spec, a Markdown route reference, and runnable curl recipes covering roughly 120 endpoints across trails, maps, recordings, activities, lists, reviews, and account surfaces. Every route carries a source label (`browser_observed`, `community_inferred`, `subscription_gated`, `unverified`, and so on) so you can tell evidence quality apart from permission. The CLI and MCP server are just two convenient front-ends for that map.\n\n## Extending it\n\nNew routes go in `api-map/` first (OpenAPI + the Markdown table), then surface in the CLI via `cli/src/lib.ts`. Run `pnpm cli api-map routes` to see everything currently wired up, and `pnpm cli request \u003cMETHOD\u003e \u003cpath\u003e` to drive a freshly captured route before it gets a dedicated command.\n\n---\n\nBuilt on the trio pattern (CLI + skill + MCP) pioneered by [Matt Van Horn's Printing Press](https://github.com/mvanhorn/cli-printing-press).\n\nMapped \u0026 built by Zayd Khan ([@ColdCooks](https://twitter.com/ColdCooks) / [zaydiscold](https://github.com/zaydiscold)). MIT © Zayd Khan.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaydiscold%2Falltrails-cli-mcp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaydiscold%2Falltrails-cli-mcp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaydiscold%2Falltrails-cli-mcp-api/lists"}