dawarich-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dawarich-mcp
](https://github.com/beecho01/dawarich-mcp/pkgs/container/dawarich-mcp)
Hardened, read-only MCP server for a self-hosted Dawarich instance.
Ask an MCP client (Open WebUI, Claude Desktop, etc.) about your location history: "where was I on the 15th?", "how far did I travel in November?", "summarise my 2025", "when did I get home last Friday?".
Dawarich v1.23+ ships its own native MCP endpoint with three tools
(get_timeline, get_latest_location, search_visits). This project wraps
Dawarich's REST API instead, giving a wider read surface and an
independent, hardened security perimeter around it — see
Comparison with the native endpoint.
Tools (all read-only)
Tool | Answers |
| Is Dawarich healthy, is the API key accepted, which years/months of history exist? |
| The most recent recorded GPS point |
| Visits between two ISO 8601 datetimes (≤ 1 year), optional text filter |
| Distance travelled per year and per month, total points tracked |
| Dawarich's yearly summary for one year |
| A generated year-in-review digest (if created in the Dawarich UI) |
| Arrivals/departures at configured places in a window |
| Countries and cities visited in a window |
Related MCP server: dawarich-mcp-server
Quick start
git clone https://github.com/beecho01/dawarich-mcp && cd dawarich-mcp
mkdir -p secrets
printf '%s' 'YOUR-DAWARICH-API-KEY' > secrets/dawarich_api_key # Dawarich → Settings → API key
cp .env.example .env
docker compose run --rm --no-deps mcp gen-token --label openwebui # add the hash to .env
docker compose up -d --build
docker compose run --rm --no-deps mcp check # verifies base URL + key end to endThe example compose does not publish any host port — OpenWebUI reaches the
server container-to-container. To expose it to other clients, publish on
loopback (127.0.0.1:8000:8000) and put a TLS-terminating reverse proxy in front.
Open WebUI
Add the server under Admin → Settings → Tools (or in TOOL_SERVER_CONNECTIONS
if you configure via environment):
Type | Streamable HTTP |
URL |
|
Auth | Bearer token (the |
If OpenWebUI connects by container name, keep DAWARICH_MCP_ALLOWED_HOSTS
including dawarich-mcp:* (the DNS-rebinding guard rejects unknown hosts).
Configuration
Variable | Meaning |
| Dawarich base URL, e.g. |
| Dawarich API key (prefer the |
| Host header for the upstream (Rails production rejects untrusted Hosts) |
|
|
|
|
| OAuth 2.1 resource-server mode (issuer, JWKS URL, resource URL, scopes) |
| DNS-rebinding allowlists for the MCP endpoint |
| Per-principal token bucket (default 60) |
dawarich-mcp check validates the upstream configuration end to end;
dawarich-mcp healthcheck is the container healthcheck.
Security
Read the security policy for the full model. Highlights, following the MCP security best practices and awesome-mcp-security:
Fail-closed auth: static bearer tokens are stored as SHA-256 hashes; OAuth 2.1 resource-server mode validates JWT audience (RFC 8707).
No token passthrough — client tokens never travel upstream.
DNS-rebinding protection always on; stateless 2026-07-28 streamable HTTP, POST-only (GET → 405, no idle streams, no sessions).
Strict input schemas, bounded windows/counts, sanitised outputs (ANSI, control characters, bidi overrides and zero-width characters are stripped).
Static tool list — no runtime tool swapping (no rug-pull surface).
Rate limiting, PII-free JSON audit logs, hardened container (read-only FS,
cap_drop: ALL, non-root, no pip, security headers).
Comparison with the native endpoint
Dawarich (v1.23+, Pro API key required) exposes /api/v1/mcp with
get_timeline, get_latest_location and search_visits — genuinely nice
tools with bounded ranges. Differences:
Native | dawarich-mcp | |
Tools | 3 | 8 (status, stats, insights, digests, geofence, countries, …) |
Auth | Dawarich API key (Bearer) | Own token layer; Dawarich key stays in a Docker secret |
DNS-rebinding protection | Disabled upstream ( | Always on |
Exposure | The full Rails app | One minimal, read-only-hardened container |
Rate limiting / output sanitisation | — | Yes |
Use both if you like; they are independent. Contributions of further tools upstream to Dawarich's native MCP are very welcome.
Development
uv sync
uv run pytest
uv run ruff check .
MCP_URL=http://127.0.0.1:8000/mcp MCP_TOKEN=dwmcp_... uv run scripts/smoke_test.pyMIT licensed. Dawarich is a project by Freika.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Public read-only MCP HTTP gateway for the Solapur software developers registry.
Read-only product MCP for robskan.nl — public profile and Spotify listening APIs.
Hosted MCP server for DataLikers — Instagram & TikTok data API. 51 tools: Instagram user search by demographics (gender/age/race/country/city), profiles, bulk lookup, engagement, posts & reels, comments, hashtags, locations, stories, highlights, music, business accounts, top users; TikTok users, videos, comments, hashtags, playlists and top charts. Streamable HTTP, Bearer API key. Free tier: 100 requests on signup at https://datalikers.com/p/1by27bwg
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
Related MCP Servers
- FlicenseBqualityDmaintenanceRead-only MCP server wrapping the Redash REST API, enabling query listing, execution, data source inspection, and dashboard retrieval with optional per-user API key support.7-
- FlicenseNot gradedqualityDmaintenanceExposes read-only location history and related data from Dawarich via MCP tools, designed to run behind an OAuth-terminating proxy.-
- FlicenseAqualityDmaintenanceProvides read-only access to your Garmin Connect health data, including sleep, HRV, body battery, stress, training readiness, and activities, through an MCP server.14-
- FlicenseAqualityDmaintenanceMinimal read-only MCP server that lets you query a Dawarich instance for stats, timeline, visits, points, track details, exports, reverse geocoding, and journey summaries.91-