kraken-portfolio-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Kraken Portfolio
A portfolio tracker and tax tool for Kraken day traders in Germany. Connects to the Kraken Futures and Spot APIs, computes FIFO cost basis, and tells you if you owe tax.
What you get
Dashboard at http://localhost:8000 with:
Cash balance across Futures and Spot accounts
Tax overview with filing status (single/married) and allowance calculations
Futures P&L and Spot P&L summaries
Merged transaction history with source filtering, date range, and pagination
Positions table with sorting, side filtering (Long/Short), and source filtering
Everything filterable by year, shareable via URL
MCP Server for AI assistants (Claude Code, Cursor, Codex) to query your portfolio and generate tax reports.
REST API for programmatic access to all your Kraken data.
Related MCP server: mcp-kraken
Quick start
git clone <repo-url> && cd kraken-portfolio-mcp
npm installCreate .env:
KRAKEN_FUTURES_PUBLIC_KEY=your_key
KRAKEN_FUTURES_PRIVATE_KEY=your_key
KRAKEN_SPOT_API_KEY=your_key
KRAKEN_SPOT_API_SECRET=your_keyRun:
npm run dev # dashboard with auto-reload
npm start # production
npm run mcp # MCP server for AI assistantsOpen http://localhost:8000 and hit Sync.
Tax reporting
Built for German tax law. The dashboard shows a live tax overview per year. For a detailed report, ask your AI assistant:
Generate my German crypto tax report for 2025
The MCP tool handles everything:
Spot trades FIFO cost basis, 1-year holding period check, Freigrenze (1,000 EUR)
Margin positions P&L classified under private sales
Futures realized P&L + funding fees, Sparerpauschbetrag (1,000/2,000 EUR), 20k loss cap
Staking rewards at EUR fair market value, 256 EUR Freigrenze
Returns Elster line references and a CSV for WISO Steuer or Taxfix.
API
Futures
Endpoint | Returns |
| Flex + cash account balances |
| Closed position history with P&L |
| Realized P&L, funding fees, transfers |
Spot
Endpoint | Returns |
| All non-zero balances |
| Closed margin positions with P&L |
| Full history with FIFO cost basis |
Other
Endpoint | Returns |
| Dashboard |
| SSE stream for full data sync |
| Server status |
MCP setup
Add to your AI client config:
{
"mcpServers": {
"kraken-portfolio": {
"command": "npx",
"args": ["tsx", "/path/to/kraken-portfolio-mcp/src/mcp-server.ts"],
"env": {
"KRAKEN_FUTURES_PUBLIC_KEY": "...",
"KRAKEN_FUTURES_PRIVATE_KEY": "...",
"KRAKEN_SPOT_API_KEY": "...",
"KRAKEN_SPOT_API_SECRET": "..."
}
}
}
}Available tools
Tool | What it does |
| Futures account balances |
| Closed futures positions |
| Futures transaction history |
| Spot balances |
| Spot margin positions |
| Spot transactions with FIFO |
| Combined portfolio overview |
| Full German tax report with CSV |
Tech
TypeScript + Express
MCP SDK for AI tool integration
FIFO lot tracking for cost basis
Server-Sent Events for live sync
CoinGecko API for crypto icons
No frontend framework single self-contained HTML page
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for SEC, FRED, Polymarket, Deribit, OKX, and FMP.
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
MCP server with quote and live cryptocurrency price tools, local and cloud-deployed transports.
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that provides live crypto portfolio data, token info, gas prices, swap offers, and Bitcoin balance via Zerion and Blockstream APIs.3MIT
- AlicenseBqualityDmaintenanceAn MCP server that exposes the Kraken cryptocurrency exchange Spot REST API over HTTP with bearer token authentication, enabling account management, trading, and market data queries through natural language.541MIT
- AlicenseBqualityDmaintenanceMCP server for interacting with the Kraken cryptocurrency exchange, providing 32 tools for trading, account management, deposits, withdrawals, and grid trading automation.328 npmMIT
- AlicenseAqualityDmaintenanceMCP server for accessing crypto market data (prices, portfolio analytics) from CoinGecko and performing RAG-based search over internal documents with responsible-AI guardrails.4MIT