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 → API keys, then add the server to your MCP
client:
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 @apiosk/mcp,
set APIOSK_PROVIDER_TOKEN=sk_live_… instead of the header.The tools
| Tool | What it does |
|---|---|
publish_x402_route | Turn an HTTPS endpoint into a paid route: name, upstream_url, price (USDC per call), settlement_address, optional method/path/schemas/tags. Returns the paid_url. |
publish_project | Publish several routes of one project (one base_url, many paths) in a single call. |
list_x402_routes | All your routes with paid URLs, prices, and live status. |
update_x402_route | Change price, description, upstream URL, schemas, settlement address, or status. |
unpublish_x402_route | Disable a route (reversible with update_x402_route {status: "active"}). |
test_x402_route | Fire an unpaid request at the paid URL and verify it returns a correct 402 with an x402 accepts[] offer. |
generate_openapi_spec | Host an OpenAPI 3.1 spec for the route at https://mcp.apiosk.com/openapi/<route_id>.json. |
Publish, then test
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.
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; Polygon, Arbitrum, and Solana can be requested per route and follow the multi-chain settlement rules (Base always remains the fallback). Yoursettlement_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(aliashttps://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 withx-priceextensions, generated live from the listing.