Built for AI Agents
Connect Claude, Cursor, or any MCP-compatible agent to Solana DeFi data. 9 wallet-centric tools for portfolio analysis, positions, and PnL tracking.
Integration
Setup in under 30 seconds
1. Edit your config file
~/Library/Application Support/Claude/claude_desktop_config.json(macOS)%APPDATA%\Claude\claude_desktop_config.json(Windows){
"mcpServers": {
"topledger": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.topledger.xyz/mcp/sse",
"--header",
"x-api-key:YOUR_API_KEY"
]
}
}
}Replace YOUR_API_KEY with your key, then restart Claude Desktop. Tools appear in the MCP panel.
Capabilities
9 Agent Tools
Every tool accepts a wallet address and returns real-time Solana DeFi data.
analyze_walletComplete portfolio overview—total net worth, all DeFi positions, token holdings, and DEX trading PnL in a single call.
Covers all categories
get_all_lendingDeposits, borrows, health factors, and net value across 6 lending protocols.
“Show me the lending positions for wallet X”
get_all_perpsOpen positions, collateral, PnL, and funding rates across perpetual DEXs.
“Does wallet X have any open perp positions?”
get_all_stakingNative SOL, liquid staking, and protocol-specific staking positions.
“How much SOL is wallet X staking?”
get_all_lpActive LP positions with reserves, fee accrual, and price ranges.
“What LP positions does wallet X have?”
get_all_yieldVault deposits, exchange rates, and yield accrual across yield protocols.
“Show me yield positions for wallet X”
get_all_rewardsUnclaimed rewards, fuel points, and pending distributions.
“Does wallet X have any unclaimed rewards?”
get_all_dexFIFO cost basis, realized + unrealized PnL, and 7-day trading performance.
“What is wallet X's trading PnL this week?”
get_holdingsSOL and all SPL token balances with real-time USD pricing via Pyth.
“What tokens does wallet X hold?”
In Action
See it work
What's the portfolio breakdown for wallet 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU?
I'll analyze this wallet using the TopLedger MCP.
This wallet has $12,450 total value:
Holdings
$8,20066%
Kamino Lending
$2,10017%
Orca LP
$1,95015%
DEX PnL (7d)
+$340
Ready to connect?
Get your free API key and start querying Solana DeFi data from any AI agent.
Get API Key