CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
thehesiod avatar

Costco

thehesiod/costco-mcp
1STDIOregistry active
Summary

Talks directly to Costco's internal GraphQL API to pull warehouse receipts and online orders into Claude. You get tools to list receipts by date range, fetch itemized detail by barcode, look up product names from item numbers, and check order status. The auth flow extracts OAuth2 refresh tokens from your browser's Azure AD B2C session, either semi-automatically via chrome-devtools-mcp or manually from localStorage. Multi-account support lets you separate personal and household member purchases. Useful for expense tracking, price history analysis, or building Costco spending reports without manual CSV exports.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Costco MCP Server

MCP Registry PyPI

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/.

  2. 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
    
  3. Log into costco.com in the launched browser window (first time only — the profile persists).

  4. 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 <REFRESH_TOKEN>

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/<name>/.

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

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Categories
Data & Analytics
Registryactive
Packagecostco-mcp-server
TransportSTDIO
UpdatedApr 19, 2026
View on GitHub

More from thehesiod

  • Aa
  • Psquare3

Related Data & Analytics MCP Servers

View all →
udhaykumarbala avatar
Gemini Image Studio

io.github.udhaykumarbala/gemini-image-studio

AI image generation and editing with Google Gemini. Structured JSON editing.
1
visus-mcp avatar
Visus Mcp

io.github.visus-mcp/visus-mcp

Security-first web access. Sanitizes pages, blocks injection, redacts PII. Now with PDF/JSON/SVG.
1
vybenetwork avatar
Solana MCP by Vybe

io.github.vybenetwork/vybe-solana-api

Solana MCP for wallets, trades, markets, PnL, transfers, onchain data, signable swaps and API tools.
1
writesdavid avatar
Open Primitive

io.github.writesdavid/open-primitive

33 tools, 30 US federal data domains. Ed25519 signed, provenance chains, entity graph. Free.
1
zerabic avatar
Agentweb

io.github.zerabic/agentweb

Free business data for AI agents. 11M+ businesses, 227 countries, phone/email/hours.
1
keypup-io avatar
Keypup Engineering Analytics

io.keypup/engineering-analytics

Generate answers & visualizations from your engineering data to track software development health.
1