Skip to main content
Connect Claude, Cursor, ChatGPT, or Devin to Ornn Compute over MCP Ornn runs a hosted Model Context Protocol server for finding capacity, managing reservations, following telemetry and logs, managing Kubernetes or Slurm, reselling, and billing. Use the tools returned by your connected server; availability depends on your organization and role. Open a shell with the CLI: ornn connect <machine-id>.

Connect

Add this server URL to your MCP client’s configuration:
Your client will prompt you to sign in with your Ornn account via OAuth and approve the connection on the consent screen. You can revoke access at any time from Connected agents. If you change the login email on your Ornn account, existing MCP tokens and pending authorization codes are revoked automatically. Restart any unfinished connection and reconnect the agent after the email change completes. This also applies to authorization or refresh requests that overlap the change.

Verify and reconnect

After connecting, ask your client to list the available tools and call identity_whoami. Confirm that it returns your Ornn account and organization, then try the relevant read tool, such as reservations_list. If your client reports that authorization is required or cannot refresh its login, reconnect the Ornn server through the client’s sign-in flow. Codex users can run codex mcp login ornn. Reload the connection or start a fresh chat after approving access so the client discovers the current tools. The server’s health page alone does not verify your connection. Never paste an access token into a chat or troubleshooting report.

Tools

Billing tools return the billing API’s native camelCase fields. billing_summary returns open balances and paid monthly totals grouped by currency (openBalance, paidThisMonth, paidLastMonth, and earliestDueDate). Monthly totals follow the invoice service period; billing_showback reports usage estimates separately. billing_invoices returns an invoice page and nextCursor. For access_switch, supply a unique, nonblank requestId and keep it to check progress, including after a timeout. Prices in market tools are integer micro-USD per GPU-hour, or per vCPU-hour for CPU capacity: 2500000 is $2.50. CPU capacity trades on the order books with the slug cpu. Down payments are integer cents. Calling a tool runs it. These tools do not take a confirmation argument or return a preview. Use market_quote to preview a bid without placing it. Market results never include who supplies or relisted the capacity. See Spot, Reserve, the Market, and Relist capacity for how each market works.

Custom OAuth clients

Native and browser clients should register with token_endpoint_auth_method: "none" and use authorization code with S256 PKCE. Public clients receive no client secret; send the registered client_id for both code exchange and refresh. Confidential clients can use client_secret_basic or client_secret_post and must authenticate both requests. Send OAuth query parameters with a URL encoder. The callback returns the same decoded state value when you approve or decline the connection, including spaces, +, and other reserved characters. Compare the decoded callback value with the original state to verify the connection request.