kraken-portfolio-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kraken-portfolio-mcpGenerate my German crypto tax report for 2025"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: zerion-mcp
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nabil-MEDIOUNI/kraken-portfolio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server