How do I find a GPU with the X9 MCP server?
Connect an MCP client to X9 to look up model fit and GPU offers. Give it a capped renter key only if it needs to quote, book or stop a rental.
What to do
| Step | What to do |
|---|---|
| Connect | Use Streamable HTTP. |
| Discover | Initialize, send notifications/initialized, then list tools. Send the negotiated MCP-Protocol-Version on subsequent requests. Fit and search need no key. |
| Rent | To quote, book or stop a rental, send Authorization: Bearer with a capped renter key that can spend. Keep the owner key private. |
Try it with curl
Use Bash, curl and jq. Set X9_MCP_URL to your full MCP URL, including /mcp. The production endpoint is https://prod-mcp.x9si.com/mcp. If search has no bookable offers, check again later. See agent setup and the booking workflow.
Example (Bash)
#!/usr/bin/env bash
set -euo pipefail
X9_MCP_URL="${X9_MCP_URL:-https://prod-mcp.x9si.com/mcp}"
rpc() {
local -a protocol=()
if [[ -n "${version:-}" ]]; then
protocol=(-H "MCP-Protocol-Version: $version")
fi
curl -fsS "$X9_MCP_URL" "${protocol[@]}" -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d "$1"
}
version=$(rpc '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-agent","version":"1"}}}' | jq -er '.result.protocolVersion')
rpc '{"jsonrpc":"2.0","method":"notifications/initialized"}' > /dev/null
rpc '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | jq -e '.result.tools | map(.name)'
rpc '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{
"name":"fit_model","arguments":{"model":"8b","task":"inference","quant":"fp16"}
}}' | jq -e '.result | select(.isError != true) | .structuredContent'
rpc '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{
"name":"search_offers","arguments":{"limit":5,"sort":"price"}
}}' | jq -e '.result | select(.isError != true) | .structuredContent'