kraken
MCP Server for the Kraken Crypto Exchange
claude mcp add --transport stdio oilst-kraken-mcp python kraken-server.py \ --env KRAKEN_API_KEY="your_public_key" \ --env KRAKEN_API_SECRET="your_private_base64_secret"
How to use
Kraken Pro MCP for Gemini CLI exposes a set of trading and market data tools that wrap the Kraken Pro REST API for use inside the Gemini CLI. Once running, Gemini will automatically select the appropriate tool based on your natural-language prompt, enabling you to fetch market data, place orders, and manage your Kraken account from the terminal. Available trading tools include adding orders, canceling or amending orders, listing open orders, and setting a dead-man switch to cancel all orders if needed. Market data tools provide access to server time, system status, asset info, tradable pairs, tickers, OHLC data, order books, and recent trades or spreads. You can invoke these tools by prompting Gemini with natural language, for example asking for the current price of a pair or placing an order with specific parameters, and the CLI will route to the corresponding tool with the appropriate arguments.
How to install
Prerequisites:
- Gemini CLI configured on your system
- FastMCP CLI installed (pip install fastmcp-cli)
- Kraken Pro account with API keys
Installation steps:
-
Clone the repository: git clone https://github.com/oilst/kraken-mcp.git cd kraken-mcp
-
Prepare environment variables: Create a .env file (or export in your shell) with your Kraken API credentials:
KRAKEN_API_KEY="your_public_key" KRAKEN_API_SECRET="your_private_base64_secret"
-
Install the MCP server via FastMCP: fastmcp install gemini-cli kraken-server.py
-
Run the server (example): python kraken-server.py or rely on FastMCP to manage the server as part of the Gemini CLI workflow
Note:
- Ensure kraken-server.py is present in the project root and accessible.
- The environment variables KRAKEN_API_KEY and KRAKEN_API_SECRET must be set for authentication with Kraken Pro.
- If you encounter permission or network issues, verify Python availability and network access to Kraken endpoints.
Additional notes
Tips and caveats:
- The tools mirror common Kraken Pro API actions; for exact parameter details, refer to the docstrings in kraken-server.py.
- Use validate=True for trading operations to test before placing real orders.
- Store your API keys securely; avoid committing .env files to version control.
- If running behind proxies or corporate networks, ensure outbound access to Kraken endpoints is allowed.
- The MCP server relies on the Gemini CLI to route natural language prompts to the appropriate tool; ensure Gemini is properly installed and configured.
Related MCP Servers
code-mode
🔌 Plug-and-play library to enable agents to call MCP and UTCP tools via code execution.
mysql_mcp_server
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Gitingest
mcp server for gitingest
skill-to
Convert AI Skills (Claude Skills format) to MCP server resources - Part of BioContextAI
Convert-Markdown-PDF
Markdown To PDF Conversion MCP
mcp-coroot
MCP server for Coroot observability platform - integrate monitoring, troubleshooting, and configuration tools with AI agents