kraken-cli ships a built-in Model Context Protocol server over stdio. It exposes all 151 CLI commands as structured tools that any MCP-compatible AI agent can call — Claude, Cursor, GitHub Copilot, Windsurf, and others. The MCP server is part of the CLI binary. Install the CLI first.Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
market (public data), account (read-only), and paper (paper trading). No credentials required for market and paper.
Client setup
- Claude Code
- Claude Desktop
- Cursor
- VS Code (Copilot)
- Windsurf
Run once to register the server for your user:For all services including live trading:Verify it is registered:
Services
Pass-s <services> to control which command groups are exposed. Multiple services are comma-separated.
| Service | Auth | Risk level | What it exposes |
|---|---|---|---|
market | No | None | Ticker, orderbook, trades, OHLC, spreads |
account | Yes | Read-only | Balances, open orders, trade history, positions |
paper | No | None | Spot paper trading (live prices, no real capital) |
futures-paper | No | None | Futures paper trading |
trade | Yes | Dangerous | Place, amend, and cancel live Spot orders |
futures | Mixed | Dangerous | Futures order entry and market data |
earn | Yes | Dangerous | Staking allocations and deallocations |
funding | Yes | Dangerous | Withdrawals and transfers |
subaccount | Yes | Dangerous | Subaccount creation and transfers |
auth | No | Read-only | Credential validation |
all | Mixed | Mixed | All of the above |
-s flag): market, account, paper.
Dangerous tools
Tools marked dangerous (order placement, withdrawals, transfers) require the calling agent to passacknowledged: true in the tool input unless the server was started with --allow-dangerous. This gives you a confirmation gate at the tool level without relying on the agent’s judgment alone.
Authentication
Set credentials as environment variables before starting the server:kraken setup). The server inherits credentials from the CLI’s standard resolution order.
What agents can do
With the default safe service set, an agent can:- Query live prices, orderbooks, and recent trades for any pair
- Check account balances and open orders
- Place and cancel paper trades against live prices
- Stream real-time market data
trade added, an agent can place, amend, and cancel live orders. With funding, it can initiate withdrawals. Scope services to the minimum your workflow requires.
Safety notes
- The MCP server runs locally over stdio and is not exposed as a network service
- Use minimum-permission API keys scoped to what the agent actually needs
- The default service set (
market,account,paper) is read-only for live funds - Treat agent sessions with live trading scope the same as a logged-in user session
- Set position size limits and pair allowlists at the API key level on Kraken’s settings page
Agent resources
The CLI ships supplementary resources for agent integration:| Resource | Purpose |
|---|---|
AGENTS.md | Full integration guide with patterns and constraints |
CONTEXT.md | Runtime context injected at session start |
agents/tool-catalog.json | All 151 commands with parameter schemas in machine-readable form |
agents/error-catalog.json | 9 error categories with retry guidance |
skills/ | 50 pre-built workflow packages for common trading tasks |
CLAUDE.md | Claude-specific guidance for the CLI |