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_categories and best_card_for_category.
  • "Compare the Chase Sapphire Preferred and the Amex Gold side by side."
    search_cards and compare_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_changes and get_usage.
  • Starter plan and above: get_card_benefits.
  • Pro plan and above: get_transfer_partners, get_transfer_bonuses, get_offer_changes and get_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

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.