MCP 暗号ウォレット EVM
このリポジトリには、Claude が ethers.js v5 を介して Ethereum および EVM 互換ブロックチェーン操作にアクセスできるようにする Model Context Protocol (MCP) サーバーが含まれています。このサーバーにより、Claude は EVM 互換ブロックチェーン上でウォレットの作成、残高の確認、トランザクションの送信、スマートコントラクトとのやり取りなどの操作を実行できます。
概要
MCP サーバーは、Claude に次のツールを公開します。
ウォレットの作成と管理
wallet_create_random: ランダムな秘密鍵で新しいウォレットを作成するwallet_from_private_key: 秘密鍵からウォレットを作成するwallet_from_mnemonic: ニーモニックフレーズからウォレットを作成するwallet_from_encrypted_json: 暗号化されたJSONウォレットを復号化してウォレットを作成するwallet_encrypt: パスワードでウォレットを暗号化する
ウォレットのプロパティ
wallet_get_address: ウォレットアドレスを取得するwallet_get_public_key: ウォレットの公開鍵を取得するwallet_get_private_key: ウォレットの秘密鍵を取得する(適切なセキュリティ警告付き)wallet_get_mnemonic: ウォレットのニーモニックフレーズを取得する(利用可能な場合)
ブロックチェーン手法
wallet_get_balance: ウォレットの残高を取得するwallet_get_chain_id: ウォレットが接続されているチェーンIDを取得するwallet_get_gas_price: 現在のガス価格を取得するwallet_get_transaction_count: このアカウントから送信されたトランザクションの数を取得する (nonce)wallet_call: トランザクションを送信せずにコントラクトメソッドを呼び出す
取引方法
wallet_send_transaction: トランザクションを送信するwallet_sign_transaction: トランザクションを送信せずに署名するwallet_populate_transaction: 不足しているフィールドをトランザクションに入力します
署名方法
wallet_sign_message: メッセージに署名するwallet_sign_typed_data: 型付きデータに署名する (EIP-712)wallet_verify_message: 署名されたメッセージを検証するwallet_verify_typed_data: 署名された型付きデータを検証する
プロバイダーメソッド
provider_get_block: 番号またはハッシュでブロックを取得するprovider_get_transaction: ハッシュでトランザクションを取得するprovider_get_transaction_receipt: トランザクションの領収書を取得するprovider_get_code: アドレスのコードを取得するprovider_get_storage_at: アドレスの位置にあるストレージを取得するprovider_estimate_gas: トランザクションに必要なガスを見積もるprovider_get_logs: フィルターに一致するログを取得するprovider_get_ens_resolver: 名前のENSリゾルバを取得するprovider_lookup_address: アドレスのENS名を検索しますprovider_resolve_name: ENS名をアドレスに解決する
ネットワーク方式
network_get_network: 現在のネットワーク情報を取得するnetwork_get_block_number: 現在のブロック番号を取得するnetwork_get_fee_data: 現在の手数料データ(基本手数料、最大優先手数料など)を取得します。
前提条件
Node.js (v16 以上)
クロードデスクトップアプリケーション
インストール
オプション1: npxを使用する(推奨)
npx を使用すると、インストールせずに MCP サーバーを直接実行できます。
これにより、npm から直接サーバーをダウンロードして実行します。
オプション2: 手動インストール
このリポジトリをクローンします:
git clone https://github.com/dcSpark/mcp-cryptowallet-evm.git cd mcp-cryptowallet-evm依存関係をインストールします:
npm ciプロジェクトをビルドします。
npm run build
構成
環境変数
MCP サーバーは次の環境変数をサポートしています。
PRIVATE_KEY: ウォレットが明示的に提供されていない場合にウォレット操作に使用するオプションの秘密鍵
Claudeデスクトップの設定
この MCP サーバーを使用するように Claude Desktop を構成するには:
クロードデスクトップを開く
Claude Desktop 構成ファイルに移動します。
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
MCP サーバー構成を追加します。
あるいは、パッケージをローカルにインストールした場合:
ローカルで実行
使用法
設定が完了したら、Claude Desktopを再起動してください。これで、ClaudeはEthereumおよびEVM互換のブロックチェーンツールにアクセスできるようになります。Claudeに以下の操作を依頼できます。
新しいウォレットを作成します:
Can you create a new Ethereum wallet for me?ウォレットの残高を確認する:
What's the balance of the Ethereum wallet address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?トランザクションを送信します:
Can you help me send 0.1 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?
クロードは、MCP サーバーを使用して、Ethereum ブロックチェーンと直接対話します。
発達
新しいツールの追加
MCP サーバーに新しいツールを追加するには:
src/tools.tsでツールを定義する適切なハンドラーファイルにハンドラー関数を作成する
src/tools.tsのhandlersオブジェクトにハンドラーを追加します。
建物
ライセンス
マサチューセッツ工科大学
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Claude に Ethereum および EVM 互換のブロックチェーン操作へのアクセスを提供し、ウォレット管理、トランザクション処理、契約のやり取り、自然言語によるブロックチェーン クエリを可能にします。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityEnables Claude to interact with Ethereum nodes, allowing users to check ENS token balances, view smart contract code, and decode transactions through natural language.Last updated -51MIT License
- -security-license-qualityA server that securely manages Ethereum private keys locally and enables Claude for Desktop to interact with EVM-compatible blockchains through Infura.Last updated -
Base MCP Serverofficial
-security-license-qualityProvides onchain tools for Claude AI to interact with the Base blockchain and Coinbase API, enabling wallet management, fund transfers, and smart contract deployment.Last updated -6294MIT License- Asecurity-licenseAqualityEnables Claude to interact with the Ethereum Name Service (ENS) system to resolve names, check availability, retrieve records, and perform other ENS-related operations through natural language.Last updated -8158