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.
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.
{
"mcpServers": {
"ragnarok-ai": {
"type": "http",
"url": "https://mcp.ragnarok-ai.com/mcp"
}
}
}{
"mcpServers": {
"ragnarok-ai": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}- Reload MCP servers.
- On
ragnarok-ai, click Auth / Connect. - A browser tab opens on Ragnarok AI. Sign in with Google.
- 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
| Piece | Value |
|---|---|
| Transport | Streamable HTTP POST to /mcp |
| Auth | OAuth 2.1 + PKCE (Cursor Auth button), or Bearer API key |
| Resource | https://mcp.ragnarok-ai.com/mcp |
| Authorize | https://ragnarok-ai.com/oauth/authorize |
| 401 | WWW-Authenticate with resource_metadata |
Tools
| Tool | What it does |
|---|---|
finetune_get_account | Credit balance |
finetune_get_pricing | Live token / GPU price table |
finetune_list_models | Base models and your ft: adapters |
finetune_list_methods | Hugin, Munin, LoRA, … plus GPUs |
finetune_list_files / finetune_get_file | Uploaded datasets |
finetune_upload_file | Small CSV/JSONL as text (400k cap) |
finetune_list_jobs / finetune_get_job | Status, metrics, ft:{id} |
finetune_create_job / finetune_cancel_job | Queue or cancel |
finetune_chat | Non-streaming chat (spends credits) |
finetune_embed / finetune_rerank | Embeddings and rerank |
finetune_get_usage | Recent 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/mcpwithtype: 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".