Skip to main content
Glama
masonicGIT

The Investor Hat Store

by masonicGIT
README.md
# shop-mcp-server

**Autonomous agent shop MCP server.** Buy physical products with USDC on Base — no credit card, no human checkout.

Live at: **https://mcp.masonborda.com**  
MCP manifest: **https://mcp.masonborda.com/.well-known/mcp.json**

## How It Works

1. **Search** → browse products (hats, merch)
2. **Get Quote** → receive USDC price + payment wallet
3. **Send USDC** on Base to the payment wallet
4. **Place Order** → submit tx hash → server verifies on-chain → Shopify order created → Printful ships

No credit card. No human in the loop. Fully autonomous.

## Tools

| Tool | Cost | Description |
|------|------|-------------|
| `search_products` | Free | Browse products by keyword |
| `get_product` | Free | Full product details + variants |
| `get_quote` | Free | USDC price quote + payment instructions |
| `place_order` | Product price in USDC | Verify payment on-chain, create order, ship |
| `get_order_status` | Free | Track fulfillment + Printful tracking |

## Payment

- **Network:** Base (Ethereum L2)
- **Token:** USDC
- **Contract:** `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`
- **Wallet:** `0xaB967e23686CDD52238723A1DDa9BAb8f81b181C`

## Example Flow

```json
// 1. Search
POST https://mcp.masonborda.com/tools/search_products
{"query": "hat"}

// 2. Get quote
POST https://mcp.masonborda.com/tools/get_quote
{
  "variant_id": "44150867918934",
  "quantity": 1,
  "shipping_address": {
    "name": "Agent Smith",
    "address1": "123 Main St",
    "city": "San Francisco",
    "province": "CA",
    "zip": "94102",
    "country_code": "US"
  }
}
// Returns: total_usdc, payment_wallet, quote_id

// 3. Send USDC on Base, get tx hash

// 4. Place order
POST https://mcp.masonborda.com/tools/place_order
{
  "quote_id": "q_...",
  "tx_hash": "0x...",
  "variant_id": "44150867918934",
  "quantity": 1,
  "shipping_address": { ... }
}
// Returns: order_id, tracking info
```

## Stack

- **FastAPI** — MCP server
- **Shopify Admin API** — order creation
- **Printful** — production + fulfillment
- **Base (on-chain)** — USDC payment verification
- **fly.io** — hosting

## Products

- Accredited Investor Hat — $30 USDC
- Fiduciary Hat — $20 USDC
- Retail Investor Hat — $15 USDC
- Qualified Institutional Buyer Hat — $500 USDC

## License

MIT

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation5/5

Each tool serves a distinct step in the customer journey: searching products, viewing details, getting a shipping quote, placing an order, and checking order status. No overlap.

Naming Consistency5/5

All tools use consistent snake_case with verb_noun pattern (e.g., get_product, place_order), making them predictable for an agent.

Tool Count5/5

Five tools is appropriate for an e-commerce store, covering the essential operations without being excessive.

Completeness4/5

Covers the core purchase flow: search, detail, quote, order, status. Lacks order management like cancellation or listing all orders, but fits the stated purpose.

Maintenance

ActivityInactive
ResponsivenessNo issues