by liketrek
A self‑hosted open‑source travel planner that supports real‑time collaboration, itinerary building, bookings, shared budgets, packing lists, travel journals, offline PWA usage, SSO and an AI‑ready MCP server, with global place search and routing built in.
Trek provides an all‑in‑one ecosystem for planning, executing, and documenting trips. It lets groups collaborate on live maps, organise day‑by‑day schedules, manage bookings and expenses, create packing check‑lists, write journals, and generate printable photo books. All features run on a self‑hosted server and are available offline via a Progressive Web App.
http://<host>:3000 (or the HTTPS URL behind a reverse proxy).Q: Do I need an API key for maps and weather? A: Basic OSM search, Open‑Meteo weather and OpenFreeMap tiles work without a key. Optional providers (Mapbox, Google, Valhalla) require keys you can configure.
Q: Can I run Trek without Docker?
A: Yes. It is a Node.js/NestJS application; you can npm install and start it with the provided scripts, but Docker is the recommended quick‑start.
Q: How is data stored? A: By default SQLite is used; you can configure external storage (S3‑compatible) for uploads and backups.
Q: Is the AI assistant mandatory? A: No. The AI addon is off by default and can be enabled with an LLM API key.
Q: What browsers are supported for the PWA? A: Modern browsers with Service Worker support (Chrome, Edge, Safari, Firefox) on desktop and mobile.
TREK has grown from a travel planner into a whole ecosystem for trips: plan together in real time on a live map, build hikes, tours and road trips, keep bookings and shared costs in order, pack, write the journal, lay out the photo book and hand the busy work to the built-in AI. Self-hosted, on the web, on your phone and offline.
PUBLIC SERVICES PROUDLY SPONSORED BY
Most of what follows is an addon an admin switches on or off. Lists, Costs, Documents, Collab, Tours, Vacay and Atlas ship on; Journey, Collections, MCP, the AI assistant, AI Parsing, Road trip, Dawarich and AirTrail ship off and are marked below.
/plugins/<id>TREK_PLUGINS_ENABLED=false turns the whole system offtrek-plugin-sdk with a CLI to create, validate, run against real data, sign and publishX-Idempotency-Key, and a stale edit waits for a keep-mine or keep-theirs choiceOIDC_ONLY leaves SSO as the only way in, and an OIDC claim can grant adminEvery TREK installation in the world searches through servers that dataforest cloud sponsors.
The place index with over 88 million places, the address search in every TREK language and the planet-wide routing all run on dataforest cloud in Frankfurt, Germany, free of charge for everyone who self-hosts TREK. Without this sponsorship, these services would not exist in this form.
Thank you, dataforest, for backing open source this generously. 💚
Looking for a server for your own TREK? dataforest cloud is where TREK's own services live.
We use LLM-assisted coding tools across parts of this codebase. Nothing ships that a maintainer has not read and understood: every change goes through a pull request, is reviewed and tested, and has a human who can answer for it. "The AI wrote that" is not an answer any of us would accept from ourselves.
See How we use AI in TREK for the details.
ENCRYPTION_KEY=$(openssl rand -hex 32) docker run -d --name trek -p 3000:3000 \
-e ENCRYPTION_KEY=$ENCRYPTION_KEY \
-e COOKIE_SECURE=false \
-v ./data:/app/data -v ./uploads:/app/uploads mauriceboe/trek
Open http://localhost:3000, or http://<server-ip>:3000 from another machine. On first boot TREK seeds an admin account — if you set ADMIN_EMAIL/ADMIN_PASSWORD those are used, otherwise the credentials are printed to the container log (docker logs trek).
COOKIE_SECURE=false is only for trying TREK over plain HTTP: without it the browser drops the session cookie and the login does not stick. Once TREK sits behind HTTPS (see Reverse Proxy), remove it.
TrueNAS SCALE: Install TREK directly from the Community catalog. See the TrueNAS SCALE installation guide.
[!TIP] No server yet? TREK's own public services run on dataforest cloud, our infrastructure sponsor. A small seed is plenty for a TREK instance and is ready within a minute.
Docker Compose · Helm / Kubernetes · Install as PWA · Reverse Proxy
Real-time sync via WebSocket (ws). Backend on NestJS 11. State with Zustand. Auth via JWT + OAuth 2.1 + OIDC + Passkeys (WebAuthn) + TOTP MFA. Weather via Open-Meteo (no key required). Maps with Leaflet and Mapbox GL.
The repository ships a ready-to-use docker-compose.yml
with secure defaults and every option documented inline. Download it, then:
docker compose up -d
See Install with Docker Compose for the full walkthrough.
helm repo add trek https://chart.liketrek.com
helm repo update
helm install trek trek/trek
See charts/README.md for values.
TREK works as a Progressive Web App, and the TREK Travel Planner app for iPhone, iPad and Android connects to the same server (Native Apps). To install the web app instead:
TREK then launches fullscreen with its own icon, just like a native app.
See Updating — Docker Compose, Docker run, Helm, Portainer, Unraid, TrueNAS SCALE and Proxmox, plus the encryption-key note.
For production, put TREK behind a TLS-terminating reverse proxy. TREK uses WebSockets for real-time sync, so the proxy must support WebSocket upgrades on /ws.
If you use the MCP addon, the proxy must also pass the Mcp-Session-Id header through in both directions on /mcp — Nginx and Caddy do this by default, but a proxy that strips it makes every tool call open a new session instead of reusing one. See the Reverse Proxy wiki page for details.
server {
listen 80;
server_name trek.yourdomain.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name trek.yourdomain.com;
ssl_certificate /etc/ssl/fullchain.pem;
ssl_certificate_key /etc/ssl/privkey.pem;
# 500 MB covers backup-restore uploads (capped at 500 MB server-side).
client_max_body_size 500m;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /ws {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_read_timeout 86400;
}
# Only needed if you use the MCP addon. Responses are Server-Sent Events,
# so buffering must be off or tool results arrive late.
location /mcp {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_read_timeout 3600s;
}
}
trek.yourdomain.com {
reverse_proxy localhost:3000
}
Caddy handles TLS and WebSockets automatically.
Every variable, its default and what it does: see Environment Variables.
The Atlas map's country and sub-national (province/county) boundaries come from geoBoundaries (Runfola et al., 2020), licensed CC BY 4.0; Ireland's counties come from Tailte Éireann, also CC BY 4.0. See NOTICE.md for full third-party attributions.
TREK is AGPL v3. Self-host freely for personal or internal company use. If you modify and offer TREK as a network service to third parties, your modifications must be open-sourced under the same licence.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by DuarteSantos8
Track workouts, plan routines, log sets, and monitor body‑weight progress entirely on your own server, with offline‑first PWA support and secure passkey authentication.
by mattt
Enables AI assistants to retrieve and manage personal macOS data such as calendar events, contacts, messages, reminders, location, maps, and weather through a local MCP server, allowing personalized AI interactions without sending data off‑device.
by nspady
Provides Google Calendar integration for AI assistants, enabling event listing, creation, updating, deletion, free/busy queries, recurring event handling, and smart scheduling via natural language.
by keptinventory
Manage and locate every personal item, its location, documentation, and history on a self‑hosted platform that includes AI‑driven assistance and an MCP interface.
by baidu-maps
Offers a comprehensive suite of geospatial APIs and tools for developers and AI agents, enabling geocoding, reverse geocoding, POI search, route planning, weather, traffic, IP location, and real‑time traffic queries via standardized MCP interfaces.
by Omar-V2
Interact with the macOS Calendar through natural‑language commands, enabling creation, querying, and updating of events in a conversational way.
by movieclaw
Provides an all‑in‑one self‑hosted media platform that handles playback, library organization, metadata scraping, automatic downloads, subtitles, family permissions, and an integrated AI assistant, all from a single Docker container.
by Brhiza
Provides a one‑stop solution for Chinese and Western divination, generating comprehensive charts (八字, 紫微, 星盘, 六爻, 梅花, 奇门, 大/小六壬, 塔罗, 雷诺曼, 灵签, 择日) together with structured data and AI‑ready prompt text. Available through a web UI, public REST API, MCP server, and a reusable skill for AI agents.
by zcaceres
Integrates with Google Tasks to list, read, search, create, update, and delete tasks via MCP tools.