Back to Home
ZBcheng icon

eth-trading-mcp

Verified Safe

by ZBcheng

Overview

An Ethereum trading service providing balance queries, token price queries, and token swap simulations via MCP protocol for AI Agents.

Installation

Run Command
cargo run

Environment Variables

  • RUST_LOG
  • WALLET_PRIVATE_KEY
  • SERVER_HOST
  • SERVER_PORT

Security Notes

The server correctly uses environment variables for sensitive data like `WALLET_PRIVATE_KEY`. By default, the server runs in a read-only/simulation-only mode, significantly reducing immediate risks. Even when a private key is provided, the exposed MCP tools (`swap_tokens`) only perform transaction *simulations* (using `eth_call` and `estimate_gas`), not actual on-chain executions. The server binds to `0.0.0.0` by default, which is standard but requires appropriate firewall configuration in production environments. Robust error handling is present for input validation and blockchain interactions. No 'eval' or obfuscation found.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Stars0
Forks0
Last Update2025-11-30

Tags

EthereumDeFiTradingBlockchainAI Agent