VaultPilot MCP
Self-custodial crypto portfolio: read EVM DeFi, sign on Ledger via WalletConnect.
Ask AI about VaultPilot MCP
Powered by Claude Β· Grounded in docs
I know everything about VaultPilot MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
VaultPilot MCP
Self-custodial crypto portfolio and DeFi, managed by AI agents β signed on your Ledger hardware wallet.

VaultPilot MCP is a Model Context Protocol server that lets AI agents β Claude Code, Claude Desktop, Cursor, and any MCP-compatible client β read your on-chain positions across Ethereum, Arbitrum, Polygon, Base, and TRON and prepare EVM transactions that you sign on your Ledger device via WalletConnect. Your private keys never leave the hardware wallet, and every transaction is previewed in human-readable form before you approve it on the device.
Supported protocols: Aave V3, Compound V3 (Comet), Morpho Blue, Uniswap V3 LP, Lido (stETH/wstETH), EigenLayer, plus LiFi for swap/bridge aggregation and 1inch for optional intra-chain quote comparison.
Use it when you want to:
- Ask an agent "what are my DeFi positions across Ethereum, Arbitrum, Polygon, and Base?" and get a unified portfolio view (wallet balances + Aave/Compound/Morpho lending + Uniswap V3 LP + Lido/EigenLayer staking) with USD totals.
- Get liquidation-risk alerts ("any position below health factor 1.5?") without manually checking dashboards.
- Swap or bridge tokens β the agent prepares the route via LiFi, you sign on Ledger.
- Supply, borrow, repay, withdraw on lending protocols; stake ETH on Lido; deposit into EigenLayer strategies; send ETH or ERC-20 tokens β all through Ledger-signed transactions.
- Assess protocol security before interacting with it: contract verification, EIP-1967 proxy/admin keys, privileged roles (Ownable, AccessControl, Gnosis Safe multisig, Timelock), and a DefiLlama-backed 0β100 risk score.
- Look up token prices, resolve ENS names, and poll transaction status.
This is an agent-driven portfolio management tool, not a wallet replacement. The MCP never holds keys or broadcasts anything you haven't approved on your Ledger device.
Features
- Positions β lending/borrowing (Aave, Compound, Morpho), LP positions, and health-factor alerts
- Portfolio β cross-chain balances, DeFi position aggregation, USD-denominated summaries
- Staking β Lido, EigenLayer, reward aggregation, yield estimation
- Security β contract verification, upgradeability checks, privileged-role enumeration, protocol risk scoring
- Swaps β LiFi-routed intra-chain and cross-chain quotes; intra-chain routes are also cross-checked against 1inch (when an API key is configured) with a
bestSourcehint and output-delta savings - Execution β tx preparation for Aave, Compound, Morpho, Lido, EigenLayer, native/token sends, swaps; signing via Ledger Live (WalletConnect) for EVM chains
- Utilities β ENS forward/reverse resolution, token balances, transaction status
Security model
VaultPilot assumes the AI agent can be compromised, the MCP server can be compromised, and your host computer can be compromised. Only your Ledger device is trusted. Every transaction is cryptographically bound across every layer so that tampering anywhere β a swapped recipient, a rewritten swap route, a smuggled approval β produces a visible mismatch on the device screen, giving you the chance to reject before anything is signed.
Private keys never leave the Ledger device. Every state-changing transaction is prepared read-only by the server, previewed in human-readable form, and approved on the device's own screen β the only display in the pipeline that isn't filtered through the agent.
user-intent βββΊ agent βββΊ MCP server βββΊ WalletConnect / USB-HID βββΊ Ledger Live / host βββΊ Ledger device
VaultPilot layers defenses so most single-layer compromises are caught by at least one cross-check, and the cases that aren't are called out honestly. The layers include a server-side prepareβsend fingerprint, an independent 4byte.directory selector cross-check, an agent-side ABI decode and pair-consistency pre-sign hash recomputation that auto-run at preview_send and are reported in a CHECKS PERFORMED block (with a swiss-knife decoder URL as a suggested fallback when the agent's ABI decode is low-confidence), an on-device final check β in blind-sign mode the user matches a Ledger-displayed hash against the one the server returned; in clear-sign mode (Aave, Lido, 1inch, LiFi, approve plugins) the user checks decoded fields (function name, amount, recipient, spender) against the compact summary shown in chat β a verbatim PREPARE RECEIPT of the args the agent actually passed, a previewToken + userDecision gate against accidental preview-step collapse, a WalletConnect session-topic cross-check (the agent surfaces the last 8 chars of the WC session topic and asks the user to confirm a matching session exists in Ledger Live β Settings β Connected Apps, catching peer impersonation any self-reported name/URL can't), and β for skeptical users on high-value flows β a get_verification_artifact that routes bytes to a second, independent LLM for cross-verification.
See SECURITY.md for the full defenses table, threat β catches-it mapping, honest limits, the payloadFingerprint verification recipe, and the second-agent verification flow.
Supported chains
EVM: Ethereum, Arbitrum, Polygon, Base.
Non-EVM: TRON β full reads (balance, staking state, SR listing) and full write coverage (native TRX sends, canonical TRC-20 transfers, voting-reward claims, Stake 2.0 freeze/unfreeze/withdraw-expire-unfreeze, and VoteWitness) signed on a directly-connected Ledger over USB HID. Ledger Live's WalletConnect relay does not currently honor the tron: namespace (verified 2026-04-14), so TRON signing goes through @ledgerhq/hw-app-trx β the user's Ledger must be plugged into the host running the MCP, unlocked, with the TRON app open. Pair via pair_ledger_tron once per session.
Not every protocol is on every chain. Lido and EigenLayer are L1-only (Ethereum). Morpho Blue is currently enabled on Ethereum only β it is deployed on Base at the same address but the discovery scan needs a pinned deployment block, tracked as a follow-up. TRON has no lending/LP coverage in this server (none of Aave/Compound/Morpho/Uniswap are deployed there); balance reads return TRX + canonical TRC-20 stablecoins (USDT, USDC, USDD, TUSD) that together cover the vast majority of TRON token volume, and TRON-native staking (frozen TRX under Stake 2.0, pending unfreezes, claimable voting rewards) is surfaced via get_tron_staking and folded into the portfolio summary. Readers short-circuit cleanly on chains where a protocol isn't deployed.
Roadmap
- MetaMask support (WalletConnect) β alongside the existing Ledger Live integration. Will let users sign through a MetaMask-paired session when a hardware wallet isn't available.
- Solana β coming later. Non-EVM: introduces a separate SDK (
@solana/web3.js), base58 addresses, and the WalletConnectsolana:namespace for signing. - Server-integrated second-agent verification β have the MCP call an independent second-provider LLM directly on every high-value or blind-sign-expected
send_transaction, relay its verdict to the user, and block the send on disagreement. Structurally closes the coordinated-agent gap that today's copy-pasteget_verification_artifactflow only narrows (the copy-paste path depends on the first agent not silently suppressing the artifact). Additive, opt-in feature β the self-custody trust model (no private keys on the server, no broadcast without device approval) is unchanged.
Tools exposed to the agent
Read-only (no Ledger pairing required):
get_portfolio_summaryβ cross-chain portfolio aggregation with USD totals; pass an optionaltronAddress(base58, prefix T) alongside an EVMwalletto fold TRX + TRC-20 balances + TRON staking (frozen + pending-unfreeze + claimable rewards) into the same total (returned underbreakdown.tron,tronUsd, andtronStakingUsd)get_lending_positionsβ Aave V3 collateral/debt/health-factor per walletget_compound_positionsβ Compound V3 (Comet) base + collateral positionsget_morpho_positionsβ Morpho Blue positions; auto-discovers the wallet's markets via event-log scan whenmarketIdsis omitted (pass explicit ids for a fast path)get_lp_positionsβ Uniswap V3 LP positions, fee tier, in-range, IL estimateget_staking_positions,get_staking_rewards,estimate_staking_yieldβ Lido + EigenLayerget_health_alertsβ Aave positions near liquidationsimulate_position_changeβ projected Aave health factor for a hypothetical actionsimulate_transactionβ runeth_callagainst a prepared or arbitrary tx to preview success/revert before signing; prepared txs are re-simulated automatically at send timeget_token_balance,get_token_priceβ balances and DefiLlama prices;get_token_balanceacceptschain: "tron"with a base58 wallet and a base58 TRC-20 address (ortoken: "native"for TRX), returning aTronBalanceshapeget_tron_stakingβ TRON-native staking state for a base58 address: claimable voting rewards (WithdrawBalance-ready), frozen TRX under Stake 2.0 (bandwidth + energy), and pending unfreezes with ISO unlock timestamps. Pair withprepare_tron_claim_rewardsto actually withdraw accumulated rewards.list_tron_witnessesβ TRON Super Representatives + SR candidates, ranked by vote weight, with a rough voter-APR estimate per SR. Optionally augments with the caller's current vote allocation, total TRON Power, and available (unused) votes β pair withprepare_tron_vote.resolve_ens_name,reverse_resolve_ensβ ENS forward/reverseget_swap_quoteβ LiFi quote (optionally cross-checked against 1inch)check_contract_security,check_permission_risks,get_protocol_risk_scoreβ risk toolingget_transaction_statusβ poll inclusion by hashget_verification_artifactβ returns a sparse, copy-paste-friendly JSON artifact (raw calldata + chain + payloadHash + preSignHash if pinned) for a prepared tx, plus a canned prompt telling a second LLM how to independently decode it. Intended for adversarial cross-verification on high-value flows β see SECURITY.md
Meta:
request_capabilityβ agent-facing escape hatch: files a GitHub issue on this repo when the user asks for something vaultpilot-mcp can't do (new protocol, new chain, missing tool). Default mode returns a pre-filled issue URL (zero spam risk β user must click to submit). Operators can setVAULTPILOT_FEEDBACK_ENDPOINTto a proxy that posts directly. Rate-limited: 30s between calls, 3/hour, 10/day, 7-day dedupe on identical summaries.
Execution (Ledger-signed):
pair_ledger_live(WalletConnect, EVM),pair_ledger_tron(USB HID, TRON),get_ledger_statusβ session management and account discovery;get_ledger_statusreturns per-chain EVM exposure (accountDetails[]withaddress,chainIds,chains) so duplicate-looking addresses across chains are disambiguated, the WalletConnect sessiontopic(the agent is instructed to surface its last 8 chars and ask the user to verify a matching session in Ledger Live β Settings β Connected Apps before the firstsend_transactionβ any WC peer can self-report "Ledger Wallet" /wc.apps.ledger.com, but the session topic is unique per pairing), and atron: [{ address, path, appVersion, accountIndex }, β¦]array (one entry per paired TRON account) whenpair_ledger_tronhas been called. PassaccountIndex: 1(2, 3, β¦) to pair additional TRON accounts.prepare_aave_supply/_withdraw/_borrow/_repayprepare_compound_supply/_withdraw/_borrow/_repayprepare_morpho_supply/_withdraw/_borrow/_repay/_supply_collateral/_withdraw_collateralprepare_lido_stake,prepare_lido_unstakeprepare_eigenlayer_depositprepare_swapβ LiFi-routed intra- or cross-chain swap/bridgeprepare_native_send,prepare_token_sendprepare_tron_native_send,prepare_tron_token_send,prepare_tron_claim_rewards,prepare_tron_freeze,prepare_tron_unfreeze,prepare_tron_withdraw_expire_unfreeze,prepare_tron_voteβ TRON tx builders (native TRX send, canonical TRC-20 transfer, WithdrawBalance claim, Stake 2.0 freeze/unfreeze/withdraw-expire-unfreeze, VoteWitness)send_transactionβ forwards a prepared tx for user approval. EVM handles go to Ledger Live via WalletConnect; TRON handles go to the USB-connected Ledger via@ledgerhq/hw-app-trxand are broadcast via TronGrid
Requirements
- Node.js >= 18.17
- An RPC provider (Infura, Alchemy, or custom) for the EVM chains
- Optional: Etherscan API key, 1inch Developer Portal API key (enables swap-quote comparison), WalletConnect Cloud project ID (required for EVM Ledger signing), TronGrid API key (enables TRX + TRC-20 balance reads)
- For TRON signing: USB HID access to a Ledger device with the Tron app installed. On Linux, Ledger's udev rules must be installed or
hidrawaccess fails with "permission denied". The@ledgerhq/hw-transport-node-hiddependency compilesnode-hidnatively atnpm installtime, which needslibudev-dev+ a C/C++ toolchain on Debian/Ubuntu (sudo apt install libudev-dev build-essential).
Install
From npm (recommended)
npm install -g vaultpilot-mcp
vaultpilot-mcp-setup
From source
git clone https://github.com/szhygulin/vaultpilot-mcp.git
cd vaultpilot-mcp
npm install
npm run build
Setup
Run the interactive setup to pick an RPC provider, validate the key, optionally pair Ledger Live, and write ~/.vaultpilot-mcp/config.json:
npm run setup
Environment variables always override the config file at runtime.
Use with Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"vaultpilot-mcp": {
"command": "vaultpilot-mcp"
}
}
}
(If you installed from source rather than via npm i -g, swap "command": "vaultpilot-mcp" for "command": "node" and "args": ["/absolute/path/to/vaultpilot-mcp/dist/index.js"].)
The setup script prints a ready-to-paste snippet.
Environment variables
All are optional if the matching field is in ~/.vaultpilot-mcp/config.json; env vars take precedence when both are set.
ETHEREUM_RPC_URL,ARBITRUM_RPC_URL,POLYGON_RPC_URL,BASE_RPC_URLβ custom RPC endpointsRPC_PROVIDER(infura|alchemy) +RPC_API_KEYβ alternative to custom URLsETHERSCAN_API_KEYβ contract verification lookupsONEINCH_API_KEYβ enables 1inch quote comparison inget_swap_quoteTRON_API_KEYβ TronGrid API key (sent asTRON-PRO-API-KEY). Required in practice to read TRON balances β anonymous TronGrid calls are capped at ~15 req/min, which the portfolio fan-out exceeds. Free to create at trongrid.io.WALLETCONNECT_PROJECT_IDβ required for Ledger Live signingRPC_BATCH=1β opt into JSON-RPC batching (off by default; many public endpoints mishandle batched POSTs)VAULTPILOT_ALLOW_INSECURE_RPC=1β opt out of the https/private-IP check on RPC URLs. Only set this when pointing at a local anvil/hardhat fork; never in production. (Old nameRECON_ALLOW_INSECURE_RPCis still honored for one release.)VAULTPILOT_FEEDBACK_ENDPOINTβ optional https URL forrequest_capabilityto POST directly (e.g. a maintainer-operated proxy that creates GitHub issues with a bot token). When unset (the default),request_capabilityreturns a pre-filled GitHub issue URL for the user to click through; nothing is transmitted automatically. Operator responsibility: the vaultpilot-mcp client does not sign or authenticate POST requests. If you set this endpoint, the proxy MUST enforce its own auth (IP allowlist, Cloudflare Access, HMAC header validation, etc.) β otherwise any caller who learns the URL can submit to it. The on-process rate limiter (3/hour, 10/day) is a courtesy, not a security control. (Old nameRECON_FEEDBACK_ENDPOINTis still honored for one release.)
Development
npm run dev # tsc --watch
npm test # vitest run
npm run test:watch
License
MIT β see LICENSE.
