Back to Home
jacksoom icon

eth_mcp

by jacksoom

Overview

An MCP server for AI agents to query Ethereum balances, token prices, and simulate/execute Uniswap V3 token swaps.

Installation

Run Command
cargo run

Environment Variables

  • ETH_RPC_URL
  • ETH_PRIVATE_KEY
  • ETH_QUOTER_ADDRESS
  • ETH_USDC_ADDRESS
  • ETH_WETH_ADDRESS
  • ETH_ROUTER_ADDRESS

Security Notes

If `ETH_PRIVATE_KEY` is provided, the server can execute real transactions, directly controlling user funds. The `swap_tokens` function, when executing a real swap, sets `amountOutMinimum` to `U256::ZERO`. This means there is no slippage protection, making actual trades vulnerable to significant loss due to price movements or MEV attacks. Running with a private key configured for real swaps is highly risky.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-12-01

Tags

EthereumTradingDeFiAI AgentMCP Server