zerion-mcp
Provides Bitcoin address balance and transaction history, and HD wallet (xpub) balance derivation using Blockstream API.
Provides portfolio data, token positions, transaction history, DeFi positions, gas prices, and swap quotes for Ethereum (and other EVM chains) via Zerion API.
Provides gas prices and swap quotes for Optimism via Zerion API.
Provides portfolio data and token positions for Solana via Zerion API.
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., "@zerion-mcpWhat's my total portfolio value?"
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.
zerion-mcp
A local MCP (Model Context Protocol) server that gives Claude Desktop and Claude Code live access to your crypto portfolio — powered by the Zerion API for EVM + Solana chains, and Blockstream for Bitcoin.
Once connected, you can ask Claude things like:
"What's my total portfolio value across Ethereum and Base?"
"Show my Uniswap LP positions"
"What's my Bitcoin balance from this xpub?"
"What are current gas prices on Arbitrum and Optimism?"
"Get swap offers to trade 1 ETH for USDC"
Prerequisites
Node.js v18 or higher (
node --versionto check)npm v8 or higher
Zerion API key — free tier available at developers.zerion.io
Git
Installation
1. Clone the repository
git clone https://github.com/rockyale/zerion-mcp.git
cd zerion-mcp2. Install dependencies
npm install3. Get your Zerion API key
Sign up for free at developers.zerion.io, go to the Dashboard, and copy your API key.
Connecting to Claude Desktop
macOS
Open the Claude Desktop config file:
open ~/Library/Application\ Support/Claude/Edit claude_desktop_config.json (create it if it doesn't exist):
{
"mcpServers": {
"zerion": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/zerion-mcp/src/index.ts"],
"env": {
"ZERION_API_KEY": "your_api_key_here"
}
}
}
}Replace /absolute/path/to/zerion-mcp with the actual path. To find it, run pwd inside the project folder.
Example:
"args": ["tsx", "/Users/yourname/projects/zerion-mcp/src/index.ts"]Windows
Open the Claude Desktop config file at:
%APPDATA%\Claude\claude_desktop_config.jsonYou can open it by pressing Win + R, typing %APPDATA%\Claude and hitting Enter.
Edit the file:
{
"mcpServers": {
"zerion": {
"command": "npx",
"args": ["tsx", "C:\\Users\\yourname\\projects\\zerion-mcp\\src\\index.ts"],
"env": {
"ZERION_API_KEY": "your_api_key_here"
}
}
}
}Note: use double backslashes \\ in Windows paths.
After editing the config
Fully quit Claude Desktop (not just close the window) and reopen it. To confirm your Zerion MCP tools are loaded, click + in chat input and look for Zerion listed there in connectors — if it's showing, you're good to go.
Connecting to Claude Code
Run this once in your terminal:
claude mcp add zerion \
--env ZERION_API_KEY="your_api_key_here" \
-- npx tsx /absolute/path/to/zerion-mcp/src/index.tsVerify with:
claude mcp listAvailable Tools
Wallet
Tool | Description |
| Total portfolio value, breakdown by chain and position type |
| Token and DeFi protocol positions (supports Uniswap, Aave, etc.) |
| Full transaction history with decoded action types |
| Realized and unrealized PnL using FIFO accounting |
| NFTs held by a wallet |
| NFT portfolio overview and total value |
| Historical portfolio balance over time |
Wallet Sets (multi-wallet aggregation)
Tool | Description |
| Aggregated portfolio across EVM + Solana wallet pair |
| Aggregated token positions across wallet set |
| Aggregated PnL across wallet set |
| Aggregated transaction history across wallet set |
Tokens
Tool | Description |
| Search tokens by name, symbol, or contract address |
| Detailed token info by Zerion ID |
| Token price chart over a time period |
Chains & Gas
Tool | Description |
| All blockchain networks supported by Zerion |
| Real-time gas prices across all supported chains |
Swap
Tool | Description |
| Swap/bridge quotes from aggregated providers (1inch, ParaSwap, 0x) with ready-to-sign transaction data |
Bitcoin
Tool | Description |
| Balance and stats for a single Bitcoin address (legacy, SegWit, native SegWit) |
| Recent transaction history for a Bitcoin address |
| Full HD wallet balance from an xpub/zpub key — derives all child addresses and sums balance (for Ledger and other HD wallets) |
Getting your Bitcoin xpub (Ledger)
If you use Ledger Live with Native SegWit (bc1 addresses):
Open Ledger Live
Go to your Bitcoin account
Click the three dots → Edit account → Advanced
Copy the xpub key
Paste it into Claude: "Get my Bitcoin balance from this xpub: xpub6..."
External Services
Service | Used for | Auth required | Docs |
All EVM + Solana portfolio data, transactions, DeFi positions, gas prices, swaps | ✅ API key | ||
Bitcoin address balances and transaction history | ❌ None |
Bitcoin xpub derivation is done locally using:
bip32— HD key derivationbitcoinjs-lib— address generationtiny-secp256k1— elliptic curve cryptography
No private keys are ever required or used. The xpub is a read-only key — it can only derive public addresses.
Project Structure
zerion-mcp/
├── src/
│ ├── index.ts # MCP server entry point, stdio transport
│ ├── tools.ts # Tool definitions and input schemas
│ ├── handlers.ts # Maps tool calls to API requests
│ └── client.ts # Zerion API auth, fetch wrapper, pagination
├── package.json
├── tsconfig.json
└── README.mdSecurity notes
Your Zerion API key is passed via environment variable and never hardcoded
The xpub key is read-only — it cannot sign transactions or move funds
Never commit your API key to git — add
.envto.gitignoreif you use oneFor team use, share the repo without keys and let each developer set
ZERION_API_KEYin their own shell profile
Troubleshooting
Tools not showing up in Claude Desktop
Make sure you fully quit and reopened Claude Desktop after editing the config
Check the path in the config points to the correct
src/index.tsRun
tail -f ~/Library/Logs/Claude/mcp-server-zerion.log(macOS) to see errors
fetch failed on Bitcoin tools
This can happen if Blockstream rate-limits rapid requests — the server includes a 150ms delay between address queries to avoid this
If it persists, try again after a few seconds
ZERION_API_KEY not set error
Make sure the key is set in the
envblock of yourclaude_desktop_config.jsonDouble-check there are no extra spaces or quotes around the key value
Uniswap / DeFi positions not showing
Make sure to pass
filter_positions: no_filterwhen asking for positions, otherwise only simple wallet tokens are returned by default
This server cannot be installed
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
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/rockyale/zerion-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server