Skip to main content
Glama

Stockpile Market MCP Server (mcp-stockpile)

PyPI version Python 3.10+ Protocol Version License: MIT

Official Model Context Protocol (MCP) server for Stockpile Market — the autonomous commerce platform where AI agents and human curators operate real e-commerce storefronts, curate scouted physical items, appraise collectibles, manage orders, and route customer inquiries.


⚡ Quickstart

Option A: Run via uvx (No Installation Required)

If you have uv installed:

uvx mcp-stockpile

Option B: Install via pip or pipx

pip install mcp-stockpile
# or
pipx install mcp-stockpile

Then run:

mcp-stockpile run

Related MCP server: CommerceHub MCP

💻 Client Configuration

1. Claude Desktop

Add this configuration to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "stockpile": {
      "command": "uvx",
      "args": ["mcp-stockpile"],
      "env": {
        "STOCKPILE_API_KEY": "sk_live_YOUR_STORE_API_KEY",
        "STOCKPILE_API_URL": "https://stockpile.market/api"
      }
    }
  }
}

Or using standard Python:

{
  "mcpServers": {
    "stockpile": {
      "command": "python",
      "args": ["-m", "mcp_stockpile"],
      "env": {
        "STOCKPILE_API_KEY": "sk_live_YOUR_STORE_API_KEY"
      }
    }
  }
}

2. Cursor IDE

In Cursor Settings -> Features -> MCP Servers -> Add New MCP Server:

  • Name: stockpile

  • Type: command

  • Command: uvx mcp-stockpile

  • Environment Variables:

    • STOCKPILE_API_KEY: sk_live_...

3. Cline / Roo Code / Windsurf

Configure in your editor's MCP extensions settings:

{
  "mcpServers": {
    "stockpile": {
      "command": "mcp-stockpile",
      "args": ["run"],
      "env": {
        "STOCKPILE_API_KEY": "sk_live_YOUR_KEY"
      }
    }
  }
}

🔑 Authentication & Environment Variables

Variable

Description

Default

STOCKPILE_API_KEY

Your store or agent API key (sk_live_...). Generate from your Store Dashboard -> Agent Assist tab.

""

STOCKPILE_JWT_TOKEN

Optional user bearer token for user-scoped operations.

""

STOCKPILE_API_URL

Stockpile Market API endpoint.

https://stockpile.market/api


🛠️ Complete MCP Tools Directory (23 Tools)

🏬 Store Management

Tool

Description

list_my_stores

List all storefronts owned or managed by this agent account.

get_store_limits

Inspect catalog item limits (50 vs Large Store 500) and store limits (5 vs Store Fleet 50).

set_store_message_receiver

Configure email address and optional webhook where buyer inquiries and store contact messages are routed. Prevents routing to platform admin.

get_store_message_receiver

Read current inquiry receiver routing and fallback settings.

📦 Inventory & Scouting

Tool

Description

get_store_inventory

List active products, prices, stock quantities, and curator notes.

add_store_item

Add a scouted item with price, curator note, source URL, and guaranteed delivery SLA days.

update_store_item

Update item title, price, quantity, active status, or curator note.

delete_store_item

Remove or unlist an item from the storefront.

scout_store_items

Scout fresh commercial products tailored to store niche. Consumes 1 Auto-Credit.

audit_source_urls

Verify supplier source URLs and automatically unlist dead/404 links. Consumes 1 Auto-Credit.

📬 Orders & Escrow Fulfillment

Tool

Description

get_pending_orders

List paid customer orders awaiting shipping and fulfillment.

fulfill_order

Submit carrier (USPS, UPS, FedEx, DHL, etc.) and tracking number. Releases escrow payout upon verification.

📌 Store Bulletin Board

Tool

Description

get_bulletin_board

Read announcements, restocking notices, and curator updates.

post_bulletin_note

Pin a new note or announcement (yellow, kraft, green, blue, pink, purple).

delete_bulletin_note

Remove an unpinned note from the bulletin board.

⚡ Autonomy, Credits & Capacity

Tool

Description

get_store_automation_credits

Check current auto-credit balance, weekly allowances (7 std / 21 co-manager), and weekly Sunday UTC refill time.

run_inventory_sweep

Run automated sweep (audits links, restocks if low, optimizes stale pricing). Consumes 1 Auto-Credit.

run_pricing_audit

Generate competitive pricing recommendations based on margins. Consumes 1 Auto-Credit.

checkout_large_store_tier

Prepare Stripe checkout for 500 items Large Store Pass ($19.99/mo).

checkout_store_fleet_tier

Prepare Stripe checkout for 50 storefronts Fleet Pass ($19.99/mo).

💎 Collector Appraisals & Ingestion

Tool

Description

evaluate_item_collectibility

Appraise rarity score (1-100), collectible tier (Grail, Rare, Collectible), recommended markups, and escrow recommendations.

inventory_collection_batch

Batch ingest and list an estate lot or curated collection directly to catalog.

search_collection_matches

Search catalog to help collectors find missing pieces or check comps.


🔒 Operational & Escrow Guidelines

  1. Payment Gate: Orders cannot be fulfilled until Stripe payment confirmation is received.

  2. Escrow Release: Escrow payout release requires a valid carrier name and genuine tracking number.

  3. Supplier Traceability: Always retain source_url and source_price when adding scouted items so human co-managers can review specs and fulfill orders accurately.

  4. Autonomous Message Routing: Call set_store_message_receiver upon store launch to ensure customer messages flow directly to your agent webhook or store inbox.


🧪 Local Development & Testing

# Clone the repository
git clone https://github.com/casualbrooks/mcp-stockpile.git
cd mcp-stockpile

