Skip to main content
Glama

@striderlabs/mcp-costco

MCP server connector for Costco — search products, manage cart, check membership, find warehouses, and place orders via browser automation.

Features

  • Search Products — Search Costco.com by keyword, category, or brand with price filters

  • Product Details — Get full product info, price, availability, and item number

  • Cart Management — Add items, view cart, update quantities, remove items

  • Delivery Options — Check home delivery and warehouse pickup availability

  • Checkout — Preview and place orders (with confirmation step)

  • Order History — View past orders with status

  • Order Tracking — Track shipment status and estimated delivery

  • Membership — Check membership type, number, and renewal date

  • Warehouse Locations — Find nearby Costco warehouses by ZIP or city

  • Warehouse Stock — Check in-store availability at specific locations

Related MCP server: MCP Shop Server

Requirements

  • Node.js 18+

  • A Costco membership account

  • Playwright browsers installed

Installation

npx playwright install chromium

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "costco": {
      "command": "npx",
      "args": ["@striderlabs/mcp-costco"]
    }
  }
}

Tools

Authentication

Tool

Description

status

Check authentication status and session info

login

Authenticate with email and password

logout

Clear session and stored cookies

Shopping

Tool

Description

search_products

Search by name, category, or brand

get_product_details

Get full product info, price, availability

add_to_cart

Add item to cart by URL or item number

view_cart

View cart contents and totals

update_cart

Change quantities or remove items (qty=0 removes)

Delivery & Checkout

Tool

Description

get_delivery_options

Check delivery/pickup availability for a ZIP

select_delivery

Choose home delivery or warehouse pickup

checkout

Preview (confirm=false) or place order (confirm=true)

Orders

Tool

Description

get_orders

View order history

track_order

Track delivery status by order number

Membership & Locations

Tool

Description

get_membership

Check membership type, number, and renewal date

get_warehouse_locations

Find nearby warehouses by ZIP or city

check_warehouse_stock

Check in-warehouse availability

Example Usage

# Login
login(email="you@example.com", password="yourpassword")

# Search for items
search_products(query="kirkland olive oil", limit=5)

# Get product details
get_product_details(item_number="1234567")

# Add to cart
add_to_cart(item_number="1234567", quantity=2)

# Preview checkout
checkout(confirm=false)

# Place order
checkout(confirm=true)

# Check membership
get_membership()

# Find nearby warehouses
get_warehouse_locations(zip_code="94105", limit=3)

Environment Variables

Credentials can also be passed via environment variables (used as defaults if login tool is not called):

Variable

Description

COSTCO_EMAIL

Costco account email

COSTCO_PASSWORD

Costco account password

Session Persistence

Sessions are stored in ~/.striderlabs/costco/ and persist across runs. You only need to log in once per machine.

Headless Mode

By default, the browser runs headless. To debug, pass headless=false to the login tool to see the browser window.

Author

Strider Labs — Building AI agent infrastructure.

License

MIT

Available Tools

16 tools
add_to_cartC

Add a Costco product to the cart

Inputs: url, item_number, quantity.

checkoutA

Preview or complete a Costco order. Use confirm=false to preview first.

Inputs: confirm.

check_warehouse_stockB

Check in-warehouse availability of a product at a specific Costco location

Inputs: item_number, url, zip_code.

get_delivery_optionsB

Check delivery and warehouse pickup availability for cart items or a specific product

Inputs: zip_code (required), item_number.

get_membershipB

Check Costco membership status, type, and renewal date

Inputs: no named parameters.

get_ordersC

View Costco order history

Inputs: limit.

get_product_detailsC

Get detailed product information including price, description, and availability

Inputs: url, item_number.

get_warehouse_locationsC

Find nearby Costco warehouses by ZIP code or city

Inputs: zip_code, city, state, limit.

loginB

Authenticate with Costco account using email and password via browser automation

Inputs: email (required), password (required), headless.

logoutA

Clear Costco session and stored cookies

Inputs: no named parameters.

search_productsC

Search Costco products by name, category, or brand

Inputs: query (required), category, min_price, max_price, +2 more.

select_deliveryC

Choose delivery method — home delivery or warehouse pickup

Inputs: method (required), warehouse_id, zip_code.

statusB

Check Costco authentication status and session info

Inputs: no named parameters.

track_orderC

Track a Costco order delivery status

Inputs: order_number (required).

update_cartB

Update item quantities or remove items from the Costco cart

Inputs: item_number (required), quantity (required).

view_cartB

View current Costco cart contents and totals

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no significant overlap. For example, 'add_to_cart' and 'update_cart' handle different cart operations, while 'check_warehouse_stock' and 'get_delivery_options' address separate availability concerns. The descriptions reinforce these distinctions, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern, such as 'add_to_cart', 'get_product_details', and 'track_order'. This uniformity enhances readability and predictability across the set, with no deviations in style or convention.

    Tool Count5/5

    With 16 tools, the server is well-scoped for a Costco e-commerce domain, covering authentication, product search, cart management, order processing, and membership functions. Each tool serves a specific role, avoiding bloat while providing comprehensive coverage for typical shopping workflows.

    Completeness5/5

    The toolset offers complete coverage for the Costco shopping domain, including CRUD operations for cart items, order lifecycle from checkout to tracking, product discovery, and account management. No obvious gaps exist; agents can perform end-to-end tasks like searching, adding to cart, checking out, and tracking orders seamlessly.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables interaction with Woolworths Australia's online shopping platform through browser automation and API integration. Supports product search, browsing specials, managing shopping cart, and accessing product details through natural language.
      8
      12
      18
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI models to find the best online deals by browsing and interacting with multiple shopping platforms like Amazon and eBay across various regions. It uses Playwright to automate searches and retrieve product information from compatible e-commerce and deal-tracking websites.
      13 npm
      3
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables users to search for beauty products, manage shopping baskets, and complete purchases on Sephora via an AI assistant. It also provides functionality to check Beauty Insider reward points and tier status using browser automation.
      6
      9 npm
      MIT