tap
A card-and-credit picking assistant that tells you the best card to pay with before you buy, plus what's expiring and what you've already used.
Pick the best card for a purchase (
optimize_purchase): give merchant, category and USD amount (optionally date, payment rail, whether booked direct or via issuer portal) and get the user's cards ranked by rewards earned plus any unused statement credit that applies for the period.Surface conditions and warnings: returns enrollment/activation/booking-channel conditions, payment-method risks (e.g. a wallet's one-time card may not trigger merchant credits), and credits/balances expiring within 14 days.
Drive setup questions: returns
ask_userquestions to relay one at a time, answered via theset_/mark_tools.Show what's expiring (
whats_expiring): upcoming balance and unused-credit expirations, soonest first, over a 1–730 day window (default 90).List supported cards (
list_cards): known card slugs, names, annual fees, and which the user holds.Save the user's cards (
set_my_cards): record which of 5 supported cards they hold, with optional renewal dates.Track credit usage (
mark_credit): mark a specific card credit as used or confirmed unused this period.Track expiring balances (
set_balance): store vouchers, certificates, earned credits or points with value, unit, owner and expiry; value 0 removes one.
Provides benefits and statement-credit data for the Chase Sapphire Reserve card, enabling purchase optimization and tracking of used or expiring credits.
Provides benefits and credit data for the Delta SkyMiles Gold card, enabling purchase optimization and credit usage tracking.
Provides benefits and cash-back category/credit data for the Discover it Cash Back card, enabling purchase optimization and credit usage tracking.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tap I'm buying $98 of lululemon — which card should I use?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tap-mcp
The step before an AI agent pays. Before a shopping agent checks out, it asks Tap: which of my cards, which statement credit or other benefit applies (health plan, employer, memberships), have I already used it, and what's about to expire?
Card-picker tools already exist (CardSavvy, PointMaxx and others) and they're good at earn rates. Tap uses CardSavvy's free MCP server for those and adds what a per-purchase answer leaves out:
Credits at the moment you buy. A $98 lululemon order on the Amex Platinum earns $1.47 in points, but the $75 quarterly lululemon credit is worth fifty times that.
What you've already used. A used credit drops out instead of being promised again.
Agent payment risk. When an agent pays with a wallet's one-time card, merchant credits may not trigger. Tap says so.
Benefits beyond cards. HSA and FSA, gym or wellness reimbursements, commuter and phone stipends, Costco or AAA discounts. You describe them once; at checkout Tap says which one covers the purchase and how to use it (pay from the account, claim it back, or apply the discount).
What's expiring. Credits, benefit allowances and balances that lapse within 14 days come back with every answer.
Install
Claude Code (recommended: the plugin adds the server and a tap skill, so your agent checks Tap before every purchase without being asked):
/plugin install tap --marketplace alecbolingbroke/tap-mcpClaude Code, server only:
claude mcp add tap -- npx -y tap-mcpClaude Desktop (claude_desktop_config.json):
{ "mcpServers": { "tap": { "command": "npx", "args": ["-y", "tap-mcp"] } } }Needs Node 20+.
Related MCP server: earnrate
Setup happens in conversation
There's no form. Every answer includes ask_user: the next question the agent should ask, one at a time. At checkout,
optimize_purchase splits them: ask_user holds only what changes this purchase (is the credit still unused?), and
ask_after_purchase holds setup questions, so checkout isn't held up.
The agent should check with Tap before paying for anything, without being asked. Tap's server sends that as standing
instructions, but a server that starts slowly can miss them. The plugin's tap skill (skills/tap/SKILL.md) is what
reliably makes Claude Code call Tap on its own.
"Which cards do you carry?" →
set_my_cardsA renewal date, only for cards whose credits reset on it →
set_my_cardswithanniversariesAt purchase time: "Have you used your lululemon credit this quarter, and are you enrolled?" →
mark_credit"Do you get benefits through work, a health plan or memberships?" →
set_benefits(memberships by slug, others with a quote from your benefits guide; an empty list means none)At purchase time: "Have you used this month's gym reimbursement?" →
mark_benefitVouchers, companion fares and other balances when they come up →
set_balance
Tools
Tool | What it does |
| Best card for a purchase: earn + unused credit, conditions, payment-rail risk, matching |
| Balances, unused credits and benefit allowances or deadlines lapsing in a window, soonest first |
| Cards and memberships Tap knows (with older names, e.g. Alaska Airlines Visa for Atmos Ascent), and which ones you hold |
| Save what you tell your agent |
| Delete everything Tap saved for you (after you confirm) |
Hosted
tap-mcp-http serves the same tools over HTTPS for AI apps that can't start a local server (ChatGPT, Claude on the web).
People sign in with Google, but Tap asks only for an anonymous account id, never a name or email, and keeps each person's
data in their own file. To run your own, see host/README.md.
Privacy
Your cards, benefits, used credits and balances live in one file on your machine: ~/.tap/state.json (change it with TAP_STATE).
Nothing is sent to Tap. To price earn rates, each purchase check sends CardSavvy the card names, merchant, amount and
category, nothing else. If CardSavvy doesn't answer within 8 seconds, Tap uses its own rates.
Cards covered
Credits data covers 5 cards so far: Amex Platinum, Chase Sapphire Reserve, Delta SkyMiles Gold, Atmos Rewards Ascent and
Discover it Cash Back. Each entry is checked against the issuer's page (data/entitlements/, with source links).
How Tap checks benefits
HSA, health FSA, dependent care FSA: every purchase is checked against IRS rules (
data/tax-accounts.json, quoting Publications 502 and 503 and the CARES Act notice). Gym dues on an HSA come back as "can't pay for this", with the reason; a pharmacy run comes back as "depends on the item", with what qualifies.Memberships: Costco Executive, Sam's Club Plus and Walmart+ are checked data like the cards (
data/memberships/), each term quoted from the provider's page. Terms Tap couldn't confirm are marked.Your employer and plan benefits: these differ for everyone, so your agent records them. Share your benefits guide or plan summary, and it saves each one with a quote from the document; every answer says whether a benefit came from a document or only from what you said, and flags a quote that doesn't show the saved amount.
Develop
npm install
npm test # engine, status-file and data checks (Node 22.18+ runs the TypeScript directly)
npm run build # compiles to dist/License
Code: MIT. Card data (data/): CC BY 4.0. Use it, adapt it, credit Tap.
Available Tools
6 toolslist_cardsA
Lists the cards Tap knows (slug, name, annual fee) and which ones the user holds. Use it to match what the user says to slugs.
Inputs: no named parameters.
mark_creditA
Record what the user said about one card credit this period: used = true if they've used it, false if they confirmed it's still unused (Tap then stops asking until the period resets). Credit ids come from optimize_purchase and ask_user.
Inputs: card (required), used (required), credit (required), date.
optimize_purchaseA
The step before you pay: call BEFORE paying for anything. Given the merchant, category and amount, ranks the user's cards by rewards earned (rates from CardSavvy's catalog) plus any statement credit that applies and hasn't been used this period, returns the conditions to check first (enrollment, activation, booking channel), the risks of the payment method, and credits and balances expiring within 14 days. Recommend the best card, relay the warnings, and ask the user the questions in ask_user (one at a time), saving answers with the set_/mark_ tools.
Inputs: amount (required), category (required), merchant (required), date, +2 more.
set_balanceA
Save a balance the user owns that can expire: an airline voucher or code, an earned credit, a certificate, points. Same name + program replaces; value 0 removes it. Never store account or member numbers.
Inputs: name (required), unit (required), value (required), program (required), +3 more.
set_my_cardsA
Save which cards the user holds (replaces the list), and optionally each card's renewal date. Call it when the user tells you their cards. Only cards from list_cards are supported.
Inputs: cards (required), anniversaries.
whats_expiringA
What the user is about to lose: balances (airline codes, earned credits, certificates) nearing expiry, and this period's card credits not yet used, soonest first, with what each needs (enrollment, booking channel, spend). Call it when planning trips or purchases, or when asked what's expiring.
Inputs: today, within_days.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have clearly distinct purposes, but whats_expiring and optimize_purchase both surface expiring credits/balances (optimize_purchase includes items expiring within 14 days). Descriptions help, but an agent asking about expiry could reasonably choose either tool.
Five of six tools follow a verb_noun pattern (set_my_cards, mark_credit, set_balance, optimize_purchase, list_cards). whats_expiring breaks the pattern as an interrogative phrase, and set_my_cards adds a possessive 'my' unlike the others, but the set remains readable.
Six tools cleanly cover the domain's core actions: list/set cards, set balances, mark credits, check expiry, and optimize purchases. There is no obvious bloat or thinness for the stated purpose.
Core write paths and purchase optimization are covered, but there is no tool to list all owned balances/credits (only expiring ones) and no explicit read of credit usage status. The referenced ask_user tool is also absent from the set, leaving a notable interaction gap.
Maintenance
Related MCP Connectors
Agent requests a purchase, the human taps approve, the agent gets a card scoped to it.
Let agents pay with the user's own saved card, approved per purchase with a passkey.
- AgentPaysDeprecateddev.agentpays
Payment infrastructure for AI agents: spending rules, approval flows, single-use virtual cards.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables agents to recommend the best credit card for a given store or category, look up merchant coding, search cards, and inspect rotating bonus calendars using verified reward data.5427 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to choose the best card for a purchase with reasons, identify merchants, inspect wallet caps and bonus progress, compare public welcome offers, and record purchases against caps and bonuses.739 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to pay merchants with policy-limited single-use virtual cards funded from fiat or USDC sources, enforcing spending limits, merchant rules, and owner approval. Card numbers stay out of the agent's context, with cards filled into checkout pages or revealed only to the owner.Apache 2.0
- FlicenseAqualityBmaintenanceEnables AI assistants to pick the best credit card for any purchase by ranking cards on the rupee value of rewards returned, accounting for earn rates, monthly caps and statement cycles. It also logs purchases, tracks reward balances and redemptions, reports spending by category and card, and can look up a card's published reward terms.15-