Skip to main content
Glama

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 : 現在の手数料データ(基本手数料、最大優先手数料など)を取得します。

Related MCP server: Base MCP Server

前提条件

  • Node.js (v16 以上)

  • クロードデスクトップアプリケーション

インストール

オプション1: npxを使用する(推奨)

npx を使用すると、インストールせずに MCP サーバーを直接実行できます。

npx @mcp-dockmaster/mcp-cryptowallet-evm

これにより、npm から直接サーバーをダウンロードして実行します。

オプション2: 手動インストール

  1. このリポジトリをクローンします:

    git clone https://github.com/dcSpark/mcp-cryptowallet-evm.git
    cd mcp-cryptowallet-evm
  2. 依存関係をインストールします:

    npm ci
  3. プロジェクトをビルドします。

    npm run build

構成

環境変数

MCP サーバーは次の環境変数をサポートしています。

  • PRIVATE_KEY : ウォレットが明示的に提供されていない場合にウォレット操作に使用するオプションの秘密鍵

Claudeデスクトップの設定

この MCP サーバーを使用するように Claude Desktop を構成するには:

  1. クロードデスクトップを開く

  2. Claude Desktop 構成ファイルに移動します。

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

    • Linux: ~/.config/Claude/claude_desktop_config.json

  3. MCP サーバー構成を追加します。

{
  "mcpServers": {
    "mcp-cryptowallet-evm": {
      "command": "npx",
      "args": [
        "@mcp-dockmaster/mcp-cryptowallet-evm"
      ]
    }
  }
}

あるいは、パッケージをローカルにインストールした場合:

{
  "mcpServers": {
    "mcp-cryptowallet-evm": {
      "command": "node",
      "args": [
        "/path/to/your/mcp-cryptowallet-evm/build/index.js"
      ]
    }
  }
}

ローカルで実行

node build/index.js

使用法

設定が完了したら、Claude Desktopを再起動してください。これで、ClaudeはEthereumおよびEVM互換のブロックチェーンツールにアクセスできるようになります。Claudeに以下の操作を依頼できます。

  1. 新しいウォレットを作成します:

    Can you create a new Ethereum wallet for me?
  2. ウォレットの残高を確認する:

    What's the balance of the Ethereum wallet address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?
  3. トランザクションを送信します:

    Can you help me send 0.1 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?

クロードは、MCP サーバーを使用して、Ethereum ブロックチェーンと直接対話します。

発達

新しいツールの追加

MCP サーバーに新しいツールを追加するには:

  1. src/tools.tsでツールを定義する

  2. 適切なハンドラーファイルにハンドラー関数を作成する

  3. src/tools.tsのhandlersオブジェクトにハンドラーを追加します。

建物

npm run build

ライセンス

マサチューセッツ工科大学

Available Tools

35 tools
network_get_block_numberB

Get the current block number

Inputs: no named parameters.

network_get_fee_dataB

Get the current fee data (base fee, max priority fee, etc.)

Inputs: no named parameters.

network_get_networkC

Get the current network information

Inputs: no named parameters.

provider_estimate_gasC

Estimate the gas required for a transaction

Inputs: transaction (required).

provider_get_blockC

Get a block by number or hash

Inputs: blockHashOrBlockTag (required), includeTransactions.

provider_get_codeC

Get the code at an address

Inputs: address (required), blockTag.

provider_get_ens_resolverC

Get the ENS resolver for a name

Inputs: name (required).

provider_get_logsC

Get logs that match a filter

Inputs: filter (required).

provider_get_storage_atC

Get the storage at a position for an address

Inputs: address (required), position (required), blockTag.

provider_get_transactionC

Get a transaction by hash

Inputs: transactionHash (required).

provider_get_transaction_receiptC

Get a transaction receipt

Inputs: transactionHash (required).

provider_lookup_addressC

Lookup the ENS name for an address

Inputs: address (required).

provider_resolve_nameC

Resolve an ENS name to an address

Inputs: name (required).

wallet_callC

Call a contract method without sending a transaction

Inputs: transaction (required), blockTag, wallet.

wallet_create_mnemonic_phraseC

Create a mnemonic phrase

Inputs: length (required), locale.

wallet_create_randomC

Create a new wallet with a random private key

Inputs: locale, password, path.

wallet_encryptC

Encrypt a wallet with a password

Inputs: password (required), wallet (required), options.

wallet_from_encrypted_jsonC

Create a wallet by decrypting an encrypted JSON wallet

Inputs: json (required), password (required).

wallet_from_mnemonicC

Create a wallet from a mnemonic phrase

Inputs: mnemonic (required), locale, path.

wallet_from_private_keyC

Create a wallet from a private key

Inputs: privateKey (required).

wallet_get_addressC

Get the wallet address

Inputs: wallet.

wallet_get_balanceC

Get the balance of the wallet

Inputs: blockTag, wallet.

wallet_get_chain_idB

Get the chain ID the wallet is connected to

Inputs: wallet.

wallet_get_gas_priceC

Get the current gas price

Inputs: wallet.

wallet_get_private_keyC

Get the wallet private key (with appropriate security warnings)

Inputs: password, wallet.

wallet_get_public_keyC

Get the wallet public key

Inputs: wallet.

wallet_get_transaction_countC

Get the number of transactions sent from this account (nonce)

Inputs: blockTag, wallet.

wallet_populate_transactionC

Populate a transaction with missing fields

Inputs: transaction (required), wallet.

wallet_provider_setB

Set the provider URL. By default, the provider URL is set to the ETH mainnet or the URL set in the PROVIDER_URL environment variable.

Inputs: providerURL (required).

wallet_send_transactionC

Send a transaction

Inputs: transaction (required), wallet.

wallet_sign_messageC

Sign a message

Inputs: message (required), wallet.

wallet_sign_transactionB

Sign a transaction without sending it

Inputs: transaction (required), wallet.

wallet_sign_typed_dataC

Sign typed data (EIP-712)

Inputs: domain (required), types (required), value (required), wallet.

wallet_verify_messageC

Verify a signed message

Inputs: address (required), message (required), signature (required).

wallet_verify_typed_dataC

Verify signed typed data

Inputs: address (required), domain (required), signature (required), types (required), +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 35 tools

    Disambiguation4/5

    Most tools have distinct purposes with clear resource-action pairs (e.g., network_get_block_number vs. wallet_get_balance), but some overlap exists in provider and wallet operations that could cause confusion, such as provider_get_transaction and wallet_get_transaction_count both dealing with transaction data. Descriptions help clarify, but the boundaries between network, provider, and wallet categories are not always sharp.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern with clear prefixes (network_, provider_, wallet_) that group related functions. All names use snake_case uniformly, making them predictable and easy to parse. This consistency aids in understanding the tool set's structure and purpose.

    Tool Count3/5

    With 35 tools, the count is borderline high for a crypto wallet server, potentially overwhelming for agents. While the domain (EVM wallet operations) is broad, covering network, provider, and wallet functions, the number feels heavy and could be streamlined. It's not extreme, but it approaches the upper limit of reasonable scope.

    Completeness5/5

    The tool set provides comprehensive coverage for EVM wallet operations, including network interactions, provider queries, wallet creation/management, transaction handling, and signing/verification. All essential CRUD and lifecycle actions are present, with no obvious gaps that would hinder agent workflows in this domain.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers