MCP-server-built-in-Rust-to-interact-with-the-Ethereum-blockchain
Verified Safeby maybleeess-collab
Overview
Interacting with the Ethereum blockchain for balance queries, token price fetching, and Uniswap V3 swap simulations.
Installation
cargo runEnvironment Variables
- ETHEREUM_RPC_URL
- PRIVATE_KEY
Security Notes
The server uses environment variables for sensitive data like `ETHEREUM_RPC_URL` and `PRIVATE_KEY`, which is a good practice. It explicitly performs swap *simulations* (read-only `eth_call`) and returns calldata for agents to sign and broadcast, preventing the server from directly executing trades. The use of `rust_decimal` prevents floating-point inaccuracies for financial calculations. There are no obvious malicious patterns or dynamic code execution (like `eval`) found. The server communicates via Stdio, reducing its direct network attack surface, but the underlying RPC interactions still rely on secure communication with the Ethereum node.
Similar Servers
openocean-mcp
An MCP server for executing token swaps and fetching blockchain data across multiple decentralized exchanges using OpenOcean's aggregation API.
mcp-server
A Rust-based server for querying Ethereum balances and simulating token swap operations.
eth-mcp-server
Provides Ethereum-related tooling like balance queries, token price lookup, and Uniswap swap simulation for AI agents via a Model Context Protocol (MCP) interface.
rust-eth-mcp
Enables AI agents to query Ethereum balances and simulate token swaps via a Model Context Protocol (MCP) server.