Back to Home
a67793581 icon

Ethereum-Trading-MCP-Server

by a67793581

Overview

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

Installation

Run Command
cargo run --release

Environment Variables

  • INFURA_PROJECT_ID
  • PRIVATE_KEY

Security Notes

The server requires a `PRIVATE_KEY` to be set as an environment variable, which is used to instantiate a `LocalWallet` for transaction simulation in the `swap_tokens` function. While the current implementation only uses this for `estimate_gas` (which performs an `eth_call` and does not execute on-chain), exposing a live private key to a server, especially one designed for AI agents, introduces a significant risk. If the server were compromised or the code accidentally or maliciously modified, this private key could be used to sign and broadcast real transactions, leading to potential fund loss. A safer approach for simulations might involve using a dedicated simulation environment or a burner private key with no real assets.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassMedium
Avg Tokens5
Stars0
Forks0
Last Update2025-11-26

Tags

RustEthereumBlockchainMCPFinancial TradingAI Agent Tools