Install
openclaw skills install @gibtang/check-mccLook up credit card rewards eligibility for merchants. Find the best credit card to use at any store, restaurant, or online merchant by checking MCC codes and card bonus categories. Use when the user asks which card to use, what rewards they'll earn, or wants to look up a merchant's MCC code.
openclaw skills install @gibtang/check-mccLook up credit card rewards eligibility for any merchant. Returns which cards earn bonus rewards at a given store based on its MCC (Merchant Category Code).
All API calls go to the configured baseUrl (default: https://check-mcc.com).
check-mcc lookup)Look up a merchant by its website domain. Returns MCC code, category, and eligible cards.
When to use: User mentions a website or online store (e.g., "shopee.sg", "amazon.com").
GET {baseUrl}/api/store-by-domain?domain={domain}®ion={region}
Parameters:
domain (required) — The merchant's domain (e.g., amazon.com, shopee.sg). Protocol, www, and paths are auto-stripped.region (optional) — SG (Singapore) or US (United States). Defaults to SG if omitted.Response:
{
"id": "...",
"Store": "Amazon",
"MCC": "5912",
"Country": "US",
"Category": "Drug Stores and Pharmacies",
"type": "online",
"url": "https://amazon.com",
"eligibleCards": [
{
"name": "Citi Rewards Card",
"shortName": "CRMC",
"eligible": true,
"reason": "4 mpd on online spend",
"mpd": "4",
"spendCap": "$1,000/month"
},
{
"name": "DBS Woman's World Card",
"shortName": "WWMC",
"eligible": false,
"reason": "Excluded: insurance and hospitals"
}
]
}
On 404: The merchant is not in the database. Suggest the user submit it via the website.
check-mcc search)Search for merchants by name. Returns matching store names and their MCC codes.
When to use: User names a store but doesn't provide a domain (e.g., "Starbucks", "NTUC FairPrice").
GET {baseUrl}/api/merchants/search?q={query}
Parameters:
q (required) — Search query. Case-insensitive partial match.Response:
{
"merchants": [
{ "Store": "Starbucks", "MCC": 5814 },
{ "Store": "Starbucks Coffee", "MCC": 5814 }
],
"userDisabledCards": null
}
If multiple results are found, present them to the user and ask which one they mean. If a single clear match is found, proceed to look up card eligibility using the MCC code.
check-mcc cards)Get card eligibility for a specific MCC code. Use when you already know the MCC (e.g., from a search result or the user provided it directly).
When to use: User asks about cards for a known MCC code (e.g., "what cards for MCC 5814?") or after getting MCC from a search.
GET {baseUrl}/api/store-by-domain?domain=_mcc_{mcc}®ion={region}
Alternatively, if you have a merchant name, search first and then use the domain lookup for full card details.
Check if an MCC code is valid.
GET {baseUrl}/api/mcc/codes
Response:
{
"codes": ["0001", "0002", ..., "9999"]
}
Use this to validate a user-provided MCC before looking up cards.
Follow this decision tree when a user asks about card rewards:
lookup directlysearch to find the merchant, then lookup on the matching domain for card detailscodes endpoint, then explain the category and card eligibilityWhen showing card eligibility to the user:
Best cards for {Store} (MCC {code} - {Category}):
✅ Citi Rewards Card — 4 mpd on online spend (cap: $1,000/month)
✅ UOB PPV — 4 mpd on mobile contactless payments
❌ DBS Woman's World Card — Excluded: insurance and hospitals
region=SG (Singapore) and region=US (United States)defaultRegionUser: "Which card should I use at Shopee?"
You: Search for "Shopee" → find shopee.sg → lookup domain → show eligible cards
User: "Best card for Amazon?"
You: Lookup amazon.com → show eligible cards for the user's region
User: "What's the MCC code for restaurants?" You: Explain MCC 5812 (Eating Places) and 5814 (Fast Food), then offer to look up card eligibility
User: "check-mcc lookup godaddy.com"
You: Directly call lookup with domain=godaddy.com → show results