npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

creditkarma-mcp

v2.0.0

Published

MCP server for Credit Karma — natural-language access to your transactions, spending, and accounts

Readme

Credit Karma MCP

A Model Context Protocol server that connects Claude to Credit Karma, giving you natural-language access to your transactions, spending patterns, and account summaries.

[!WARNING] AI-developed project. This codebase was entirely built and is actively maintained by Claude Sonnet 4.6. No human has audited the implementation. Review all code and tool permissions before use.

What you can do

Ask Claude things like:

  • "Sync my latest transactions"
  • "What did I spend on food last month?"
  • "Show me my top merchants this year"
  • "How much did I spend in March compared to February?"
  • "Which accounts have the most activity?"
  • "Run a SQL query against my transactions"

Requirements

Installation

1. Clone and build

git clone https://github.com/chrischall/creditkarma-mcp.git
cd creditkarma-mcp
npm install
npm run build

2. Configure

cp .env.example .env
# See "Authentication" below to get your CK_COOKIES value

3. Add to Claude

Claude Code — add to .mcp.json in your project:

{
  "mcpServers": {
    "creditkarma": {
      "command": "node",
      "args": ["/absolute/path/to/creditkarma-mcp/dist/index.js"]
    }
  }
}

Claude Desktop — edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "creditkarma": {
      "command": "node",
      "args": ["/absolute/path/to/creditkarma-mcp/dist/index.js"],
      "env": {
        "CK_COOKIES": "your-ckat-value-here"
      }
    }
  }
}

4. Restart Claude

Fully quit and relaunch. Then ask: "Sync my Credit Karma transactions".

Authentication

Credit Karma uses short-lived JWTs. This server handles automatic token refresh — you only need to set up credentials once (or when your session expires).

Getting your credentials

  1. Log in to creditkarma.com in Chrome
  2. Open DevTools → ApplicationCookieshttps://www.creditkarma.com
  3. Find the CKAT cookie and copy its value

Setting credentials

Call ck_set_session with your cookie value — it accepts any of:

| Format | Example | |--------|---------| | Raw CKAT value | eyJraWQ...%3BeyJraWQ... | | CKAT=<value> | CKAT=eyJraWQ...%3BeyJraWQ... | | Full Cookie header | (paste the entire Cookie header from DevTools → Network) |

Or set CK_COOKIES directly in your .env file (any of the three formats above).

The server automatically extracts both the access token and refresh token from the CKAT cookie, and refreshes the access token as needed.

Session expiry

  • Access token: ~15 minutes (auto-refreshed transparently)
  • Refresh token: ~8 hours
  • When the refresh token expires, log in to creditkarma.com again, grab the new CKAT cookie, and call ck_set_session

Available tools

| Tool | What it does | |------|-------------| | ck_set_session | Store credentials from your browser cookies (auto-extracts tokens from CKAT) | | ck_sync_transactions | Sync transactions into the local SQLite database | | ck_list_transactions | List transactions with filters (date, account, category, merchant, amount) | | ck_get_recent_transactions | Fetch the N most recent transactions | | ck_get_spending_by_category | Spending totals grouped by category | | ck_get_spending_by_merchant | Spending totals grouped by merchant | | ck_get_account_summary | Transaction counts and totals by account | | ck_query_sql | Run a read-only SQL query against the local database |

How it works

Transactions are synced from Credit Karma's GraphQL API into a local SQLite database (default: ~/.creditkarma-mcp/transactions.db). All query tools run against this local database — fast, offline-capable, and queryable with SQL.

Sync strategy: incremental by default (fetches since last sync date with a 30-day overlap for updates). Use force_full: true to re-fetch everything.

Auto-refresh: if the access token has expired, the server automatically refreshes it before syncing. If the refresh token has also expired, it throws an error asking you to re-authenticate.

Database schema

transactions (id, date, description, status, amount, account_id, category_id, merchant_id, raw_json)
accounts     (id, name, type, provider_name, display)
categories   (id, name, type)
merchants    (id, name)
sync_state   (key, value)

Configuration

| Env var | Description | Default | |---------|-------------|---------| | CK_COOKIES | CKAT value, CKAT=<value>, or full Cookie header | (required) | | CK_DB_PATH | Path to SQLite database file | ~/.creditkarma-mcp/transactions.db |

Troubleshooting

"TOKEN_EXPIRED" — your refresh token has expired. Log in to creditkarma.com, grab the new CKAT cookie, and call ck_set_session.

Sync returns 0 transactions — check that your CK_COOKIES value is fresh. CKAT cookies expire after ~8 hours.

Tools not appearing — fully quit and relaunch Claude Desktop. In Claude Code, run /mcp to check server status.

"No such file or directory: dist/transaction.graphql" — run npm run build (not just tsc).

Security

  • Credentials are stored only in your local .env file (gitignored) or Claude config
  • The server never logs credentials
  • Only SELECT queries are permitted via ck_query_sql — no writes to Credit Karma

Development

npm test            # run the test suite
npm run build       # compile TypeScript → dist/
npm run test:watch  # watch mode

Project structure

src/
  client.ts             Credit Karma GraphQL client with auto-refresh
  index.ts              MCP server entry point
  db.ts                 SQLite schema and upsert helpers
  transaction.graphql   GraphQL query for transactions
  tools/
    auth.ts             ck_set_session
    sync.ts             ck_sync_transactions
    query.ts            ck_list_transactions, ck_get_recent_transactions, etc.
    sql.ts              ck_query_sql
tests/
  client.test.ts
  db.test.ts
  tools/
    auth.test.ts
    sync.test.ts
    query.test.ts
    sql.test.ts

License

MIT