Experimental Ethereum MCP server with wallet management and transaction features built with FastAPI
The Ethereum MCP Server is a robust, experimental implementation designed to provide a comprehensive set of features for Ethereum-based transactions and smart contract interactions. By leveraging FastAPI and Web3.py, it aims to facilitate seamless communication between AI applications and the Ethereum blockchain ecosystem. This server supports wallet management, transaction handling, smart contract interactions, and token operations—all aligned with Model Context Protocol (MCP) standards.
The Ethereum MCP Server is designed to bridge the gap between AI applications and decentralized Web3 technologies through a standardized protocol. Key features include:
Although still under development, the server will support advanced features such as EIP-7702 delegation, event log retrieval, partial withdrawals, full withdrawals, and batch operations—all essential for sophisticated AI workflows.
The architecture of this server is centered around a modular design that allows for flexibility in integration with various Ethereum-based tools. Key components include:
To run the Ethereum MCP Server, follow these steps:
uv venv source .venv/bin/activate uv pip install -e .
2. **Set Up Environment Variables:**
```bash
cp .env.example .env
# Edit `.env` with your configuration
python src/server.py
## 💡 Key Use Cases in AI Workflows
AI applications utilizing this MCP server can leverage its capabilities to perform complex operations on the Ethereum blockchain. Two typical use cases are:
### Case 1: Automated Trading Bot
Develop an AI trading bot that continuously monitors market fluctuations and executes trades based on predefined conditions. The bot uses the server to:
- Check wallet balances.
- Send transactions for buying or selling assets at optimal prices.
- Monitor events and generate notifications when price targets are reached.
### Case 2: Smart Contract Audit Service
Create a service that audits smart contracts deployed by clients, ensuring they meet regulatory standards without manual intervention. Utilize the server to:
- Deploy new audit smart contracts.
- Integrate with existing audit tools for automated reviews.
- Retrieve and process contract events for compliance checks.
## 🔌 Integration with MCP Clients
The Ethereum MCP Server is compatible with numerous AI applications and tools through a standardized protocol. The current compatibility matrix includes:
| **MCP Client** | **Resources** | **Tools** | **Prompts** | **Status** |
|----------------|---------------|-----------|-------------|------------|
| **Claude Desktop** | ✅ | ✅ | ✅ | Full Support |
| **Continue** | ✅ | ✅ | ✅ | Full Support |
| **Cursor** | ❌ | ✅ | ❌ | Tools Only |
## 📊 Performance & Compatibility Matrix
The performance of the Ethereum MCP Server is evaluated based on various factors, including transaction throughput and latency. The compatibility matrix demonstrates its readiness for diverse AI workflows.
## 🛠️ Advanced Configuration & Security
For advanced users, the server allows fine-tuning through environment variables and additional configuration options:
```json
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Can this server be used with any AI application?
How can I secure my private keys?
What smart contracts are supported?
How do I monitor transaction receipts?
eth_getTransactionReceipt
API method allows you to retrieve detailed information about completed transactions.What version of Web3.py does this server use?
Contributions are welcome! Follow these steps to get started:
Discover more about Model Context Protocol (MCP) and its applications in the following resources:
By using the Ethereum MCP Server, developers can significantly enhance their AI application's capabilities by ensuring seamless interaction with decentralized blockchain technologies.
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Analyze search intent with MCP API for SEO insights and keyword categorization
Python MCP client for testing servers avoid message limits and customize with API key
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
AI Vision MCP Server offers AI-powered visual analysis, screenshots, and report generation for MCP-compatible AI assistants