Documentation
Integrate your agent with ShopAgent-enabled stores.
Copy this prompt into Claude, ChatGPT, or your favorite AI assistant.
I want to shop online using ShopAgent. Connect to the ShopAgent MCP server at https://api-production-8d20.up.railway.app/api/mcp and help me find the best products across all stores. Search catalogs, show me images and prices, check for discounts, and help me pick the best deals.API Endpoints
Every ShopAgent store exposes these endpoints. Paid endpoints use HTTP 402 micropayments — no subscriptions, no upfront API keys.
Search Products
Full-text search across a store’s product catalog. Returns matching products with variants, images, and pricing.
POST /apps/shopagent/api/products/searchGet Product Details
Fetch full details for a product by its handle. Includes all variants, availability, and pricing.
GET /apps/shopagent/api/products/:handleCreate Cart
Add items to a cart. Returns a cart ID for use in checkout.
POST /apps/shopagent/api/cartStart Checkout
Convert a cart to a checkout session with buyer info and shipping address.
POST /apps/shopagent/api/checkoutComplete Checkout
Finalize the checkout with a payment token. Creates a Shopify order on the merchant’s store.
POST /apps/shopagent/api/checkout/:id/completeDiscovery
ShopAgent stores broadcast capabilities via well-known URLs. Your agent discovers stores without prior configuration — like search engines discover robots.txt.
Authentication
Transactional endpoints require a Bearer token. Stores provide an API key on plugin install. Discovery endpoints are public.
HTTP 402 Payment Flow
Paid endpoints return 402 on first request with payment requirements. Pay via Tempo USDC or Stripe SPT, then retry with the credential.
MCP Server
For agents supporting the Model Context Protocol, a full MCP server exposes shopping tools directly. Any MCP-compatible agent can connect and shop all stores on the network.
Connect Your Agent
To connect an AI agent to the ShopAgent network, add this MCP server configuration. Once connected, the agent can discover and shop any store on the network automatically.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Add to your project's .mcp.json:
Point your MCP client at:
Or ask your AI agent: "Connect to the ShopAgent MCP server at https://api-production-8d20.up.railway.app/api/mcp so I can shop online."
Pricing
| Endpoint | Cost | Method |
|---|---|---|
| Product Search | $0.01 | HTTP 402 |
| Product Detail | $0.001 | HTTP 402 |
| Create Cart | Free | — |
| Update Cart | Free | — |
| Start Checkout | $0.25 | HTTP 402 |
| Complete Checkout | 1% | Commission |