
Untappd Mcp
io.github.chrischall由 GitHub 帳號 chrischall 發布v2.7.0更新於 Nov 7, 2026
Untappd MCP — search beers/breweries/venues, read check-ins & wishlists, post check-ins
概覽
非官方 Untappd 用戶端,讓助理搜尋啤酒、酒廠與場所,讀取打卡與願望清單,並發布打卡、敬酒與留言。
- 可以做什麼
- 搜尋並檢視啤酒、酒廠與場所的資訊、動態、菜單與熱門啤酒
- 讀取個人檔案、打卡紀錄、願望清單、不重複啤酒、徽章、好友、通知與好友動態
- 發布可附照片的打卡,以及敬酒、留言、願望清單與好友變更,每項寫入都需先確認
- 把打卡與不重複啤酒歷史同步到本機 SQLite 快取,離線回答是否喝過、尚未喝過與評分排序問題
- 為指定使用者排序酒單或場所菜單,並依最多 25 個站點規劃行程、給出尚未喝過的推薦
- 適用情境
- 適合讓助理查詢啤酒、酒廠或場所資訊,從菜單或酒單挑選要喝什麼,查看自己或好友是否喝過某款酒,或在本人 Untappd 帳號上記錄打卡與進行社群操作。
- 執行需求
- 以 npm 套件透過 stdio 在本機執行,需要 Node.js。驗證使用 UNTAPPD_ACCESS_TOKEN,或 UNTAPPD_USERNAME 加 UNTAPPD_PASSWORD;登入與所有寫入還需要 UNTAPPD_CLIENT_ID 與 UNTAPPD_CLIENT_SECRET,須從手機應用程式流量中取得。選用設定包括快取路徑、照片目錄、時區與速率限制。需要能連線至 Untappd 介面的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Untappd Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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: Bearerheader, never in the URL (the app uses anaccess_tokenquery param; the API accepts both). - Writes carry it as an
Authorization: Bearerheader (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
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.
Obtaining the client id / secret
Untappd does not publish these; they live in the mobile app. Capture them from your own app's traffic with an HTTPS proxy:
- Install a proxy such as mitmproxy and trust its CA certificate on the device running the Untappd app.
- Point the device (or, on an Apple-silicon Mac running the iPad app, the Mac's system HTTP/HTTPS proxy) at the proxy.
- Open Untappd and sign in. Find the
POST https://api.untappd.com/v4/xauthrequest — its query string containsclient_idandclient_secret. - Put those into
UNTAPPD_CLIENT_ID/UNTAPPD_CLIENT_SECRET.
Keep these values private; do not commit them.
Tools
Reads: untappd_search_beer, untappd_beer_info, untappd_beer_activity,
untappd_search_brewery, untappd_brewery_info, untappd_brewery_beers,
untappd_search_venue, untappd_venue_info, untappd_venue_activity,
untappd_user_info, untappd_user_checkins, untappd_user_wishlist,
untappd_user_beers, untappd_user_badges, untappd_user_friends, untappd_pending_friends,
untappd_activity_feed, untappd_checkin_info, untappd_resolve, untappd_open_url, untappd_user_venues, untappd_venue_by_foursquare, untappd_trending,
untappd_notifications, untappd_local_checkins, untappd_upload_slots, untappd_healthcheck.
Writes (each asks you to confirm first — see Confirmations): untappd_toast, untappd_add_comment, untappd_delete_comment, untappd_checkin,
untappd_wishlist_add, untappd_wishlist_remove, untappd_delete_checkin,
untappd_add_friend, untappd_accept_friend, untappd_reject_friend, untappd_remove_friend.
Check-in photos
untappd_checkin takes one photo (JPEG or PNG, max 15 MB) through exactly one of:
photo_path— a file on the machine the server runs on, insideUNTAPPD_PHOTO_DIR. Local installs only: on the hosted connector the server can't see your files, so a path is refused with directions to the slot flow below.photo_inline—{filename, contentBase64, mimeType?}. Works anywhere; fine for a small photo, but every byte rides inside the tool call.photo_blob_key— the hosted connector's route.untappd_upload_slots(slots: [{filename}]) returns a signed upload URL and a readycurlper photo; PUT the photo with it, then pass the slot'sblobKey. It refuses on a deployment with no blob store.
Every route is checked the same way (image type, size cap, bytes that really are a JPEG/PNG), and the
confirmation preview names the photo and its SHA-256 — a blob that changes between the preview and the
confirmed call is refused (DRAFT_CHANGED). An uploaded blob is deleted only after the check-in and its
photo succeed (photo_blob: {deleted: true}); otherwise it is kept (kept: true) so you can retry.
Check-in cache: untappd_sync_checkins, untappd_sync_user_beers,
untappd_cache_has_had, untappd_cache_has_had_many, untappd_cache_not_had,
untappd_cache_query, untappd_top_not_had, untappd_cache_status, untappd_cache_forget,
untappd_sync_wishlist (mirrors a user's wishlist locally so picks can boost wishlisted beers),
untappd_sync_brewery_likes (mirrors the breweries a user likes/follows on Untappd, as "untappd" favorites),
untappd_sync_user_venues + untappd_cache_has_visited (a user's full venue history — "has this person
been here?" — which pages fully for any public/friend account, unlike their check-ins).
Trip planning: untappd_trip_check takes a user (or usernames + mode) and up to 25 stops — each a
venue_id, a name (+ city/state), a lat/lng, and/or a brewery_id — and returns per stop:
whether they've been there (first/recent visit, total visits, the matched venues incl. Untappd's
"(duplicate of …)" copies; a brewery stop is matched by the brewery's name), how many of the brewery's
beers they've had, and the top N (default 4) not-had beers by Untappd global rating, with an
optional style filter (out-of-production beers skipped unless asked). Visits and has-had are answered
from the cache only; the one API call it may make is brewery/beer_list for a brewery whose list isn't
cached or is past its 7-day TTL — at most api_budget (default 5; 0 = strictly cache-only, using a
stale list flagged stale), under the rate-limit guard. Favorite venues and breweries are flagged,
prefer_favorites (default true) boosts wishlisted and favorite-brewery beers (liked on Untappd, derived or
manual), and a stop within
near_favorite_radius_m (default 2 km) of a favorite venue gets near_favorites and a "Near a
favorite: …" hint.
Group checks: untappd_cache_has_had_many and untappd_top_not_had accept usernames (up to 10)
with mode: "none_had" (default — beers new to everyone) or "any_not_had" (beers at least one of
them still needs); each beer says who has and hasn't had it.
What they drank at a venue (opt-in, costs calls): untappd_sync_venue_drinks fetches the beer from
each cached venue's first and most-recent visit check-in (checkin/view, budgeted by max_calls,
stops before the rate limit). It's a partial picture — two check-ins per venue at most — shown in
untappd_cache_has_visited as drinks.
Favorites (cache only, never written to Untappd): untappd_favorites_list lists a user's favorite
beers, breweries and venues, each once with its sources and a reason. Derived favorites come
from the synced history — venues with ≥5 check-ins or visits spanning ≥3 distinct months; breweries
with ≥5 beers had and an average rating ≥3.75, or ≥15 beers; beers rated ≥4.25 or had ≥3 times —
and every threshold can be overridden per call. Manual favorites are added and removed with
untappd_favorite_add / untappd_favorite_remove (local table, optional note). Results from
untappd_cache_has_had, untappd_cache_has_had_many, untappd_cache_has_visited, untappd_brewery_beers, untappd_venue_menu
and untappd_top_not_had carry a favorite field {is_favorite, sources, reason}, and
untappd_top_not_had ranks wishlisted beers and beers from favorite breweries higher by default
(prefer_favorites: false turns that off); untappd_trip_check carries the same flags and boost.
Untappd favorites (breweries only): untappd_sync_brewery_likes mirrors the breweries a user
"likes" on Untappd (user/brewerylikes — the app calls them "followings"; works for another user's
public/friend account, ~50 per call). Like the wishlist sync it's a full pass from the top, resumable
(cursor saved every page, another_run_needed, percent), stops before the rate limit with
stopped_for_rate_limit + resume info, and only drops unliked breweries once a pass finishes. Liked
breweries then carry the source untappd everywhere favorites appear — merged with derived and
manual, each source listed once — and count for the prefer_favorites boost and trip_check's flags.
untappd_cache_status reports each user's brewery_likes coverage, and untappd_cache_forget removes them.
Untappd has no followed or favorite venue list at all (no web or API route; venue/info has no
per-user flag), so venue favorites are derived + manual only. brewery/info's
claimed_status.follow_status describes the signed-in account, like have_had below, so it is
never used for anyone else — the synced likes list is how to see another user's.
Cached reads (to stretch the ~100 calls/hour limit): untappd_brewery_beers keeps each brewery's
list for 7 days, and untappd_venue_menu / untappd_venue_activity keep results for 6 hours; each
reports where the answer came from and takes refresh: true to re-fetch. Untappd's have_had on a
brewery's beer list describes the signed-in account, never the user you're asking about, so it
isn't cached or returned — use untappd_cache_has_had_many for any user.
Menu picks: untappd_menu_pick (tap-list lines in, ranked not-had beers out),
untappd_venue_pick (same, from a venue's Untappd menu).
Picking a beer off a menu
untappd_menu_pick turns "find Mer a beer" from a menu photo into one call.
Give it the lines as read off the board:
In one call it:
- Freshens the cache. If the user's distinct-beers list is already complete
it does an incremental refresh, stopping at the first beer that's cached and
unchanged (usually one page). If the list is empty or partial it backfills
in the same call until done or
api_budget(default 60 calls, shared by every step) runs out. You never need to call a sync tool first. - Resolves each line to a beer. It strips prices, sizes, ABV and
punctuation, searches Untappd (falling back to a query without the style
word, because Untappd search matches every term), and scores the candidates
on brewery match, beer-name match (so "Homestyle" isn't read as "Double
Homestyle"), check-in volume (the canonical entry wins over a 3-check-in
duplicate) and
venue_city. Up to 4 searches run at once, and a 429 is retried with backoff. Resolutions are cached on disk, so the next visit to the same venue costs no searches. - Handles generic lines.
<Brewery> SEASONAL/ROTATINGbecomes apossiblelist of that brewery's seasonal-looking beers, markedneeds_confirmation. A line with no brewery (ROTATING CIDER) comes backunresolved: "ask bartender". - Checks every beer against the cache (both sources, as
has_had_manydoes). - Ranks the not-had beers by global rating, applies
style_filter, and returns the toptop_naspicks.
Output for the call above, with Mer having had Fennario (abridged: not_had
also lists the Tennessee Lager at 3.33, possible lists six candidates, and a
freshness block is appended):
sync says what the refresh did; coverage lives in freshness. If the budget
runs out before the backfill finishes, freshness.coverage_complete is false,
another_run_needed is true, and the freshness caveat warns that a "not
had" may be a false negative. Calling again continues from where it stopped.
Quota. When an Untappd response carries X-Ratelimit-Remaining, the server
remembers it for the hour, and every budgeted tool (menu_pick, venue_pick,
top_not_had, both syncs) caps its budget to what's left. The result then
includes quota_remaining, plus budget_clamped_to_quota: true when the cap
applied. Untappd's public API documents the header; if the private API this
server uses doesn't send it, budgets work exactly as before.
untappd_venue_pick takes an Untappd venue URL (https://untappd.com/v/<slug>/<id>)
or id instead of items. It pages through the venue's whole verified menu, takes
the venue's city from it, and runs the same check and ranking. Menu items already
carry beer ids, so there is no search step.
Check-in cache
The Untappd API only exposes paged lists (50 per page) and has no "has this
user ever had beer X?" lookup — answering that from the API alone means paging an
entire history (often 11k+ check-ins) against a tight ~100-calls/hour rate limit.
These tools maintain a SQLite mirror so the question is answered instantly,
offline, with zero API calls. The mirror is a local SQLite file
(node:sqlite, default ~/.untappd-mcp/checkins.db, overridable with
UNTAPPD_CACHE_DB / UNTAPPD_CACHE_DIR). The store is injectable, so another
deployment can back it differently without the tools changing.
Persistence. The file survives restarts, and a backfill that was cut off
(rate limit, crash, host quit) resumes from its saved offset on the next sync.
The file runs in WAL mode with a busy timeout and does every write in a
transaction, so two hosts open at the same time can share it. The schema is
versioned (PRAGMA user_version) and only ever migrated forward, adding
columns and tables, so an upgrade never wipes it. untappd_cache_status shows
the resolved path, size, schema version and per-user coverage.
Two sync sources fill the cache:
untappd_sync_user_beerspagesuser/beers— the user's complete distinct-beers list (thousands of rows, not tens of thousands of check-ins). This is the cheapest way to get full "has had" coverage and, unlikeuser/checkins, it pages fully for any public/friend account. Start here for has-had questions.untappd_sync_checkinspagesuser/checkinsfor detailed check-ins (venue, date, comment). Only your own account pages fully — Untappd returns just the ~50 most recent for anyone else and won't page further, which the tool reports ashistory_truncated(it never falsely claimsbackfill_complete). Passforce_backfill: trueto reset a cache wrongly marked complete and re-page from newest (cached rows are kept). Use this for recent venue/date detail; useuntappd_sync_user_beersfor coverage.
Both are resumable: they fetch max_pages per call (default 10), persist
progress after every page, and set another_run_needed: true until done — just
call again until it's false.
Rate limit. Every API response is recorded (time, status and any
X-Ratelimit-* / Retry-After headers) and, once the cache is open, logged in
the cache file so every process sharing it — and the next one — counts the same
hour. The syncs check that count before every page and stop cleanly with
stopped_for_rate_limit: true and rate_limit.resume_at when the next call
would leave fewer than 2 of the ~100 hourly calls; a 429 that slips through also
stops the run cleanly instead of failing it. Progress is already saved, so
re-run after resume_at. untappd_cache_status shows the current picture under
rate_limit. Note: the v4 API sends X-Ratelimit-Remaining: 0 on every
successful response, so that header is ignored until it reports a live
(non-zero) value; the estimate rests on the local call count.
Query the cache with no further API calls. The has-had tools consult both sources (a hit in either counts as had):
untappd_cache_has_had— has the user had a beer, by exactbidor a case-insensitivebeer_namesubstring; returns count, best rating, last date, matching sources, and any detailed check-ins.untappd_cache_has_had_many— cross-check a whole list ofbidsin one call (e.g. a venue's menu) → had/not-had per beer.untappd_cache_not_had— given a list ofbids, return just the ones the user has not had — the "what's new to me on this menu?" filter.untappd_top_not_had— from a list ofbids, return the top N not-had beers ranked by Untappd global rating, with an optionalstylefilter (the "what should I order off this tap list?" tool). Not-had filtering is cache-only; beer ratings come from a metadata cache (beer_meta) that's seeded opportunistically byuntappd_beer_info/untappd_search_beerand topped up viabeer/infoonly on a cache miss or entries older than 30 days — capped atapi_budgetcalls/run (default 25), returningpartial: true/another_run_needed: truewhen more are needed.untappd_cache_query— filter cached check-ins by brewery, style,min_rating, venue, and/or date range, with sorting and a limit.
Every read result carries a freshness block that reports each source's
completeness separately (checkins.backfill_complete / history_truncated,
beers.complete, per-source percentages) plus coverage_complete, and a
caveat while coverage is incomplete — so a "not found" can be flagged as
possibly a false negative until the relevant sync finishes.
Syncing another user goes through the same authed endpoint as
untappd_user_checkins, so Untappd's privacy rules apply: it only works if that
account is public or your friend. Otherwise the sync returns a clear error
telling you to add them as a friend first.
Retention. Nothing in the cache expires: synced rows — including another
user's dated check-ins, comments and venues — stay until you remove them. The
file is created owner-only (directory 0700, database 0600, and older
installs are tightened on open). untappd_cache_forget deletes one user's
cached check-ins, distinct-beers list, venue history, wishlist copy, liked
breweries, local favorites, venue drinks and sync state after a confirmation
(preview shows the username and row counts); it touches only the local cache,
never Untappd, and a later sync can re-fetch. Deleting the file removes
everything.
A cache holds only the check-ins the account it belongs to was allowed to
fetch. untappd_healthcheck reports the running version and the exact tool set
(count + names + a stable hash), so you can confirm which build is serving.
Development
License
MIT
來源:README.md,提交 47c6a1c
工具
0版本歷史
19- v2.7.0最新Nov 7, 2026
- v2.6.1Nov 4, 2026
- v2.5.2Nov 3, 2026
- v2.5.0Nov 3, 2026
- v2.4.0Oct 24, 2026
- v2.3.2Oct 16, 2026
- v2.3.1Oct 10, 2026
- v2.3.0Oct 7, 2026
- v2.2.4Oct 5, 2026
- v2.2.3Oct 3, 2026
- v2.2.1Sep 25, 2026
- v2.2.0Sep 24, 2026
- v2.1.3Sep 23, 2026
- v2.1.2Sep 23, 2026
- v2.1.1Sep 21, 2026
- v2.1.0Sep 20, 2026
- v2.0.0Sep 19, 2026
- v1.11.4Sep 17, 2026
- v1.11.3Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。