Mcp Ledger — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Ledger (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A comprehensive Model Context Protocol (MCP) server for secure Ledger hardware wallet integration with Ethereum blockchain operations. Build AI agents that can safely interact with your crypto assets using hardware-level security.
| Tool | Description | Example Use |
|---|---|---|
get_ledger_address | Get Ethereum address from Ledger | Get your wallet address |
get_balance | Get ETH balance for any address | Check account balance |
get_token_balances | Get ERC20 token balances | View your token portfolio |
get_nft_balances | Get NFT collection balances | See your NFT holdings |
| Tool | Description | Example Use |
|---|---|---|
craft_transaction | Create unsigned transactions | Prepare complex contract calls |
sign_transaction | Sign with Ledger device | Sign prepared transactions |
sign_message | Sign messages (SIWE) | Authenticate with dApps |
broadcast_transaction | Send signed tx to network | Submit transactions |
| Tool | Description | Example Use |
|---|---|---|
send_eth | Send ETH (craft→sign→broadcast) | Send ETH to friend |
send_erc20_token | Send tokens (craft→sign→broadcast) | Send USDC payment |
send_erc721_token | Send NFTs (craft→sign→broadcast) | Transfer NFT |
manage_token_approval | Manage approvals (craft→sign→broadcast) | Approve DEX spending |
| Tool | Description | Example Use |
|---|---|---|
get_contract_abi | Get verified contract ABIs | Interact with contracts |
analyze_gas | Gas price analysis & optimization | Optimize transaction costs |
# Clone and install
git clone <repository-url>
cd mcp-ledger
npm install
npm run build#### 🔑 Required: Dune Sim API
# Get your free API key at: https://sim.dune.com
# Required for token/NFT discovery across 60+ chains
DUNE_SIM_API_KEY=your_dune_sim_api_key_here#### 📊 Optional: Performance APIs
# Alchemy (recommended) - Enhanced RPC performance
# Get key at: https://alchemy.com (2M+ requests/month free)
ALCHEMY_API_KEY=your_alchemy_api_key_here
# Etherscan (optional) - Contract verification
# Get key at: https://etherscan.io/apis (100k requests/day free)
ETHERSCAN_API_KEY=your_etherscan_api_key_here# Copy template and add your keys
cp .env.example .env
# Edit .env with your API keys# Test basic connection
node test-ledger-connection.js
# Test MCP server
npm start
# In another terminal:
node test-server.cjsThe easiest way to use MCP Ledger with Claude Code:
# Add MCP Ledger server to your current project
claude mcp add ledger --env DUNE_SIM_API_KEY=your_key_here -- node /absolute/path/to/mcp-ledger/dist/index.js
# Or add with all environment variables
claude mcp add ledger \
--env DUNE_SIM_API_KEY=your_dune_key \
--env ALCHEMY_API_KEY=your_alchemy_key \
--env ETHERSCAN_API_KEY=your_etherscan_key \
-- node /absolute/path/to/mcp-ledger/dist/index.js
# Check server status
claude mcp list
/mcp
# Remove server if needed
claude mcp remove ledgerConfiguration Scopes:
--scope local - Private to current project (default)--scope project - Shared via .mcp.json (team access)--scope user - Available across all your projectsclaude_desktop_config.json:{
"mcpServers": {
"mcp-ledger": {
"command": "node",
"args": ["/absolute/path/to/mcp-ledger/dist/index.js"],
"env": {
"DUNE_SIM_API_KEY": "your_dune_key_here",
"ALCHEMY_API_KEY": "your_alchemy_key_here",
"ETHERSCAN_API_KEY": "your_etherscan_key_here"
}
}
}
}After setup, verify the server is working:
# In Claude Code
/mcp
# Should show:
✅ ledger: Connected (22 tools available)
- 14 Ethereum tools + 8 Solana tools
- Networks: mainnet, polygon, arbitrum, optimism, base, sepolia, solana-mainnet, solana-devnet, solana-testnetAvailable Tools:
get_ledger_address, get_balance, get_token_balances, get_nft_balances, craft_transaction, get_contract_abi, sign_transaction, sign_message, broadcast_transaction, send_eth, send_erc20_token, send_erc721_token, manage_token_approval, analyze_gas{
"name": "mcp-ledger",
"command": "node",
"args": ["/path/to/mcp-ledger/dist/index.js"],
"env": {
"DUNE_SIM_API_KEY": "your_key_here"
}
}{
"mcp.servers": {
"ledger": {
"command": "node",
"args": ["/absolute/path/to/mcp-ledger/dist/index.js"],
"env": {
"DUNE_SIM_API_KEY": "your_key_here"
}
}
}
}Use this general configuration pattern:
node["/path/to/mcp-ledger/dist/index.js"]Show me my ETH balance and top 5 token holdings on mainnetSend 0.1 ETH to 0x742d35Cc6631C0532925a3b8D0c7e89e5a3A5d34 on mainnetSend 100 USDC to my friend at 0x... on polygon networkRevoke all token approvals for Uniswap router on mainnetAnalyze current gas prices on mainnet and recommend optimal settings for an ERC20 transferTransfer my CryptoPunk #1234 to 0x... and show me the transaction detailsAdd custom RPC endpoints in .env:
# Custom RPC URLs (optional)
MAINNET_RPC_URL=https://your-custom-rpc.com
POLYGON_RPC_URL=https://polygon-custom.com# Run in development with hot reload
npm run dev
# Run comprehensive tests
npm run test:all
# Test with real hardware (Ledger required)
npm run test:hardware# Adjust cache and timeout settings
REQUEST_TIMEOUT=60000 # 60 second timeout
CACHE_TTL=600 # 10 minute cache⚠️ Important: Without DUNE_SIM_API_KEY:
MCP Server Not Connecting:
# Check if server is properly built
npm run build
# Test server directly
node dist/index.js
# Verify in Claude Code
/mcp
claude mcp listLedger Device Issues:
Environment Variables:
# Check your environment file
cat .env
# Verify paths are absolute
which node # Use this path in configurations
pwd # Current directory for absolute pathsNetwork Issues:
🔒 Hardware Security:
🛡️ Software Security:
When you start the server, you'll see configuration status:
✅ Optimal Setup:
✅ Dune Sim API configured for reliable token discovery
✅ Enhanced RPC provider configured (Alchemy)
✅ Contract verification API configured (Etherscan)
✅ Ledger device connected successfully⚠️ Limited Setup:
❌ DUNE_SIM_API_KEY is required for token discovery functionality
⚠️ No enhanced RPC provider configured. Using public endpoints.
⚠️ Ledger device not connected (can be connected later)Built with modern TypeScript practices:
MIT License - see LICENSE file for details.
🔒 Keep Your Crypto Safe: This tool enhances security by keeping your private keys on hardware while enabling powerful AI interactions with your crypto assets.
Built with ❤️ by Dennison Bertram
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.