██████╗ ██████╗████████╗ █████╗ ██╗ ██╗
██╔═══██╗██╔════╝╚══██╔══╝██╔══██╗██║ ██║
██║ ██║██║ ██║ ███████║██║ ██║
██║ ██║██║ ██║ ██╔══██║╚██╗ ██╔╝
╚██████╔╝╚██████╗ ██║ ██║ ██║ ╚████╔╝
╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝MCP (Model Context Protocol) server for the Octav cryptocurrency portfolio tracking API. This server enables LLM agents to query portfolio data, transaction history, net worth, and historical snapshots across 20+ blockchains.
- 🔗 20+ Blockchain Support: Ethereum, Solana, Arbitrum, Base, Polygon, and more
- 💼 Complete Portfolio Tracking: Wallets + DeFi protocol positions
- 📊 Transaction History: Advanced filtering and pagination
- 💰 Multi-Currency NAV: USD, EUR, GBP, JPY, CNY, ETH, BTC
- 📸 Historical Snapshots: Track portfolio value over time
- 🎯 Token Distribution: Aggregated token holdings across chains
- 🎁 Airdrop Tracking: Solana airdrop eligibility
- 📈 Polymarket Positions: Prediction market tracking
- 🤖 x402 Payment Protocol: AI agent-friendly endpoints
The easiest way to use this MCP server is with npx (no installation required):
npx octav-api-mcpOr install globally:
npm install -g octav-api-mcp
# or
pnpm add -g octav-api-mcpClone the repository and build from source:
git clone https://github.com/Octav-Labs/octav-api-mcp.git
cd octav-api-mcp
pnpm install
pnpm buildCreate a .env file in the project root:
OCTAV_API_KEY=your-api-key-hereGet your API key from octav.fi.
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"octav": {
"command": "npx",
"args": ["-y", "octav-api-mcp"],
"env": {
"OCTAV_API_KEY": "your-api-key-here"
}
}
}
}The -y flag automatically confirms package installation if not already cached.
Alternative (if installed globally):
{
"mcpServers": {
"octav": {
"command": "octav-api-mcp",
"env": {
"OCTAV_API_KEY": "your-api-key-here"
}
}
}
}For testing and debugging:
pnpm build
pnpm dlx @modelcontextprotocol/inspector node build/index.jsAll tools use the octav_ prefix for namespace clarity.
Get complete portfolio including wallet holdings and DeFi protocol positions.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
Get wallet holdings only (excludes DeFi protocols).
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
Get total net worth (NAV) in specified currency.
Parameters:
addresses(required): Array of wallet addresses (max 10)currency(optional): Currency code (usd, eur, gbp, jpy, cny, eth, btc). Default: usd
Cost: 1 credit per address
Get aggregated token distribution across all chains.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
Query transaction history with filtering and pagination.
Parameters:
addresses(required): Array of wallet addresses (max 10)chain(optional): Filter by specific chaintype(optional): Filter by transaction typestartDate(optional): Start date (YYYY-MM-DD)endDate(optional): End date (YYYY-MM-DD)offset(optional): Pagination offset. Default: 0limit(optional): Number of results (1-250). Default: 50
Cost: 1 credit per address
Manually trigger transaction synchronization.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
Get portfolio snapshot for a specific date in the past.
Parameters:
addresses(required): Array of wallet addresses (max 10)date(required): Date for snapshot (YYYY-MM-DD)
Cost: 1 credit per address
Subscribe to automatic portfolio snapshots.
Parameters:
addresses(required): Array of wallet addresses (max 10)frequency(required): Snapshot frequency (daily, weekly, monthly)
Cost: 1 credit per address
Check synchronization status across all chains.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: FREE
Check API credit balance and usage.
Parameters: None
Cost: FREE
Check airdrop eligibility (Solana only).
Parameters:
address(required): Solana wallet address
Cost: 1 credit
Get Polymarket prediction market positions.
Parameters:
address(required): Ethereum wallet address
Cost: 1 credit
Get wallet holdings via x402 payment protocol (for AI agents).
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: Paid via HTTP 402 payment protocol
Get full portfolio via x402 payment protocol (for AI agents).
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: Paid via HTTP 402 payment protocol
The server accepts two address formats:
- EVM addresses:
0xfollowed by 40 hex characters (Ethereum, Polygon, Arbitrum, Base, etc.) - Solana addresses: 32-44 character base58 strings
All tools return dual-format responses:
- Markdown Summary: Human-readable overview with key metrics
- Full JSON: Complete API response data for programmatic access
- Most endpoints cost 1 credit per address
octav_get_statusandoctav_get_creditsare FREE- Transaction queries have a max limit of 250 per request
- Max 10 addresses per request
- Purchase credits at octav.fi
The server provides clear error messages for:
- Validation errors: Invalid address formats, parameter constraints
- Authentication errors: Invalid API key
- Insufficient credits: Low balance with purchase link
- Rate limiting: Retry suggestions
- Network errors: Connection issues
pnpm buildpnpm devpnpm testOnce configured with Claude Desktop, you can ask questions like:
- "What's in my Ethereum wallet 0x..."
- "Show me my complete crypto portfolio for addresses X, Y, Z"
- "What was my net worth on 2024-01-01?"
- "Get my transaction history for the last month"
- "Am I eligible for any Solana airdrops?"
- "What are my Polymarket positions?"
Ethereum, Solana, Arbitrum, Base, Polygon, Optimism, BNB Chain, Avalanche, Fantom, Cronos, Gnosis, Celo, Moonbeam, Moonriver, Harmony, Aurora, Metis, Boba, Fuse, Evmos, Kava, and more.
MIT
For API issues or questions, visit octav.fi or check the API documentation.