# Run unit tests
python -m unittest discover -s tests -p "test_*.py"

# Inspect tool list
python -m mcp_stockpile list-tools

📄 License

MIT License. See LICENSE for details. Published by Stockpile Market.

Available Tools

23 tools
add_store_itemB

Add a new scouted item with price, curator note, and delivery guarantee to your store. Always specify source_url so the merchant can review supplier information.

Inputs: name (required), price (required), store_id (required), description (required), +6 more.

audit_source_urlsA

Check all active external supplier/source links in a store and automatically unlist 404 or dead items. Consumes 1 Auto-Credit.

Inputs: store_id (required).

checkout_large_store_tierA

Prepare Stripe checkout payment intent to upgrade a store catalog from 50 to 500 items ($19.99/mo Large Store Pass).

Inputs: store_id (required).

checkout_store_fleet_tierB

Prepare Stripe checkout payment intent to upgrade account store limit from 5 to 50 storefronts ($19.99/mo Store Fleet Pass).

Inputs: no named parameters.

delete_bulletin_noteB

Remove an unpinned note from the store bulletin board.

Inputs: note_id (required), store_id (required).

delete_store_itemC

Remove or unlist an item from your store.

Inputs: item_id (required), store_id (required).

evaluate_item_collectibilityC

Appraise item rarity score (1-100), collectible tier, collector desirability, and estimated secondary valuation across comics, rare books, toys, vintage tech, cars, artwork, garage finds, artisan crafts, and digital assets.

Inputs: item_name (required), category, condition, provenance_notes.

fulfill_orderA

Submit carrier and tracking number once an order has been paid and shipped. Releases escrow payout.

Inputs: order_id (required), tracking_number (required), notes, carrier, +1 more.

get_bulletin_boardB

Read notes, announcements, and restocking alerts pinned to the store's physical-style bulletin board.

Inputs: store_id (required).

get_pending_ordersC

List paid customer orders awaiting shipping and fulfillment for your store.

Inputs: store_id.

get_store_automation_creditsB

Inspect current automation credit balance, weekly allowance (7 for standard, 21 for AI Co-Manager), and next Sunday 00:01 UTC refill time for a store.

Inputs: store_id (required).

get_store_inventoryB

List active and listed items in a store with pricing, quantity, and status.

Inputs: store_id (required).

get_store_limitsB

Inspect store catalog capacity (standard 50 items vs Large Store 500 items) and account store limit (standard 5 vs Store Fleet 50 stores).

Inputs: store_id.

get_store_message_receiverB

Retrieve the current message receiver and fallback routing settings for a store.

Inputs: store_id (required).

inventory_collection_batchC

Batch inventory and list a collection, estate haul, or curated lot directly to a Stockpile storefront catalog.

Inputs: items (required), store_id (required).

list_my_storesB

List all stores owned by or accessible to this agent account.

Inputs: no named parameters.

post_bulletin_noteB

Pin a new note, announcement, or restocking alert to the store bulletin board.

Inputs: message (required), store_id (required), title, is_pinned, +1 more.

run_inventory_sweepB

Perform an automated inventory maintenance sweep (evaluates collection rarity, restocks scouted finds if low, optimizes stale pricing). Consumes 1 base Auto-Credit plus 1 credit per restocked item (up to 5).

Inputs: store_id (required), items_to_scout, min_inventory_target.

run_pricing_auditA

Run an AI pricing audit to generate competitive pricing recommendations for store inventory. Consumes 1 Auto-Credit.

Inputs: store_id (required), strategy.

scout_store_itemsB

Scout fresh commercial products from the web tailored to store niche. Consumes 1 Auto-Credit.

Inputs: store_id (required), count, theme_or_query.

search_collection_matchesB

Search marketplace catalog to help collectors find missing set pieces, track comparative valuations, or verify market availability.

Inputs: query (required), category.

set_store_message_receiverB

Configure where inbound buyer inquiries, store contact messages, and notices for your store are routed (email or webhook). Prevents inquiries routing to platform admin.

Inputs: store_id (required), message_receiver_email (required), notes, webhook_url.

update_store_itemB

Update an existing item's price, quantity, description, or curator note in your store.

Inputs: item_id (required), store_id (required), name, price, +4 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools map to clearly distinct resources/actions: inventory CRUD, bulletin board, orders, credits, tier upgrades, and messaging. The main overlap is among AI credit operations (run_pricing_audit, scout_store_items, audit_source_urls, run_inventory_sweep), though descriptions differentiate them; add_store_item vs inventory_collection_batch also requires attention.

    Naming Consistency4/5

    Names are consistently snake_case and mostly follow a verb_noun pattern such as get_store_limits, add_store_item, update_store_item, and delete_store_item. Minor deviations exist in noun-first or compound labels like inventory_collection_batch and checkout_*_tier, plus 'my' in list_my_stores.

    Tool Count3/5

    At 23 tools, the surface is heavy for a single MCP server, though the domain is broad and each tool has a plausible purpose. Several credit-consuming automation tools could likely be consolidated, placing the count in the borderline-heavy range.

    Completeness4/5

    Inventory lifecycle coverage is strong: add, update, delete, list, batch, scout, audit, and evaluate are all present. Notable gaps remain around store creation, detailed order/refund/cancel operations, and updating bulletin notes, but these are workable limitations rather than severe dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to autonomously browse inventory, negotiate terms, manage carts, and execute secure payments on Shopify stores using standardized protocols. It provides a bridge for LLMs to handle the entire commerce lifecycle from discovery to order tracking through a verifiable mandate chain.
      5
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search, inspect, and purchase physical goods on an escrow-secured marketplace, including listing search, agent reputation checks, and offer creation.
      49
      392 npm
      MIT