MCP.Market

Costco MCP server

by thehesiod·io.github.thehesiod/costco·v0.1.2·4 stars

MCP server for Costco warehouse receipts and online orders

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
Growing

4 stars29 downloads/wk

Reviews

Write one

Nobody has reviewed Costco yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Costco tools (7)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • check_auth_status

    Check if authenticated with Costco. Shows token status and expiry.

  • get_all_receipt_details

    Get full itemized details for ALL warehouse receipts in a date range.

  • get_receipt_detail

    Get full itemized receipt detail for a warehouse purchase.

  • list_online_orders

    List online Costco.com orders for a date range.

  • list_warehouse_receipts

    List in-warehouse purchase receipts for a date range.

  • lookup_products

    Look up full Costco product names by item numbers.

  • save_refresh_token

    Save a refresh token obtained from a browser login session.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan8 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 3 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Costco compares

Against every graded E-commerce MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
92/100
higher than 93% of 2,174 E-commerce servers
Tools
7
the typical E-commerce server has 6
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
4
more than 86% of 1,047 E-commerce servers
Downloads a week
29
more than 20% of 411 E-commerce servers with a package

What its tools let an agent do: 6 read · 1 create

Install Costco in Claude Code, Cursor or VS Code

claude mcp add costco -- uvx costco-mcp-server
Add to Cursor

What the publisher says

From the Costco repository's README, as published. We do not edit it. Read it on GitHub

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

  • listwarehousereceipts — In-store receipts for a date range (barcode, warehouse, total)
  • getreceiptdetail — Full itemized receipt by barcode (products, quantities, prices, coupons, department codes)
  • getallreceiptdetails** — Bulk fetch every receipt's full detail for a date range

Online Orders

  • listonlineorders — Costco.com orders for a date range (order number, status, items, totals)

Products

  • lookupproducts** — Resolve item numbers to full product names + departments. Uses a local SQLite cache (~/.costco-mcp/products.db) so repeated lookups are free.

Authentication

  • checkauthstatus — Report token freshness and list configured accounts
  • saverefreshtoken — 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):

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Costco: common questions

Is Costco MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the Costco safety report
How do I install Costco?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Costco need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Costco maintained?
The last commit was 40 days ago (2026-09-25). The latest release is v0.1.2.
What can I use instead of Costco?
Servers from other publishers that do the same job: Tiny MCP server, moysklad-mcp server and Albert Heijn MCP server. Compare all Costco alternatives.
How does Costco compare with other E-commerce MCP servers?
safety score 92/100 (higher than 93% of 2,174 E-commerce servers); tools 7 (the typical E-commerce server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Costco

Same job from other publishers: the closest match first, then the best rated.

All Costco alternatives →
  • Tiny
    MCP server for Tiny ERP — products, stock, warehouses, price lists, orders, invoices, AP/AR
    B
  • moysklad-mcp
    MCP server for MoySklad — warehouse, inventory, orders, reports (Russia)
    A
  • Albert Heijn
    Unofficial Albert Heijn server: products, bonus deals, recipes, shopping list, orders and receipts.
    A
  • Polymarket Toolkit
    Read-only Polymarket data tools for AI agents: profiles, PnL, market scans. No keys, no orders.
    B
  • Sv Number
    Phone numbers for AI agents: order a private number, read the SMS verification code, hand it back.
    B

More from thehesiod →