Ethereum-Trading-MCP-Server
by a67793581
Overview
An MCP server for AI agents to query Ethereum balances, token prices, and simulate token swaps.
Installation
cargo run --releaseEnvironment 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
evm-mcp-server
Enables AI agents to interact with 60+ EVM-compatible blockchains, perform transactions, query data, and interact with smart contracts via a unified Model Context Protocol (MCP) interface.
rust-mcp-sdk
A high-performance, asynchronous Rust SDK for building Model Context Protocol (MCP) servers and clients, supporting various transports and authentication methods.
mcp-framework
A Rust framework for building AI agents with built-in Model Context Protocol (MCP) support, multi-LLM integration, and a web-based inspector for debugging.
kukapay-mcp-servers
Aggregates real-time cryptocurrency and blockchain data for AI agents and developers, spanning DeFi, trading, market analytics, and Web3 services.