untappd-mcp
An MCP server for Untappd. It talks to Untappd's mobile
(v4) API using your own account — search beers, breweries, and venues; read
profiles, check-ins, wishlists, distinct beers, badges, friends, and your friend
activity feed; and post check-ins, toasts, and comments.
Developed and maintained by AI (Claude Code). Use at your own discretion. This
is an unofficial client that uses Untappd's private mobile API; it is not
affiliated with or endorsed by Untappd.
How it works
Untappd's iPad/iPhone app authenticates with a username/password xauth login
(POST https://api.untappd.com/v4/xauth) that returns an access token, then
calls the v4 API. This server reproduces that, except where the token goes:
- Reads carry the token as an
Authorization: Bearer header, never in the URL
(the app uses an access_token query param; the API accepts both).
- Writes carry it as an
Authorization: Bearer header (with the app's client
credentials in the query), matching the app's real requests.
The token is fetched on demand, cached in memory, and refreshed automatically if
it goes stale.
Configuration
| Variable | Required | Description |
|---|
UNTAPPD_ACCESS_TOKEN | no | An access token you already hold. Supply this and no password is needed — the xauth login is skipped entirely. |
UNTAPPD_USERNAME | if no token | Your Untappd username or login email. |
UNTAPPD_PASSWORD | if no token | Your Untappd password (used only for the xauth login that mints a token). |
UNTAPPD_CLIENT_ID | for login & writes | The Untappd mobile app client id (see below). A pre-seeded access token can read without it. |
UNTAPPD_CLIENT_SECRET | for login & writes | The Untappd mobile app client secret. |
UNTAPPD_DEVICE_ID | no | Stable device UUID the token is keyed to (a default is provided). |
UNTAPPD_UTV | no | API version param (default 4.0.0). |
UNTAPPD_USER_AGENT | no | Override the User-Agent (default mimics the app). |
UNTAPPD_TIMEZONE | no | IANA timezone (e.g. America/New_York) that check-ins are stamped with when the call doesn't pass timezone. Set it when the server runs somewhere other than the drinker's zone (e.g. a hosted connector, usually UTC). Defaults to the server process's zone. |
UNTAPPD_PHOTO_DIR | no | The directory untappd_checkin's photo_path must be inside (several allowed, separated by :). Defaults to ~/Downloads/untappd-mcp — put a photo there to attach it. Any other file is refused, so a prompt-injected shout or comment can't publish an arbitrary image from your disk. |
UNTAPPD_CACHE_DB | no | Path to the local check-in cache SQLite file (default ~/.untappd-mcp/checkins.db). A relative path or leading ~ resolves against your home directory, never the working directory, so every host (Claude Desktop, Claude Code, …) finds the same file; the resolved path is logged to stderr at startup. The db file is always made owner-only (0600), and so are any directories the server creates plus the default ~/.untappd-mcp; a directory you point this into that already exists keeps its permissions. Local/stdio only. |
UNTAPPD_CACHE_DIR | no | Directory for the cache instead of ~/.untappd-mcp (the file is checkins.db inside it). UNTAPPD_CACHE_DB wins if both are set. |
UNTAPPD_RATE_LIMIT_PER_HOUR | no | The hourly call limit the syncs' stop-before-429 guard enforces (default 100, Untappd's documented per-token limit). Only change it if Untappd gives your token a different limit. |
Copy .env.example to .env and fill it in for local use.
Confirmations
Every write asks you to confirm it first. A client that can show a confirmation
prompt (Claude Code) shows one (unless MCP_CONFIRM_ELICITATION=off). Elsewhere the write takes two calls: the first
does nothing and returns a preview of the exact request plus a confirmToken,
and only a repeat call with the same arguments and that token performs it. A
token works once, for that tool and those arguments only; change anything and
the call is refused with a fresh preview.