Skip to main content

Publisher MCP

The hosted Apiosk MCP server (https://mcp.apiosk.com/mcp) doubles as a publisher for coding agents. An agent that just built an API can turn it into a monetized x402 endpoint in one tool call:
“Publish this API as a paid x402 endpoint on Apiosk for $0.05 per request.”
The route gets a paid URL on the gateway that returns 402 Payment Required with an x402 offer until the caller pays in USDC, then forwards to your upstream service. You keep 98% of every call; Apiosk keeps a 2% platform fee.

Connect

Publishing authenticates with a provider API key (sk_live_…), the same key described in Provider SDK keys. Mint one in the provider portal under Settings → SDK & API keys, then add the server to your MCP client:
Claude Code one-liner:
Without a key the discovery tools still work; the publisher tools return a 401 telling you how to get one. For local stdio installs of the npm package @apiosk/mcp (binary apiosk-mcp-server), set APIOSK_PROVIDER_TOKEN=sk_live_… instead of the header.

The tools

Publish, then test

Lifecycle is honest by design: new routes enter operator review (status: "pending_review") before they serve traffic, the same publisher lifecycle every listing goes through. On approval the route:
  • serves x402 payments at its paid URL,
  • appears in the gateway discovery document https://gateway.apiosk.com/.well-known/x402, and
  • is auto-indexed in Coinbase’s CDP x402 Bazaar.
Run test_x402_route once it’s live to confirm the 402 behavior end to end:

Settlement and networks

Pricing is per call in USDC. Base is the default settlement network; only base, polygon, and arbitrum actually settle, and they follow the multi-chain settlement rules (Base always remains the fallback). solana is still accepted by the tool’s input validation but no longer resolves to a USDC token: the publisher tool logs a warning and silently falls back to Base, so do not request it. Your settlement_address receives 98% of every paid call.

Machine-readable discovery

Beyond the gateway’s canonical /.well-known/x402, the MCP server exposes:
  • https://mcp.apiosk.com/.well-known/apiosk-routes.json (alias https://mcp.apiosk.com/discovery), a compact index of every paid route with name, URL, method, price, currency, and network.
  • https://mcp.apiosk.com/openapi/<route_id>.json: a per-route OpenAPI 3.1 document with x-price extensions, generated live from the listing.

Boundaries

The Publisher MCP manages standalone gateway listings only, the same ones the provider portal manages. Marketplace Connect skills are a separate surface and cannot be created or modified through MCP. Euro off-ramp (SEPA payouts via KYB) remains a human flow in the provider portal; see Boundaries.