Sponsored by Deepsite.site

MCP EVM Signer

Created By
zhangzhongnan9289 months ago
MCP server for managing EVM keys and deploying smart contracts via Infura
Content

MCP EVM Signer

A Model Context Protocol (MCP) server for managing Ethereum private keys and deploying smart contracts using Infura. This server enables Claude for Desktop and other MCP clients to interact with EVM-compatible blockchains.

MCP EVM Signer architecture

Features

  • 🔑 Securely store and manage Ethereum private keys locally
  • 🔌 Connect to Infura for blockchain interactions
  • 📝 Deploy smart contracts from compiled ABIs and bytecode
  • ✍️ Sign and send transactions
  • 💰 View account balances and transaction history
  • 🔍 Query blockchain data and interact with deployed contracts

Quick Start

Prerequisites

  • Node.js v16 or higher
  • An Infura account with API key
  • Claude for Desktop app installed

Installation

  1. Clone this repository:

    git clone https://github.com/zhangzhongnan928/mcp-evm-signer.git
    cd mcp-evm-signer
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    
  4. Configure environment variables:

    cp .env.example .env
    

    Edit the .env file to add your Infura API key and configure other settings.

Integrating with Claude for Desktop

  1. Add the server to your Claude for Desktop configuration:
{
  "mcpServers": {
    "evm-signer": {
      "command": "node",
      "args": ["/path/to/mcp-evm-signer/build/index.js"],
      "env": {
        "INFURA_API_KEY": "your_infura_api_key_here",
        "DEFAULT_NETWORK": "sepolia",
        "ENCRYPT_KEYS": "true",
        "KEY_PASSWORD": "your_secure_password_here"
      }
    }
  }
}
  1. Restart Claude for Desktop

  2. You can now ask Claude to deploy smart contracts, check balances, or interact with EVM blockchains

Available Tools

The MCP EVM Signer server exposes the following tools for use with Claude:

Wallet Management

  • create-wallet: Create a new Ethereum wallet
  • import-wallet: Import an existing wallet from a private key
  • list-wallets: List all saved wallets

Blockchain Operations

  • check-balance: Check the ETH balance of an address
  • get-transactions: Get recent transactions for an address
  • send-transaction: Send ETH to an address

Smart Contract Interactions

  • deploy-contract: Deploy a smart contract from ABI and bytecode
  • call-contract: Call a read-only contract method
  • execute-contract: Execute a contract method that modifies state

Example Usage

Below are some examples of how you can use these tools with Claude:

Creating a Wallet

You can ask Claude:

Could you create a new Ethereum wallet for me using the evm-signer tools?

Checking a Balance

You can ask Claude:

Can you check the balance of my Ethereum wallet 0x1234...5678 on the Sepolia network?

Deploying an ERC-20 Token

See our ERC-20 token example for a complete walkthrough of deploying and interacting with an ERC-20 token contract.

Security Notes

  • Private keys are stored locally on your machine
  • Keys can be encrypted with a password
  • The server only exposes functionality through the MCP protocol
  • Always review transactions before approving them in Claude for Desktop
  • Use test networks like Sepolia or Goerli when getting started

Documentation

For more detailed documentation, please refer to:

  • Usage Guide: Detailed usage instructions and examples
  • Examples: Sample workflows and contract deployments

Project Structure

mcp-evm-signer/
├── src/                  # Source code
│   ├── config.ts         # Configuration management
│   ├── crypto.ts         # Key management utilities
│   ├── ethereum.ts       # Ethereum interaction functions
│   └── index.ts          # Main MCP server implementation
├── keys/                 # Storage for wallet keys (gitignored)
├── examples/             # Example usage patterns
├── .env.example          # Example environment variables
└── ...                   # Project configuration files

Development

To contribute to this project:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.