CardAPI MCP Server: Live Credit Card Data in Claude, Cursor and VS Code
CardAPI is now available as an MCP server. Claude, Cursor, VS Code and other MCP clients can look up current credit card data for the US and Canada while they answer, on your own CardAPI key, rather than from training data that may be out of date.
Published 6 December 2026
What it is
MCP, the Model Context Protocol, is how an AI assistant calls outside tools. @cardapi/mcp is CardAPI's server for it. Your MCP client starts it on your machine with npx, and the assistant gets read-only tools for cards, reward rates by spending category, welcome offers, issuer application rules, transfer partners and bonuses, and point valuations.
The server has no key or data of its own and caches nothing. Every tool call goes to the CardAPI REST API on your key, so your plan's fields, endpoint gates and quota apply exactly as they do for the API.
Questions to try
Ask your assistant things like these. The tools it uses to answer are named beside each question.
- "What is the best no-annual-fee card for groceries in Canada?"
list_categoriesandbest_card_for_category. - "Compare the Chase Sapphire Preferred and the Amex Gold side by side."
search_cardsandcompare_cards. - "Which Aeroplan transfer bonuses are running right now?"
get_transfer_bonuses, which needs the Pro plan or above.
Install
A free key is enough, and no credit card is required: get a free key, then copy it from the developer portal. Replace YOUR_API_KEY below with it. This adds the server to Claude Code:
claude mcp add --env CARDAPI_API_KEY=YOUR_API_KEY --transport stdio cardapi -- npx -y @cardapi/mcp
Claude Desktop, Cursor, VS Code and any other client that starts a local server take the same command and the CARDAPI_API_KEY variable. The snippet for each, and what to check if the server does not start, are on /docs/mcp.
Tools and plans
The server has 16 read-only tools and 2 prompts, which clients show as slash commands: recommend_card and compare_my_cards. Each tool is listed under the lowest plan whose key can use it.
- Every plan:
search_cards,get_card,list_cards,best_card_for_category,compare_cards,list_categories,list_issuers,get_application_rules,get_reward_valuations,get_product_changesandget_usage. - Starter plan and above:
get_card_benefits. - Pro plan and above:
get_transfer_partners,get_transfer_bonuses,get_offer_changesandget_card_history.
Each tool respects your plan exactly as the REST API does. A tool above your plan answers with an error that names the plan it needs and links to pricing, and nothing else is tried in its place. Fields your plan holds back from a card are left out, and the result says so. Every tool call counts against your daily and monthly quota like any other API call, and get_usage shows what is left.
Where it is listed
- npm: @cardapi/mcp, run with
npx -y @cardapi/mcp. - The official MCP registry: dev.cardapi/cardapi.
- Source: github.com/felixsingerman/cardapi-mcp.
The server's code is MIT licensed. The data it returns is licensed by plan under CardAPI's terms: show it to your own users, and don't re-serve it raw.
Prefer your own tool-calling code to MCP? See Give an AI agent live credit card data.
Related guides
- Credit card data APIs compared: CardAPI next to other credit card data APIs, each row from that product's own public pages and dated.
- Give an AI agent live credit card data: Tool definitions and handler code for an LLM agent, plus the MCP server for Claude, Cursor and VS Code.
- Plaid + CardAPI: from a linked card to its reward rates: Match a Plaid credit account to a card, have the user confirm it, then score transactions by category.
- A "which card should I use?" endpoint with /v1/cards/best: Rank cards by what they earn in a spending category: the filters, store exclusions, wallet ranking and point values.
- Build a credit card comparison site with Next.js: A step-by-step walkthrough with the SDK and incremental static regeneration.