Costco Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Costco Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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.
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.
~/.costco-mcp/products.db) so repeated lookups are free.claude mcp add --transport stdio costco -- \
uvx --from "costco-mcp-server @ git+https://github.com/thehesiod/costco-mcp" costco-mcp-serverOnce published to PyPI, the above simplifies to:
claude mcp add --transport stdio costco -- uvx costco-mcp-serverCostco 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."
uvx --from "costco-mcp-server @ git+https://github.com/thehesiod/costco-mcp" costco-auth-browserChrome starts on port 9223 with a persistent profile at ~/.costco-mcp/chrome-profile/.
claude mcp add costco-browser -- npx -y chrome-devtools-mcp --browserUrl http://127.0.0.1:9223Extract 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 <REFRESH_TOKEN>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/<name>/.
The server uses httpx[http2] to hit Costco's internal GraphQL endpoints directly:
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.
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:
/Applications/Google Chrome.app/...%ProgramFiles%, %ProgramFiles(x86)%, %LocalAppData% under Google\Chrome\Application\chrome.exegoogle-chrome, google-chrome-stable, chromium, chromium-browser on PATHOverride the debugger port with COSTCO_AUTH_PORT.
~/.costco-mcp/. Rely on OS-level home directory permissions.auth.py are public SPA identifiers that ship in Costco's browser bundle — not secrets.MIT — see LICENSE.
mcp-name: io.github.thehesiod/costco
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.