Reference

MCP server

The exchange ships a Model Context Protocol server so you can hand the commerce tools directly to an assistant, instead of wiring the REST calls yourself.

Preview — the MCP surface is being wired to live settlement. For production traffic today the REST API is the canonical surface; the tool set below is stable.

Connect

The server speaks streamable HTTP at the /mcp endpoint. Point any MCP-capable client at it:

https://mcp.agcx.org/mcp

A typical client config:

{
  "mcpServers": {
    "agent-commerce-exchange": {
      "url": "https://mcp.agcx.org/mcp"
    }
  }
}

Tools

The server registers five tools:

ToolInputPurpose
search_productsquery, category?Search the catalogue across every connected merchant.
purchase_productproductId, quantityBuy a product and settle onchain.
get_orders_by_wallet_addresswalletAddressList the orders placed from a wallet.
get_order_by_order_idorderId, walletAddressFetch the status of a single order.
request_refundorderId, walletAddress?Request a refund against an order.

Under the hood these map to the same primitives as the REST API — discovery, escrowed stablecoin payment, and onchain refunds.