X9 is a GPU marketplace built for AI agents. An agent searches GPU offers, estimates the memory a model needs, gets a firm quote, rents a GPU or runs a job, and reads an itemized receipt, by REST or MCP, inside hard spending caps.

Agents can sign up and search offers; supply is being added.

This post is a practical setup guide for the production MCP server: how to install it, which tools need no key, and how spend caps work before any money moves.

Install the MCP server

The production MCP endpoint is https://prod-mcp.x9si.com/mcp (streamable HTTP). It is public. No access headers are needed. Calls that need a key send only your X9 API key.

Claude Code

claude mcp add --transport http x9 https://prod-mcp.x9si.com/mcp 

Claude Desktop (claude_desktop_config.json, through the mcp-remote bridge):

{ "mcpServers": { "x9": { "command": "npx", "args": [ "-y", "mcp-remote", "https://prod-mcp.x9si.com/mcp" ] } } } 

Cursor (.cursor/mcp.json):

{ "mcpServers": { "x9": { "url": "https://prod-mcp.x9si.com/mcp" } } } 

fit_model, search_offers and get_market_price need no key. You can size a model and search offers as soon as the server is added. For quotes and rentals, add the header Authorization: Bearer with a capped X9 renter key. Keep that key out of chat and shared config.

X9 is also listed in the official MCP Registry as com.x9si/x9.

Start with a read-only prompt

Ask your agent something that cannot spend money. For example:

Use X9 to estimate the GPU memory needed for inference on an 8B model at int4 with a 4096 token context and batch size 1. Then search for offers that fit. If none match, say so. Do not quote or rent anything.

What those first tools do:

  • fit_model (REST GET /v1/fit) estimates the GPU memory a model needs, and returns offers that fit when any are listed, ranked by estimated job cost.
  • search_offers (REST GET /v1/offers) lists GPU offers with all-in hourly compute price, rating, and a bookable flag. bookable is true when a quote would be accepted now. ?fields=compact gives one short row per offer.
  • get_market_price (REST GET /v1/market/price) returns market stats for one GPU model. It also needs no key.

The production catalog has 28 MCP tools, and 22 of them are available. A tool that is not offered answers NOT_AVAILABLE_YET.

Sign up, then cap the key

Renter signup is open during the pilot, for agents and people: POST /v1/accounts or the console at https://prod-api.x9si.com/app/#/renter/wallet. Signing up accepts the terms of service, version 1.

Card top ups start at 5 USD. During the 30 day pilot one renter can have at most 100 USD of open money and all renters together 500 USD. GET /v1/rules shows when the pilot ends. Live crypto top ups are not offered.

The production REST API is https://prod-api.x9si.com. Both the API and MCP are public.

Your owner key mints an agent key with POST /v1/keys. Caps are checked in the same database transaction as the charge, so a key can never overspend or raise its own caps. Sub keys never get admin. Give a long running agent a capped sub key, never the owner key.

Cap Meaning
lifetime_usd Lifetime spend cap. Decimal USD string with up to 6 places.
hourly_usd Hourly burn cap. Decimal USD string with up to 6 places.
max_gpu_class Highest GPU class this key may quote or book: consumer < workstation < datacenter (unknown models count as datacenter).
expires_at RFC 3339 with timezone

Then add the key to the MCP config as Authorization: Bearer. A Cursor example:

{ "mcpServers": { "x9": { "url": "https://prod-mcp.x9si.com/mcp", "headers": { "Authorization": "Bearer ${env:X9_API_KEY}" } } } } 

Quote before spend

A rental quote is free and shows the maximum hold. It lasts up to 120 seconds, but a provider price increase can invalidate an unexpired resale quote.

The same flow exists over MCP and REST:

  1. search_offers or GET /v1/offers (no key)
  2. get_quote or POST /v1/quotes with offer_id, max_runtime_s, and image
  3. create_instance or POST /v1/instances with quote_id holds the worst case and starts the box
  4. get_resource or GET /v1/resources/{id}?wait_s=60 until status is running (the machine is ready to use)
  5. control_resource or POST /v1/resources/{id}/actions with {action:"stop"} settles compute and releases unused compute funds
  6. get_receipt or GET /v1/receipts/{id} shows charges, totals, the end reason, and the recorded compute billing timeline

Every write needs an Idempotency-Key. Any POST accepts ?dry_run=true, which runs the request and changes nothing. Errors have a stable shape, {ok:false,error:{code,message,retryable,next_actions[]}}, so the agent is told what to try next.

You pay from when X9 first sees your machine running, but only once it passes the GPU check and is ready. Startup and downloads before X9 sees it running are free. If it never becomes ready, you pay nothing. See GET /v1/rules for billing and fees.

Links

Built by the X9 team.