Octav API MCP Server
MCP server for querying cryptocurrency portfolio data, transaction history, net worth, and historical snapshots across 20+ blockchains via the Octav API.
README
██████╗ ██████╗████████╗ █████╗ ██╗ ██╗
██╔═══██╗██╔════╝╚══██╔══╝██╔══██╗██║ ██║
██║ ██║██║ ██║ ███████║██║ ██║
██║ ██║██║ ██║ ██╔══██║╚██╗ ██╔╝
╚██████╔╝╚██████╗ ██║ ██║ ██║ ╚████╔╝
╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝
Octav API MCP Server
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.
Features
- 🔗 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
Installation
For End Users
The easiest way to use this MCP server is with npx (no installation required):
npx octav-api-mcp
Or install globally:
npm install -g octav-api-mcp
# or
pnpm add -g octav-api-mcp
For Development
Clone the repository and build from source:
git clone https://github.com/Octav-Labs/octav-api-mcp.git
cd octav-api-mcp
pnpm install
pnpm build
Configuration
Create a .env file in the project root:
OCTAV_API_KEY=your-api-key-here
Get your API key from octav.fi.
Usage
With Claude Desktop
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"
}
}
}
}
With MCP Inspector
For testing and debugging:
pnpm build
pnpm dlx @modelcontextprotocol/inspector node build/index.js
Available Tools
All tools use the octav_ prefix for namespace clarity.
Portfolio & Holdings (4 tools)
1. octav_get_portfolio
Get complete portfolio including wallet holdings and DeFi protocol positions.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
2. octav_get_wallet
Get wallet holdings only (excludes DeFi protocols).
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
3. octav_get_nav
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
4. octav_get_token_overview
Get aggregated token distribution across all chains.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
Transactions (2 tools)
5. octav_get_transactions
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
6. octav_sync_transactions
Manually trigger transaction synchronization.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: 1 credit per address
Historical & Snapshots (2 tools)
7. octav_get_historical
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
8. octav_subscribe_snapshot
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
Metadata (2 tools)
9. octav_get_status
Check synchronization status across all chains.
Parameters:
addresses(required): Array of wallet addresses (max 10)
Cost: FREE
10. octav_get_credits
Check API credit balance and usage.
Parameters: None
Cost: FREE
Specialized (4 tools)
11. octav_get_airdrop
Check airdrop eligibility (Solana only).
Parameters:
address(required): Solana wallet address
Cost: 1 credit
12. octav_get_polymarket
Get Polymarket prediction market positions.
Parameters:
address(required): Ethereum wallet address
Cost: 1 credit
13. octav_agent_wallet
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
14. octav_agent_portfolio
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
Address Formats
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
Response Format
All tools return dual-format responses:
- Markdown Summary: Human-readable overview with key metrics
- Full JSON: Complete API response data for programmatic access
API Costs & Rate Limits
- 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
Error Handling
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
Development
Build
pnpm build
Watch Mode
pnpm dev
Testing
pnpm test
Example Usage
Once 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?"
Supported Chains
Ethereum, Solana, Arbitrum, Base, Polygon, Optimism, BNB Chain, Avalanche, Fantom, Cronos, Gnosis, Celo, Moonbeam, Moonriver, Harmony, Aurora, Metis, Boba, Fuse, Evmos, Kava, and more.
License
MIT
Links
Support
For API issues or questions, visit octav.fi or check the API documentation.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。