Kraken

Context: investing and brokerage

Can an AI agent trade at Kraken?

Yes, through a server that runs on your own machine. Kraken’s CLI, kraken-cli, includes an MCP server, kraken-mcp, that runs over stdio. It serves 152 of the CLI’s 188 commands as MCP tools for Claude, Cursor, GitHub Copilot, Windsurf and other MCP clients.1 The server is not exposed as a network service, and Kraken does not host an MCP endpoint.1

One install covers crypto spot, xStocks (tokenized equities), forex, perpetual and fixed-date futures, and earn and staking.2 Kraken’s GitHub page says the tokenized US stocks and ETFs are for non-US customers.3

Live trading only happens when you start the server with a trading service, such as trade for spot orders. Kraken’s quickstart set, kraken-mcp -s market,paper,feedback, needs no credentials, and no tool in it can trade live or move funds.1

What can an AI agent do at Kraken?

FeatureValueSources
Read portfolioYes, with the account service: balances, orders, trade history, ledgers, positions and exports1
Place ordersYes, with the trade service (live spot orders) or the futures service. Each order needs your approval unless the gate is off1
Order typesMarket and limit are documented. paper buy defaults to a market order and order buy to a limit order; --type switches2
AssetsCrypto spot, xStocks (tokenized equities), forex, perpetual futures, inverse and fixed-date futures, earn and staking2
Move moneyYes, with the funding service (deposits, withdrawals and transfers), each call needing approval1
Paper tradingYes. paper (spot) and futures-paper services run against live prices with no authentication12
Limits (size, spend)Position size limits and pair allowlists on the API key, set in Kraken’s settings1
Notificationsunknown

How does Kraken’s agent connection work?

  • No hosted endpoint: kraken-mcp is a local process over stdio. It comes with the CLI install, which runs on macOS and Linux, and on Windows through WSL.12
  • Services: -s chooses which command groups the server exposes. market (11 tools), paper (17), futures-paper (17) and feedback (1) need no key. account (18) is read-only apart from two export tools. trade (9), futures (39), earn (6), funding (10) and subaccount (2) are marked dangerous. workspace (20) holds paper and live workspaces, and auth (2) checks credentials. With no -s flag the server exposes market, account, paper, workspace and feedback.1
  • Feedback tool: the feedback service uploads the text you give it to Kraken.1
  • Auth: an API key and secret in environment variables in the client’s MCP configuration, or a key stored once from a terminal. kraken auth login signs in through the browser and saves a restricted spot API key with no withdrawal rights that expires after 90 days by default; --read-only makes a key that cannot trade. You must run it yourself in a terminal; Kraken says a script or an AI agent cannot create a key. kraken setup stores a key you created under Settings → API.12
  • What stays in the CLI: streams (WebSocket feeds, recording, replay), interactive commands, and the local credential commands auth switch and auth reset are not MCP tools.1

What guardrails and risks apply at Kraken?

GuardrailWhere it is enforcedSources
Approval on every call to a dangerous tool (order placement, withdrawals, transfers, workspace promotion)In the local server, through MCP elicitation. Starting the server with --allow-dangerous turns it off1
A client that cannot show an elicitation gets no prompt from the server: the call runs when the model sets acknowledged: trueYour AI client’s own tool-approval setting is the only check1
Choose services: the default set places no live orders and moves no fundsIn the local server you start1
Least-privilege API keys; position size limits and pair allowlists on the keyServer side (exchange), on the key1
Sign-in key from kraken auth login has no withdrawal rights and expiresServer side (exchange)2
Local only: do not expose, tunnel or share the server outside systems you control. Every connected agent uses the same Kraken account and key permissionsYour deployment13
Promoting a paper workspace to live execution needs credentials and asks for confirmationIn the CLI2
Dead man’s switch: kraken order cancel-after 60 cancels all open orders if your process stops sending heartbeatsSet with the CLI; the docs do not say where the timer runs2
Revoking an agent’s accessunknown

The kraken CLI itself places orders without a confirmation prompt; the approval gate is in the MCP server.3 Kraken’s GitHub page also says to treat the MCP integration as alpha and to use least-privilege API keys.3

How do you connect an agent to Kraken?

  1. Install kraken-cli; kraken-mcp comes with it.1
  2. Start with kraken-mcp -s market,paper,feedback, which needs no credentials.1
  3. Add services only as your workflow needs them. Kraken says to scope services to the minimum.1
  4. Before adding trade, create a least-privilege key and set position size limits and pair allowlists on it.1

How do I connect Kraken from my AI app?

Every app runs the same local command. If an app reports “Failed to connect”, it cannot find kraken-mcp on its PATH; set the command to the full path that command -v kraken-mcp prints.1

AppHow to connectSources
Claude CodeInstall the plugin, which adds the server and the CLI’s agent skills: /plugin marketplace add krakenfx/kraken-cli, then /plugin install kraken-cli@kraken. Or register only the server: claude mcp add --scope user kraken -- kraken-mcp -s market,paper,feedback. Check with claude mcp list1
Claude DesktopIn ~/Library/Application Support/Claude/claude_desktop_config.json, add a kraken server with command kraken-mcp and args -s market,paper,feedback, then restart Claude Desktop1
CursorAdd the same server entry to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project, then reload the window1
VS Code (Copilot)Add a stdio server running kraken-mcp -s market,paper,feedback to .vscode/mcp.json in your workspace1
WindsurfAdd the same server entry to ~/.codeium/windsurf/mcp_config.json, then restart Windsurf1
Gemini CLIInstall the extension: gemini extensions install https://github.com/krakenfx/kraken-cli1
Other MCP clientsUse the same command and arguments: kraken-mcp -s market,paper,feedback1

The quickstart set has no live trading. To add it, Kraken’s example is -s market,paper,trade with a least-privilege API key.1

What is still unknown about Kraken?

  • How to revoke an agent’s access: unknown. The sign-in key expires on its own (90 days by default).2
  • Countries where agent trading is available: unknown.
  • Order types beyond market and limit through MCP: unknown.
  • Notifications for agent trades: unknown.
  • Agent terms of use: not yet reviewed here.

Every fact on this page links to a source card; “unknown” means no source we cite confirms it.

What changed on this page?

  • 2026-11-19: First version of this page.

Sources


Suggest a correction (opens a GitHub issue)

Footnotes

  1. MCP server - Kraken docs. Kraken, official, retrieved 2026-11-19. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22 ↩23 ↩24 ↩25 ↩26 ↩27 ↩28 ↩29 ↩30 ↩31

  2. kraken-cli - Kraken docs. Kraken, official, retrieved 2026-11-19. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10

  3. GitHub - krakenfx/kraken-cli: Kraken CLI · GitHub. Kraken (GitHub), official, retrieved 2026-11-19. ↩ ↩2 ↩3 ↩4