Connect an MCP client#
Roundlot speaks MCP over streamable HTTP at one URL: https://api.roundlot.0xo.in/mcp.
claude mcp add --transport http roundlot https://api.roundlot.0xo.in/mcp
tools/list returns catalog, quote, session and plan_trade. Only catalog is free.
Clients that can't sign x402 payments still work: a paid tool answers with its price and the REST alternative instead of data. To pay from an agent, use the OKX Agentic Wallet, the OKX CLI or your own code.
Make a first call (free)#
curl -X POST https://api.roundlot.0xo.in/v1/catalog
curl "https://api.roundlot.0xo.in/v1/catalog?symbol=NVDA"
The catalog lists each tool's parameters and a working example request, so agents don't have to guess names.
Fund a wallet for the paid tools#
- Open the X Layer faucet and claim USDT on X Layer testnet to your address.
- The faucet's USDT is USD₮0 at
0x9e29b3aada05bf2d2c827af80bd28dc0b9b4fb0c(6 decimals), the token Roundlot is paid in. - You don't need OKB: the facilitator pays the gas.
Pay for a call#
The repository's demo agent connects over MCP and pays for session, quote and plan_trade from a private key:
git clone https://github.com/Jagadeeshftw/roundlot && cd roundlot && npm ci
DEMO_BUYER_PRIVATE_KEY=0x... npm run demo -w service
Each paid call prints its settlement transaction on the X Layer testnet explorer. Add -- --step to pause before each step.