Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-built-in-rust-to-interact-with-the-ethereum-blockchain": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP server built in Rust to interact with the Ethereum blockchain.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
A Model Context Protocol server for building an investor agent
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MCP server that provides LLMs with tools for interacting with EVM networks
A Model Context Protocol (MCP) server that provides AI assistants with direct access to the Spreedly payments API. Enables LLMs to manage gateways, process transactions, tokenize payment methods, and more, through structured, validated tool calls.
MCP Security Weekly
Get CVE alerts and security updates for MCP Server Built In Rust To Interact With The Ethereum Blockchain and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP server built in Rust to interact with the Ethereum blockchain.
get_balance: Query ETH and ERC20 token balances with proper decimal formatting.get_token_price: Get current token price in USD. Supports ETH via Chainlink and arbitrary tokens via Uniswap V3 (decimal-correct).swap_tokens: Simulate Uniswap V3 swaps, calculate minimum output with slippage, construct router calldata, and perform a read-only eth_call on the router..env.example to .env:
cp .env.example .env
.env and set your ETHEREUM_RPC_URL and PRIVATE_KEY.cargo build --release
The server uses Stdio for MCP communication.
cargo run
get_balance{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_balance",
"arguments": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
},
"id": 1
}
get_token_price (Arbitrary Token){
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_token_price",
"arguments": {
"token_symbol": "UNI",
"token_address": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
}
},
"id": 2
}
swap_tokens (Simulation & Construction){
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "swap_tokens",
"arguments": {
"from_token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"to_token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1000000000000000000",
"slippage_tolerance": 0.5
}
},
"id": 3
}
Send + Sync for concurrent handling.rust_decimal is used end-to-end for price/balance math to avoid float drift; Q96 is a fixed decimal constant to prevent overflow.eth_call for amounts/gas, followed by a router eth_call with real calldata to surface approval/funding issues.swap_tokens returns router calldata so agents can sign/broadcast; simulation is read-only.decimals() fetched for price/balance; 10^decimals built with decimal-safe helper to avoid overflow.content for strict MCP, data for structured consumption) to maximize compatibility and programmatic usability.router_call_simulation instead of being swallowed.slot0 and does not account for price impact of large trades (though swap_tokens simulation does).eth_call may revert if the signer lacks allowances or balance; this is surfaced in the response but not auto-resolved.{
"jsonrpc": "2.0",
"result": {
"content": [{ "type": "text", "t
... [View full README on GitHub](https://github.com/maybleeess-collab/MCP-server-built-in-Rust-to-interact-with-the-Ethereum-blockchain#readme)