Skip to main content
Glama

Ethereum MCP Server

main.rs801 B
use ethereum_mcp::run_server; use dotenv::dotenv; #[tokio::main] async fn main() -> anyhow::Result<()> { // Load environment variables from .env file dotenv().ok(); // Create a file appender for logs - rotates daily let file_appender = tracing_appender::rolling::daily("logs", "ethereum-mcp.log"); let (non_blocking, _guard) = tracing_appender::non_blocking(file_appender); // Initialize tracing with both file and stdout output tracing_subscriber::fmt() .with_writer(non_blocking) .with_file(true) .with_line_number(true) .with_target(false) .with_ansi(false) .init(); tracing::info!("Ethereum MCP Server starting..."); // Initialize and run the MCP server run_server().await?; Ok(()) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Joshuashen022/ethereum-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server