DocsPlatform

MCP for agents

Ragnarok AI speaks the Model Context Protocol. In Cursor you add the URL, click Auth, sign in with Google, pick scopes, and authorize access — the same flow as Cloudflare's MCP. No API key to paste.

Live endpoint: https://mcp.ragnarok-ai.com/mcp. Transport is Streamable HTTP. Checkout is not on MCP — buy credits in Studio → API keys if you still want a raw sk-ft- key for curl.

1. Cursor (recommended)

Cursor Settings → MCP → add a remote server, or put this in ~/.cursor/mcp.json. type: "http" is required.

Live
{
  "mcpServers": {
    "ragnarok-ai": {
      "type": "http",
      "url": "https://mcp.ragnarok-ai.com/mcp"
    }
  }
}
Local compose
{
  "mcpServers": {
    "ragnarok-ai": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}
  1. Reload MCP servers.
  2. On ragnarok-ai, click Auth / Connect.
  3. A browser tab opens on Ragnarok AI. Sign in with Google.
  4. Tick the scopes the agent may use, then Authorize access.

Tools stay prefixed finetune_. Ask the agent to check your credits after Auth succeeds.

2. Other clients

Same URL. Clients that implement MCP OAuth (Cursor, Claude Code, VS Code Copilot) will discover /.well-known/oauth-protected-resource and open the consent page. Older clients can still send Authorization: Bearer sk-ft-….

Claude Code: claude mcp add --transport http ragnarok-ai https://mcp.ragnarok-ai.com/mcpthen complete Auth when prompted.

What the protocol expects

PieceValue
TransportStreamable HTTP POST to /mcp
AuthOAuth 2.1 + PKCE (Cursor Auth button), or Bearer API key
Resourcehttps://mcp.ragnarok-ai.com/mcp
Authorizehttps://ragnarok-ai.com/oauth/authorize
401WWW-Authenticate with resource_metadata

Tools

ToolWhat it does
finetune_get_accountCredit balance
finetune_get_pricingLive token / GPU price table
finetune_list_modelsBase models and your ft: adapters
finetune_list_methodsHugin, Munin, LoRA, … plus GPUs
finetune_list_files / finetune_get_fileUploaded datasets
finetune_upload_fileSmall CSV/JSONL as text (400k cap)
finetune_list_jobs / finetune_get_jobStatus, metrics, ft:{id}
finetune_create_job / finetune_cancel_jobQueue or cancel
finetune_chatNon-streaming chat (spends credits)
finetune_embed / finetune_rerankEmbeddings and rerank
finetune_get_usageRecent charges

For the HTTP requests behind these tools, use the REST API reference.

If a client cannot connect

  • Auth does nothing — confirm the URL is https://mcp.ragnarok-ai.com/mcp with type: http, then reload MCP.
  • 401 — finish Google sign-in and click Apply, or paste aworkspace API key as a bearer token.
  • Treated as stdio — add "type": "http".