Lido MCP Server
Provides tools for interacting with Lido smart contracts on Ethereum mainnet, enabling staking ETH, requesting withdrawals, wrapping/unwrapping stETH and wstETH, checking balances and rewards, participating in Lido DAO governance, and monitoring Lido Earn vaults using live on-chain data.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lido MCP Server Stake 1 ETH with Lido, dry run first"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lido MCP Server
Your AI agent can stake, unstake, vote, and monitor yields — without you writing a single contract call.
An MCP (Model Context Protocol) server that makes Lido staking operations natively callable by any AI agent. Say "Stake 1 ETH with Lido (dry run first)" and your agent handles the rest — against real Ethereum mainnet contracts, not mocks.
https://github.com/user-attachments/assets/7dfd2244-6576-4c14-900a-705175a355f3
Features
Staking: Stake ETH → stETH, request withdrawals, wrap/unwrap stETH ↔ wstETH
Balances & Rewards: Query holdings, estimate staking rewards, protocol stats
Governance: List Lido DAO proposals, cast votes via Aragon
Vault Monitoring: Track Lido Earn vault health, yield benchmarks, alerts
Dry Run Mode: Every write operation supports simulation before execution
No Mocks: All data comes from live Ethereum mainnet contracts
Related MCP server: Lido MCP Server
Quick Start
Install and Build
git clone https://github.com/ghost-clio/lido-mcp.git
cd lido-mcp
npm install
npm run buildConnect to Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"lido": {
"command": "node",
"args": ["/path/to/lido-mcp/dist/index.js"],
"env": {
"ETH_RPC_URL": "https://eth.llamarpc.com",
"ETH_PRIVATE_KEY": "0x..."
}
}
}
}Connect to Cursor
In Cursor settings → MCP Servers, add:
{
"lido": {
"command": "node",
"args": ["/path/to/lido-mcp/dist/index.js"]
}
}Environment Variables
Variable | Required | Description |
| No | Ethereum RPC endpoint (default: |
| For writes | Hex-encoded private key for staking/voting transactions |
Read-only operations (balances, stats, proposals) work without a private key.
Try it
You: "How much stETH does vitalik.eth hold?"
Agent: [calls lido_balance] → 0.0 stETH, 0.0 wstETH, 4,291.7 ETH
You: "Stake 1 ETH with Lido, dry run first"
Agent: [calls lido_stake with dry_run=true] → Simulation passed. Gas: 82,341. Ready to execute.Available Tools
Staking
Tool | Description | Params |
| Stake ETH → stETH |
|
| Request withdrawal stETH → ETH |
|
| Wrap stETH → wstETH |
|
| Unwrap wstETH → stETH |
|
Queries
Tool | Description | Params |
| ETH/stETH/wstETH balances |
|
| Estimated staking rewards |
|
| Protocol-wide statistics | — |
Governance
Tool | Description | Params |
| List DAO proposals |
|
| Vote on a proposal |
|
Vault Monitor
Tool | Description | Params |
| Vault status and allocations |
|
| Vault alerts and changes |
|
| Yield vs stETH/Aave benchmarks |
|
Architecture
lido-mcp/
├── src/
│ ├── index.ts # MCP server entry point (stdio transport)
│ ├── tools/
│ │ ├── staking.ts # lido_stake, lido_unstake, lido_wrap, lido_unwrap
│ │ ├── balance.ts # lido_balance, lido_rewards, lido_stats
│ │ ├── governance.ts # lido_proposals, lido_vote
│ │ └── vault.ts # vault_health, vault_alerts, vault_benchmark
│ ├── lib/
│ │ ├── lido.ts # Lido contract interactions via viem
│ │ ├── vault-monitor.ts # Earn vault monitoring + benchmarking
│ │ └── constants.ts # Contract addresses, ABIs
│ └── types.ts # TypeScript interfaces
├── lido.skill.md # Agent skill file (teaches Lido mental model)
├── package.json
├── tsconfig.json
└── README.mdHow It Works
The MCP server starts on stdio and registers 12 tools
Read operations use a public RPC (no API key needed) via
viem'spublicClientWrite operations require
ETH_PRIVATE_KEYand useviem'swalletClientDry runs simulate transactions via
eth_call/estimateGas— no state changesAll amounts are in human-readable format (ETH, not wei) — conversion is handled internally
Contract Addresses (Ethereum Mainnet)
Contract | Address |
stETH |
|
wstETH |
|
Withdrawal Queue |
|
Aragon Voting |
|
Examples
Check balances
> Use lido_balance for address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045Simulate staking
> Stake 1 ETH with Lido (dry run first)Monitor vault
> How is the Earn ETH vault doing? Compare it to stETH and Aave.Check governance
> Show me the latest Lido DAO proposalsTests
npm run build
node --test test/tools.test.cjs # 23 testsSuite | Tests | What it checks |
Project structure | 12 | All source files exist |
Tool registration | 5 | Correct tool count per module (4+3+2+3=12) |
Tool names | 1 | All 12 tool names present in source |
Dry run support | 1 | Write tools accept dry_run parameter |
Contract addresses | 2 | stETH + wstETH addresses match Lido docs |
Build output | 1 | dist/index.js exists after compilation |
Skill file | 1 | lido.skill.md contains Lido mental model |
FAQ
Why MCP over a REST API? MCP is a standard protocol that lets AI agents call tools natively — no HTTP client, no auth tokens, no parsing. The agent says "stake 1 ETH" and the MCP server handles serialization, RPC calls, and response formatting. It works with Claude Desktop, Cursor, and any MCP-compatible client out of the box.
Can this compose with other DeFi MCPs? Yes. Stake with this MCP, then pass the resulting wstETH address to an Aave MCP for lending. MCP tools are independent — agents orchestrate across them naturally.
Who's the target user?
Anyone building AI agents that interact with Lido — DeFi automation, portfolio management bots, governance participation agents, or staking chatbots. The skill file (lido.skill.md) makes it accessible even to agents with no DeFi training.
Known Limitations
Gas estimation: Dry runs simulate but don't report gas cost in the response. Agents can't yet make cost-aware staking decisions.
Testnet: Only mainnet contracts are configured. Set
ETH_RPC_URLto a Holesky RPC and update contract addresses inconstants.tsfor testnet use.No caching: Read operations hit the RPC every call. For high-frequency agents, add application-level caching.
Vault scope: Monitors Lido Earn vaults only, not SimpleDVT or CSM modules.
Agent Skill File
The lido.skill.md file teaches AI agents the Lido mental model — rebasing mechanics, stETH vs wstETH tradeoffs, safe staking patterns, common pitfalls, and workflow examples. Point your agent to this file for best results.
Links
Part of the Agent Stack
AgentScope — On-chain policy enforcement for agent wallets (Safe module)
Aegis — Autonomous treasury with pre-signing enforcement, smart DCA, yield hunting
Ghost Protocol — Private reasoning (Venice.ai) + scoped execution
License
MIT
Available Tools
12 toolslido_balanceA
Get ETH, stETH, and wstETH balances for an address. Shows total stETH-equivalent value and current APY.
Inputs: address (required).
lido_proposalsB
List Lido DAO governance proposals from the Aragon voting contract. Filter by status (active/passed/rejected).
Inputs: limit, status.
lido_rewardsB
Estimate stETH staking rewards for an address based on current holdings and APY.
Inputs: address (required), days.
lido_stakeA
Stake ETH to receive stETH via Lido. Returns ~1:1 stETH. stETH rebases daily to reflect staking rewards.
Inputs: amount (required), dry_run.
lido_statsA
Get Lido protocol-wide statistics: total staked ETH, APY, validators, withdrawal queue, and more.
Inputs: no named parameters.
lido_unstakeA
Request withdrawal from stETH back to ETH. Creates a withdrawal request NFT. Withdrawals take 1-5 days to finalize.
Inputs: amount (required), dry_run.
lido_unwrapA
Unwrap wstETH back to stETH. You'll receive more stETH than you originally wrapped due to accrued rewards.
Inputs: amount (required), dry_run.
lido_voteA
Cast a vote on a Lido DAO governance proposal. Requires LDO tokens. Use dry_run to check eligibility first.
Inputs: support (required), proposal_id (required), dry_run.
lido_wrapA
Wrap stETH into wstETH. wstETH is non-rebasing — its balance stays constant while its value accrues. Required for DeFi and L2 bridging.
Inputs: amount (required), dry_run.
vault_alertsB
Get alerts and status changes for a Lido Earn vault. Returns actionable insights about yield, allocations, and risks.
Inputs: since, vault.
vault_benchmarkA
Compare Lido Earn vault yield against benchmarks: raw stETH APY and Aave v3 WETH supply rate.
Inputs: vault.
vault_healthA
Check Lido Earn vault health: total assets, current yield, protocol allocations, and benchmark comparison.
Inputs: vault.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools target distinct resources: stake/unstake, wrap/unwrap, balance, proposals, vote are clearly separable. There is mild overlap between lido_stats (protocol-wide), lido_balance and lido_rewards (address-level), and among vault_benchmark, vault_health and vault_alerts, but descriptions differentiate them reasonably well.
Two consistent prefixes (lido_ and vault_) reflect product areas, but the suffixes mix nouns and verbs (lido_stake vs lido_stats, lido_balance, lido_rewards), so there is no single predictable verb_noun pattern. Still readable, but inconsistent in style.
12 tools is well within the ideal 3-15 range for a protocol integration. Each tool maps to a meaningful operation (staking lifecycle, wrapping, analytics, governance) without obvious filler.
Core lifecycle is covered: stake/unstake, wrap/unwrap, balances, rewards, protocol stats, governance read/write, and vault analytics. Minor gaps exist — notably no tool to check withdrawal request status or claim finalized withdrawals after lido_unstake, and no proposal detail lookup.
Maintenance
Related MCP Connectors
Crypto yield data for AI agents: lending, savings, staking, borrowing & stablecoin rates. 21 tools.
EVM chain reads for agents: balances, gas, fees, blocks, txs, logs, ENS. 15 tools, x402 per call.
Native Solana staking for AI agents. 26 MCP tools, one-shot signing, webhooks.
AI Agent Utility Layer for agent safety, web monitoring, crypto research and tool discovery.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Ethereum blockchain by querying ETH and ERC-20 token balances, fetching token prices from CoinGecko, and building/simulating Uniswap V3 swap transactions. Built in Rust with read-only mode by default for safety.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with the Lido protocol for ETH staking, position management, and governance participation across Ethereum and L2 networks. It provides tools for querying balances, simulating transactions, and executing complex workflows like withdrawals and DAO voting through a safety-first interface.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform Lido staking operations (stake, unstake, wrap, unwrap, check balances/rewards) via natural language.1MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that gives any AI agent full access to Lido Finance's staking infrastructure through natural language. Stake ETH, manage positions, request withdrawals, and monitor protocol stats.-