Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Costco

by thehesiodversion 0.1.2i★ –iRuns on your computer
Registry nameio.github.thehesiod/costco

Install

Overview

Description from the maker (original English)

MCP server for Costco warehouse receipts and online orders

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Online shops & payments

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • The registry lists no key to fill in.

You need

  • PyPIPython’s uv installed (for the uvx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "costco": {
      "command": "uvx",
      "args": [
        "costco-mcp-server"
      ]
    }
  }
}

Run this in your terminal

claude mcp add costco -- uvx costco-mcp-server

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "costco": {
      "command": "uvx",
      "args": [
        "costco-mcp-server"
      ]
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "costco": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "costco-mcp-server"
      ]
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account thehesiod, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Online shops & paymentsi

  • More stars than 0% of the other 2538 servers in this category
  • Published to the registry more recently than 6% of the other 2538 servers in this category
  • Basic checks equal to or better than 100% of the other 2538 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Costco safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.1.2) reached the registry 7 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Stripe MCP

by stripe

Stripe’s official server lets AI view and manage customers, products, payments and invoices. Connect to Stripe’s cloud and sign in with OAuth.

Runs in the cloud★ 2,043MITUpdated 12 months ago
Install

MCP Cn Commerce

by TonyWang-hub

8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending

Runs on your computer★ 96MITUpdated 28 days ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Costco MCP Server

An MCP (Model Context Protocol) server that gives Claude access to Costco warehouse receipts and online orders. Talks directly to Costco's internal GraphQL API using OAuth2 refresh tokens extracted from a browser session — no scraping, no runtime headless browser. Multi-account (e.g. personal, spouse) with per-account token storage.

Available on the MCP Registry as io.github.thehesiod/costco.

Disclaimer

This project is not affiliated with, endorsed by, or sponsored by Costco Wholesale Corporation. "Costco" and all related names, logos, and trademarks are the property of their respective owners.

This server communicates with Costco's undocumented internal APIs — endpoints that are not published, not guaranteed to be stable, and may change or be blocked at any time without notice. Use of those APIs may violate Costco's Terms of Service; you are responsible for reviewing the ToS and deciding whether your use is acceptable.

Use at your own risk. The authors and contributors accept no responsibility for any consequences of using this software, including but not limited to: account suspension or termination, data loss or corruption, incorrect receipt/order information, failed purchases, financial discrepancies, API rate-limit strikes, IP blocks, or any other direct or indirect damages. No warranty is provided — see LICENSE for the full MIT no-warranty clause.

If Costco publishes an official API, this project should be considered deprecated in favor of that.

Features

Warehouse
  • `list_warehouse_receipts` — In-store receipts for a date range (barcode, warehouse, total)
  • `get_receipt_detail` — Full itemized receipt by barcode (products, quantities, prices, coupons, department codes)
  • `get_all_receipt_details` — Bulk fetch every receipt's full detail for a date range
Online Orders
  • `list_online_orders` — Costco.com orders for a date range (order number, status, items, totals)
Products
  • `lookup_products` — Resolve item numbers to full product names + departments. Uses a local SQLite cache (~/.costco-mcp/products.db) so repeated lookups are free.
Authentication
  • `check_auth_status` — Report token freshness and list configured accounts
  • `save_refresh_token` — Register or update an account's refresh token

Setup

Install in Claude Code
claude mcp add --transport stdio costco -- \

uvx --from "costco-mcp-server @ git+https://github.com/thehesiod/costco-mcp" costco-mcp-server

Once published to PyPI, the above simplifies to:

claude mcp add --transport stdio costco -- uvx costco-mcp-server
Authentication

Costco doesn't expose a public OAuth app, so refresh tokens are extracted from your browser's Azure AD B2C session storage. Refresh tokens are valid for ~90 days; bearer tokens are minted transparently on each API call.

Semi-automated flow (recommended). Uses a dedicated Chrome profile + chrome-devtools-mcp so Claude extracts and registers the token for you. After first setup, each re-auth is "launch the browser, ask Claude to refresh."

  1. Launch the auth browser (cross-platform console script):
   uvx --from "costco-mcp-server @ git+https://github.com/thehesiod/costco-mcp" costco-auth-browser

Chrome starts on port 9223 with a persistent profile at ~/.costco-mcp/chrome-profile/.

  1. Register a chrome-devtools-mcp instance pointed at that port (one time):
   claude mcp add costco-browser -- npx -y chrome-devtools-mcp --browserUrl http://127.0.0.1:9223
  1. Log into costco.com in the launched browser window (first time only — the profile persists).
  1. Ask Claude to refresh:

Extract my Costco refresh token and save it for account "personal".

Claude reads the msal.*.refreshtoken entry from localStorage via chrome-devtools-mcp and calls save_refresh_token.

Manual fallback. If you'd rather not wire up a second MCP: log into costco.com, open DevTools → Application → Local Storage → https://www.costco.com, find the key containing refreshtoken, copy the secret field from its JSON value, then:

uvx --from "costco-mcp-server @ git+https://github.com/thehesiod/costco-mcp" \

costco-mcp-server --save-token personal

Multi-Account

Every tool takes an optional account argument (e.g. "personal", "spouse"). Omitting it uses the default account (first registered, or most recently set). Account data is isolated per name under ~/.costco-mcp/accounts/ /.

How It Works

The server uses httpx[http2] to hit Costco's internal GraphQL endpoints directly:

  • `ecom-api.costco.com/ebusiness/order/v1/orders/graphql` — warehouse receipts + online orders
  • `ecom-api.costco.com/ebusiness/product/v1/products/graphql` — product lookups

Authentication uses Azure AD B2C (signin.costco.com). The public client IDs baked into auth.py (tenant, policy, MSAL/WCS client IDs) ship in Costco's own browser bundle — they are not secrets. No credentials (username/password) are handled by this server.

See CLAUDE.md for architecture details and development notes.

Platform Notes

Fully cross-platform (macOS, Linux, Windows). No shell scripts — all entry points are Python console scripts.

The semi-automated auth flow requires Chrome or Chromium installed at a standard location. costco-auth-browser searches:

  • macOS: /Applications/Google Chrome.app/...
  • Windows: %ProgramFiles%, %ProgramFiles(x86)%, %LocalAppData% under Google\Chrome\Application\chrome.exe
  • Linux / fallback: google-chrome, google-chrome-stable, chromium, chromium-browser on PATH

Override the debugger port with COSTCO_AUTH_PORT.

Security Notes

  • Refresh tokens are stored plaintext in ~/.costco-mcp/. Rely on OS-level home directory permissions.
  • No credentials handled by this server. Authentication happens entirely in your browser's Costco login flow.
  • The Azure AD B2C client IDs in auth.py are public SPA identifiers that ship in Costco's browser bundle — not secrets.

License

MIT — see LICENSE.

mcp-name: io.github.thehesiod/costco

Ask PopNx