Skip to main content
Glama

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-mcp

Claude Code, server only:

claude mcp add tap -- npx -y tap-mcp

Claude 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.

  1. "Which cards do you carry?" → set_my_cards

  2. A renewal date, only for cards whose credits reset on it → set_my_cards with anniversaries

  3. At purchase time: "Have you used your lululemon credit this quarter, and are you enrolled?" → mark_credit

  4. "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)

  5. At purchase time: "Have you used this month's gym reimbursement?" → mark_benefit

  6. Vouchers, companion fares and other balances when they come up → set_balance

Tools

Tool

What it does

optimize_purchase

Best card for a purchase: earn + unused credit, conditions, payment-rail risk, matching benefits, expiring_soon, ask_user, ask_after_purchase. Category general covers most online shopping

whats_expiring

Balances, unused credits and benefit allowances or deadlines lapsing in a window, soonest first

list_cards

Cards and memberships Tap knows (with older names, e.g. Alaska Airlines Visa for Atmos Ascent), and which ones you hold

set_my_cards · mark_credit · set_benefits · mark_benefit · set_balance

Save what you tell your agent

delete_my_data

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 tools
list_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

    A4/5.0

    Scored across 6 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      5
      427 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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
    • F
      license
      A
      quality
      B
      maintenance
      Enables 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
      -