MCP Crypto Wallet EVM
Perform EVM crypto wallet operations using ethers.js v5. Supports a private key environment variable for wallet operations.
MCP Crypto Wallet EVM
This repository contains a Model Context Protocol (MCP) server that provides Claude with access to Ethereum and EVM-compatible blockchain operations via ethers.js v5. The server enables Claude to perform operations like creating wallets, checking balances, sending transactions, and interacting with smart contracts on EVM-compatible blockchains.
Overview
The MCP server exposes the following tools to Claude:
Wallet Creation and Management
wallet_create_random: Create a new wallet with a random private keywallet_from_private_key: Create a wallet from a private keywallet_from_mnemonic: Create a wallet from a mnemonic phrasewallet_from_encrypted_json: Create a wallet by decrypting an encrypted JSON walletwallet_encrypt: Encrypt a wallet with a password
Wallet Properties
wallet_get_address: Get the wallet addresswallet_get_public_key: Get the wallet public keywallet_get_private_key: Get the wallet private key (with appropriate security warnings)wallet_get_mnemonic: Get the wallet mnemonic phrase (if available)
Blockchain Methods
wallet_get_balance: Get the balance of the walletwallet_get_chain_id: Get the chain ID the wallet is connected towallet_get_gas_price: Get the current gas pricewallet_get_transaction_count: Get the number of transactions sent from this account (nonce)wallet_call: Call a contract method without sending a transaction
Transaction Methods
wallet_send_transaction: Send a transactionwallet_sign_transaction: Sign a transaction without sending itwallet_populate_transaction: Populate a transaction with missing fields
Signing Methods
wallet_sign_message: Sign a messagewallet_sign_typed_data: Sign typed data (EIP-712)wallet_verify_message: Verify a signed messagewallet_verify_typed_data: Verify signed typed data
Provider Methods
provider_get_block: Get a block by number or hashprovider_get_transaction: Get a transaction by hashprovider_get_transaction_receipt: Get a transaction receiptprovider_get_code: Get the code at an addressprovider_get_storage_at: Get the storage at a position for an addressprovider_estimate_gas: Estimate the gas required for a transactionprovider_get_logs: Get logs that match a filterprovider_get_ens_resolver: Get the ENS resolver for a nameprovider_lookup_address: Lookup the ENS name for an addressprovider_resolve_name: Resolve an ENS name to an address
Network Methods
network_get_network: Get the current network informationnetwork_get_block_number: Get the current block numbernetwork_get_fee_data: Get the current fee data (base fee, max priority fee, etc.)
Prerequisites
- Node.js (v16 or higher)
- Claude Desktop application
Installation
Option 1: Using npx (Recommended)
You can run the MCP server directly without installation using npx:
npx @mcp-dockmaster/mcp-cryptowallet-evm
This will download and execute the server directly from npm.
Option 2: Manual Installation
-
Clone this repository:
git clone https://github.com/dcSpark/mcp-cryptowallet-evm.git cd mcp-cryptowallet-evm -
Install dependencies:
npm ci -
Build the project:
npm run build
Configuration
Environment Variables
The MCP server supports the following environment variables:
PRIVATE_KEY: Optional private key to use for wallet operations when no wallet is explicitly provided
Configure Claude Desktop
To configure Claude Desktop to use this MCP server:
-
Open Claude Desktop
-
Navigate to the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Add the MCP server configuration:
{
"mcpServers": {
"mcp-cryptowallet-evm": {
"command": "npx",
"args": [
"@mcp-dockmaster/mcp-cryptowallet-evm"
]
}
}
}
Alternatively, if you installed the package locally:
{
"mcpServers": {
"mcp-cryptowallet-evm": {
"command": "node",
"args": [
"/path/to/your/mcp-cryptowallet-evm/build/index.js"
]
}
}
}
Running Locally
node build/index.js
Usage
Once configured, restart Claude Desktop. Claude will now have access to the Ethereum and EVM-compatible blockchain tools. You can ask Claude to:
-
Create a new wallet:
Can you create a new Ethereum wallet for me? -
Check a wallet balance:
What's the balance of the Ethereum wallet address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e? -
Send a transaction:
Can you help me send 0.1 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?
Claude will use the MCP server to interact with the Ethereum blockchain directly.
Development
Adding New Tools
To add new tools to the MCP server:
- Define the tool in
src/tools.ts - Create a handler function in the appropriate handler file
- Add the handler to the
handlersobject insrc/tools.ts
Building
npm run build
License
MIT
Server Terkait
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
MCP Image Placeholder Server
Generates placeholder images from various providers like placehold.co and lorem-picsum.
Skills-ContextManager
Don’t pollute your AI agent’s context with 1,000 skills. Use Skills-ContextManager, a self-hosted web UI for managing AI skills and workflows by providing skills to an AI agent via MCP only when needed. Simply add skills to your library and enable or disable them with a toggle. Choose whether a skill is always loaded into context or dynamically activated when the AI agent determines it’s needed.
Text2Sim MCP Server
A multi-paradigm simulation engine for Discrete-Event and System Dynamics, enabling natural language-based simulations via MCP.
APS AEC Data Model MCP (.NET)
A .NET MCP server for interacting with the Autodesk AEC Data Model API and Viewer.
Ebitengine MCP
A server for Ebitengine games that provides debugging and recording tools by capturing game state.
Replicate Recraft V3
Generate high-quality images using the Recraft V3 model via the Replicate API.
NodeMCU MCP
An MCP service for managing NodeMCU (ESP8266) IoT devices.
Agent Engineering Bootcamp MCP
A server providing setup guidance for students learning agent development, with support for both Python and TypeScript.
microCMS
Manage content on the microCMS headless CMS using its content and management APIs.
cellrank-MCP
A natural language interface for single-cell RNA sequencing (scRNA-Seq) analysis using the CellRank toolkit.