Built for AI Agents
Connect Claude, Cursor, or any MCP-compatible agent to Solana DeFi data. 10 wallet-centric tools for portfolio analysis, positions, and PnL tracking.
Pay.sh access
Pay per call, no Top Ledger API key required
Agents can use the Pay.sh gateway for wallet intelligence endpoints at https://api.topledger.xyz/pay. Calls are priced at $0.0004 each and settle through MPP in Solana USDC.
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
10 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_governanceGovernance token deposits across SPL Governance / Realms and Tribeca DAOs.
“Show me governance deposits for wallet X”
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_holdingsNative SOL plus Jupiter-verified SPL / Token-2022 balances with real-time USD pricing.
“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