W3Ship MCP Server
W3Ship Commerce MCP Server
Let AI shop for you โ with no passwords, no logins, just cryptographic identity.
W3Ship is the first MCP (Model Context Protocol) server for AI-powered commerce. It gives AI agents like Claude, Cursor, and VS Code Copilot the ability to create shopping carts, place orders, track shipments, book sessions, swap tokens via Uniswap, sell items P2P, and distribute promotional items with in-store pickup โ all using cryptographic identity (SLH-DSA / ECDSA) instead of passwords.
Built on TMF Open API standards (TMF663, TMF622, TMF621) for interoperability.
โก Quick Start
Install via npx (recommended)
No installation required โ just configure your AI client:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"w3ship": {
"command": "npx",
"args": ["-y", "w3ship-mcp-server"],
"env": {
"VALKEY_HOST": "localhost",
"VALKEY_PORT": "6379"
}
}
}
}Cursor (.cursor/mcp.json):
{
"mcpServers": {
"w3ship": {
"command": "npx",
"args": ["-y", "w3ship-mcp-server"],
"env": {
"VALKEY_HOST": "localhost",
"VALKEY_PORT": "6379"
}
}
}
}VS Code (.vscode/mcp.json):
{
"servers": {
"w3ship": {
"type": "stdio",
"command": "npx",
"args": ["-y", "w3ship-mcp-server"],
"env": {
"VALKEY_HOST": "localhost",
"VALKEY_PORT": "6379"
}
}
}
}Prerequisites
Node.js 18+
Redis / Valkey instance (for cart, order, and shipment storage)
Local:
docker run -p 6379:6379 redis:latestOr any Redis-compatible service (AWS ElastiCache, Upstash, etc.)
Related MCP server: W3 Ledger MCP Server
๐ ๏ธ Tools (22 total)
๐ Shopping Cart (TMF663)
Tool | Description |
| Create a shopping cart. Uses |
| Retrieve a cart by its public key ID |
| Add an item (product offering + quantity) to a cart |
| Delete a shopping cart |
๐ฆ Orders (TMF622)
Tool | Description |
| Convert a cart into a confirmed order and initiate fulfillment |
| Retrieve order details by order ID |
๐ Shipment Tracking (TMF621)
Tool | Description |
| Track delivery status with simulated real-time updates |
๐ Session Booking
Tool | Description |
| Get available session time slots by location and date (VR, fitness, dining, salon, etc.) |
| Reserve a session slot (held for 10 minutes pending payment) |
| List confirmed bookings, optionally filtered by location/date |
๐ Identity Lookup
Tool | Description |
| Retrieve a physical shipping address using a public key + timed signature |
Identity lookups are forwarded to the centralized W3Ship API (
w3ship.com/api/identity). Signature verification and database access happen server-side โ no AWS credentials needed on your end.
๐งช Setup & Demo
Tool | Description |
| Generate a demo ECDSA key pair for testing โ try the commerce flow without a wallet |
| Show the currently configured identity or instructions on how to set one up |
๐ Uniswap Swap (NEW in v1.3.0)
Tool | Description |
| Get a swap quote from Uniswap โ returns output amount, gas estimate, price impact, and routing path. Supports V2, V3, V4, and UniswapX. Default chain: Base (8453). |
| Check if a token is approved for swapping on Uniswap. Returns approval transaction data if needed. |
Requires
UNISWAP_API_KEYโ get yours free at developers.uniswap.org. Built-in token addresses for Base chain: ETH, USDC, USDT, DAI, WETH. Pass any ERC-20 contract address for other tokens.
๐ช P2P Marketplace (NEW in v1.4.0)
Tool | Description |
| Sell anything โ no merchant onboarding needed. Set title, price, currency, and your wallet address for payment. Listings expire after 30 days by default. |
| Browse active listings by category (electronics, gifts, clothing, etc.) or keyword search. |
| Get full details of a listing: description, price, seller, payment address, shipping regions. |
| Remove your own listing. Seller address must match. |
Categories:
electronics,clothing,collectibles,home,sports,gifts,books,other. Anyone with a wallet address is a merchant.
๐ณ Payment & Fulfillment (NEW in v1.4.0)
Tool | Description |
| Submit an on-chain transaction hash to verify payment. Supports Base (8453) and Tempo chains. Updates order to "paid". |
| Seller provides real carrier tracking (UPS, FedEx, USPS, DHL, etc.) after shipping the item. |
P2P orders auto-detect listing items (LST-* prefix), fill in seller wallet address, and set payment status to
awaiting_payment. After payment, sellers useadd_trackingto provide shipping info.
๐ Promotional Items & Pickup (Updated in v1.6.0)
Tool | Description |
| Claim a FREE promotional listing. Supports shipping or in-store pickup. One per wallet. |
New in v1.6.0: In-Store Pickup
Promo listings now support three fulfillment modes:
Mode
How It Works
shipCustomer pays shipping, item mailed (original flow)
pickupCustomer picks up at a physical location โ zero cost
bothCustomer chooses shipping or pickup
Create a pickup promo:
create_listing( isPromo: true, fulfillmentType: "pickup", pickupLocations: [{ id: "qbm", name: "Quaker Bridge Mall", address: "3320 Brunswick Pike, Lawrenceville NJ", hours: "Mon-Sat 10am-9pm", instructions: "Visit the kiosk near the food court. Show your claim ID." }] )Claim with pickup:
claim_promo(listingId: "...", fulfillmentChoice: "pickup", pickupLocationId: "qbm")The AI returns the pickup location, hours, and instructions. No address registration needed for pickup claims โ only wallet identity is required.
๐ Cryptographic Identity
W3Ship uses cryptographic identity โ no usernames, no passwords, no accounts. Three identity types are supported:
Scheme | Key Size | Use Case |
EVM Address | 20 bytes (40 hex chars) | MetaMask / any Ethereum wallet |
ECDSA (P-256) | 33 bytes (compressed) / 65 bytes (uncompressed) | Standard web3 wallets |
SLH-DSA | 32 bytes (64 hex chars) | Post-quantum secure identity (Dah.mx) |
Your wallet address or public key IS your cart ID. No sign-up required.
โ๏ธ Configuration
Environment Variables
Variable | Required | Default | Description |
| No | โ | Your wallet address or public key (hex). Set once and all tools use it automatically |
| No | โ | Uniswap Trading API key for swap quotes. Get yours at developers.uniswap.org |
| No |
| Redis/Valkey host |
| No |
| Redis/Valkey port |
| No | โ | Redis/Valkey password (if auth enabled) |
| No |
| Base URL for the W3Ship API (identity, session booking) |
Getting Your Key
MetaMask users: Just copy your Ethereum address (e.g.
0x1234...abcd) โ it works directlyDah.mx users: Settings โ AI Assistant Setup โ Copy key
Demo/Testing: Don't set a key โ use
generate_demo_keyin your AI assistant instead
๐๏ธ Architecture
The MCP server is a thin client that combines local cart/order storage with centralized W3Ship services:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Client (Claude / Cursor / VS Code) โ
โ "Create a cart and book a fitness session" โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ stdio (MCP Protocol)
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ W3Ship MCP Server (your machine) โ
โ โ
โ Local Storage (Redis/Valkey): โ
โ โโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Cart โ โ Orders โ โ Shipment โ โ
โ โ (TMF663) โ โ (TMF622)โ โ (TMF621) โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ
โ Centralized API (w3ship.com): โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Booking โ โ Identity Lookup โ โ
โ โ /api/slots โ โ /api/identity โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโCommerce (cart, order, shipment) โ stored locally in your Redis
Identity (address lookup) โ forwarded to
w3ship.comAPISession Booking โ forwarded to
w3ship.comAPINo AWS credentials needed. No cloud config required.
๐ก Example Conversations
Shopping & Booking
You: "I want to shop on W3Ship"
Claude: [calls get_identity โ no key configured]
[calls generate_demo_key โ creates a test identity]
[calls create_cart with the demo key]
"You're all set! I've created a shopping cart for you.
What would you like to buy?"
You: "Book me a VR session for this afternoon"
Claude: [calls get_available_slots for today]
"Here are today's sessions at Downtown VR:
โข 2:00 PM - $45 (3 spots left)
โข 4:00 PM - $45 (5 spots left)
Which time works?"
You: "4 PM"
Claude: [calls hold_slot โ add_item]
"Slot held for 10 minutes. Added to your cart."
You: "Place the order"
Claude: [calls create_order]
"Order confirmed! Tracking: TRK-8392751046"Claiming a Promo with Pickup (NEW in v1.6.0)
You: "Any free promos I can grab?"
Claude: [calls search_listings with category: promotional]
"There's a free VR Experience Card available!
You can pick it up at Quaker Bridge Mall."
You: "I'll take it"
Claude: [calls claim_promo with fulfillmentChoice: pickup]
"Claimed! Here's your pickup info:
๐ Quaker Bridge Mall, Lawrenceville NJ
๐ Mon-Sat 10am-9pm
๐๏ธ Claim ID: CLM-MMB1ZW3W-W98I
Show your claim ID at the VR kiosk near the food court."Tip: For production use, set your real wallet key via
W3SHIP_PUBLIC_KEYin your MCP config. See Getting Your Public Key above.
๐ฐ Press
TechBullion: How W3Ship Works: The MCP Server That Turns Any AI Into a Merchant
Digital Journal: Quantum-Resistant Commerce Token Launches via Uniswap CCA on Unichain
Syndicated across 500+ outlets โ full coverage โ
๐ Links
Website: w3ship.com
Press: w3ship.com/press
GitHub: github.com/baskcart/w3ship
W3SH Token: Uniswap CCA Auction
๐ License
MIT โ see LICENSE
Available Tools
22 toolsadd_itemA
Add an item to an existing shopping cart. Uses W3SHIP_PUBLIC_KEY as cartId if not provided.
Inputs: cartId (required), item (required).
add_trackingA
Seller tool: Add real shipping tracking info to an order after shipping the item. Provides the buyer with a tracking number and carrier.
Inputs: orderId (required), carrier (required), trackingNumber (required), sellerAddress.
check_token_approvalA
Check if a token is approved for swapping on Uniswap. Returns whether approval is needed and the approval transaction if so. Requires UNISWAP_API_KEY env var.
Inputs: token (required), amount (required), walletAddress, chainId.
claim_promoA
Claim a FREE promotional listing. Items are $0. For shipping promos you pay shipping only; for pickup promos it is completely free. One claim per wallet. Must have a registered W3Ship/Dah.mx identity (address required for shipping, wallet-only for pickup).
Inputs: listingId (required), publicKey, fulfillmentChoice, pickupLocationId.
confirm_paymentA
Submit an on-chain payment transaction for verification. After paying the seller (send crypto to their wallet address), provide the transaction hash here to verify payment and update the order status to "paid".
Inputs: orderId (required), txHash (required), chainId.
create_cartA
Create a new TMF663 shopping cart. If W3SHIP_PUBLIC_KEY is configured, it is used automatically โ no id required. Otherwise provide an SLH-DSA or ECDSA public key (hex).
Inputs: id, customer.
create_listingA
Create a P2P marketplace listing. Anyone can sell items โ no merchant onboarding needed. Specify title, price, currency (USDC/ETH/etc), and your wallet address for payment.
Inputs: title (required), description (required), price (required), currency, +12 more.
create_orderA
Convert a Shopping Cart into a confirmed Order (TMF622) and initiate fulfillment.
Inputs: cartId (required).
delete_cartC
Delete a shopping cart.
Inputs: id (required).
generate_demo_keyA
Generate a demo ECDSA key pair for testing. Returns a public key hex that can be used with create_cart and other tools. Useful for trying out the commerce flow without a real wallet.
Inputs: no named parameters.
get_available_slotsA
Get available session time slots for a location on a given date. Returns times, capacity, pricing, and activity type. Works for any bookable service (VR, fitness, dining, salon, etc.).
Inputs: locationId (required), date (required), activityId.
get_cartA
Retrieve a shopping cart by its Public Key ID. Uses W3SHIP_PUBLIC_KEY if no id is provided.
Inputs: id.
get_identityA
Show the currently configured identity (W3SHIP_PUBLIC_KEY). Returns the public key and its type if set, or instructions on how to configure one.
Inputs: no named parameters.
get_listingB
Get full details of a specific marketplace listing by ID.
Inputs: listingId (required).
get_orderC
Retrieve detailed information about a specific Order (TMF622).
Inputs: id (required).
get_swap_quoteA
Get a swap quote from Uniswap. Returns estimated output, routing path, gas fees, and price impact. Supports V2, V3, V4, and UniswapX protocols. Requires UNISWAP_API_KEY env var.
Inputs: tokenIn (required), tokenOut (required), amount (required), walletAddress, +1 more.
hold_slotA
Hold/reserve a session time slot for a customer. The slot is held for 10 minutes pending payment. Works for any bookable service.
Inputs: slotId (required), cartId (required), participants.
list_bookingsB
List all confirmed session bookings. Optionally filter by location or date.
Inputs: locationId, date.
remove_listingA
Remove a marketplace listing. Only the seller can remove their own listing.
Inputs: listingId (required), sellerAddress.
search_listingsA
Browse the W3Ship P2P marketplace. Search by category (electronics, gifts, clothing, etc.) or keyword. Returns active listings with prices and seller info.
Inputs: category, keyword, limit.
ship_addressB
Securely retrieve a physical address using a public key and a timed cryptographic signature.
Inputs: publicKey (required), signature (required), timestamp (required).
track_shipmentC
Track the delivery status of a shipment (TMF621).
Inputs: shipmentId, orderId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 22 tools
Most tools have distinct purposes, but there is some overlap in the commerce flow (e.g., create_cart, add_item, get_cart, delete_cart are clearly related but could be confused for similar operations). The Uniswap tools (check_token_approval, get_swap_quote) are distinct from marketplace tools, but within domains, boundaries are generally clear with descriptions aiding differentiation.
Tool names follow a consistent verb_noun pattern throughout (e.g., add_item, create_cart, get_listing, remove_listing), with only minor deviations like 'ship_address' (which could be 'get_ship_address' for full consistency). The naming is predictable and readable across all tools.
With 22 tools, the count is borderline high for a server covering commerce, marketplace, bookings, and Uniswap integration. It feels slightly heavy, as some tools might be consolidated (e.g., cart operations), but it's not extreme and remains manageable given the broad scope.
The server covers multiple domains well: commerce (cart CRUD, order creation, payment), marketplace (listing CRUD, search), bookings (slots, bookings), and Uniswap (approval, quotes). Minor gaps exist, such as no tool for updating listings or canceling bookings, but core workflows are supported and agents can work around these omissions.
Maintenance
Related MCP Connectors
Self-sovereign BYOC headless commerce & agentic MCP checkout engine for B2B storefronts.
Agentic commerce gateway: discovery, trust and checkout. Demo store; x402 sandbox, AP2 planned.
Remote MCP for Living Stack offer discovery and buyer-authorized checkout preparation.
Check that a business proved who it is, read what it sells, and order straight from it.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables secure access to customer e-commerce data (orders, loyalty points, offers, preferences) through the Shopper Context Protocol with OAuth 2.0 authentication. Supports discovering and connecting to SCP-enabled merchants for personalized shopping assistance.111MIT
- AlicenseAqualityDmaintenancePrimary purpose is to maintain a self verifying ledger that requires no consesus. Additional features include support for evm compatible and other block chains.61MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover products, verify signed catalog feeds, negotiate within published policies, and place mandate-bound orders with signed receipts via MCP, A2A, or REST.1MIT
- AlicenseBqualityBmaintenanceEnables product discovery, seller-offer comparison, and bounded, approval-gated cart operations with account-scoped planning and read-back reconciliation.403MIT