Skip to main content
Glama

Monedero criptográfico MCP EVM

Este repositorio contiene un servidor de Protocolo de Contexto de Modelo (MCP) que proporciona a Claude acceso a operaciones de blockchain compatibles con Ethereum y EVM a través de ethers.js v5. El servidor permite a Claude realizar operaciones como crear billeteras, consultar saldos, enviar transacciones e interactuar con contratos inteligentes en blockchains compatibles con EVM.

Descripción general

El servidor MCP expone las siguientes herramientas a Claude:

Creación y gestión de billeteras

  • wallet_create_random : Crea una nueva billetera con una clave privada aleatoria

  • wallet_from_private_key : Crea una billetera a partir de una clave privada

  • wallet_from_mnemonic : Crea una billetera a partir de una frase mnemotécnica

  • wallet_from_encrypted_json : Crea una billetera descifrando una billetera JSON cifrada

  • wallet_encrypt : Cifrar una billetera con una contraseña

Propiedades de la billetera

  • wallet_get_address : Obtener la dirección de la billetera

  • wallet_get_public_key : Obtener la clave pública de la billetera

  • wallet_get_private_key : obtiene la clave privada de la billetera (con las advertencias de seguridad apropiadas)

  • wallet_get_mnemonic : Obtener la frase mnemotécnica de la billetera (si está disponible)

Métodos de blockchain

  • wallet_get_balance : Obtener el saldo de la billetera

  • wallet_get_chain_id : Obtiene el ID de la cadena a la que está conectada la billetera

  • wallet_get_gas_price : Obtener el precio actual del gas

  • wallet_get_transaction_count : Obtiene la cantidad de transacciones enviadas desde esta cuenta (nonce)

  • wallet_call : Llamar a un método de contrato sin enviar una transacción

Métodos de transacción

  • wallet_send_transaction : Enviar una transacción

  • wallet_sign_transaction : Firmar una transacción sin enviarla

  • wallet_populate_transaction : rellenar una transacción con campos faltantes

Métodos de firma

  • wallet_sign_message : Firmar un mensaje

  • wallet_sign_typed_data : Firma de datos tipificados (EIP-712)

  • wallet_verify_message : Verificar un mensaje firmado

  • wallet_verify_typed_data : Verificar datos tipificados y firmados

Métodos del proveedor

  • provider_get_block : Obtener un bloque por número o hash

  • provider_get_transaction : Obtener una transacción por hash

  • provider_get_transaction_receipt : Obtener un recibo de transacción

  • provider_get_code : Obtener el código en una dirección

  • provider_get_storage_at : Obtener el almacenamiento en una posición para una dirección

  • provider_estimate_gas : Estima el gas requerido para una transacción

  • provider_get_logs : Obtener registros que coinciden con un filtro

  • provider_get_ens_resolver : obtiene el solucionador ENS para un nombre

  • provider_lookup_address : busca el nombre ENS de una dirección

  • provider_resolve_name : Resolver un nombre ENS a una dirección

Métodos de red

  • network_get_network : Obtener la información de la red actual

  • network_get_block_number : Obtener el número de bloque actual

  • network_get_fee_data : obtiene los datos de tarifa actuales (tarifa base, tarifa de prioridad máxima, etc.)

Related MCP server: Base MCP Server

Prerrequisitos

  • Node.js (v16 o superior)

  • Aplicación de escritorio Claude

Instalación

Opción 1: Usar npx (recomendado)

Puede ejecutar el servidor MCP directamente sin instalación usando npx:

npx @mcp-dockmaster/mcp-cryptowallet-evm

Esto descargará y ejecutará el servidor directamente desde npm.

Opción 2: Instalación manual

  1. Clonar este repositorio:

    git clone https://github.com/dcSpark/mcp-cryptowallet-evm.git
    cd mcp-cryptowallet-evm
  2. Instalar dependencias:

    npm ci
  3. Construir el proyecto:

    npm run build

Configuración

Variables de entorno

El servidor MCP admite las siguientes variables de entorno:

  • PRIVATE_KEY : Clave privada opcional para usar en operaciones de billetera cuando no se proporciona ninguna billetera explícitamente

Configurar Claude Desktop

Para configurar Claude Desktop para utilizar este servidor MCP:

  1. Abra Claude Desktop

  2. Navegue hasta el archivo de configuración de Claude Desktop:

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

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

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

  3. Agregue la configuración del servidor MCP:

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

Alternativamente, si instaló el paquete localmente:

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

Ejecutando localmente

node build/index.js

Uso

Una vez configurado, reinicie Claude Desktop. Claude ahora tendrá acceso a las herramientas de blockchain compatibles con Ethereum y EVM. Puede pedirle a Claude que:

  1. Crear una nueva billetera:

    Can you create a new Ethereum wallet for me?
  2. Consultar el saldo de una billetera:

    What's the balance of the Ethereum wallet address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?
  3. Enviar una transacción:

    Can you help me send 0.1 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?

Claude utilizará el servidor MCP para interactuar directamente con la cadena de bloques Ethereum.

Desarrollo

Agregar nuevas herramientas

Para agregar nuevas herramientas al servidor MCP:

  1. Define la herramienta en src/tools.ts

  2. Cree una función de controlador en el archivo de controlador apropiado

  3. Agregue el controlador al objeto de handlers en src/tools.ts

Edificio

npm run build

Licencia

Instituto Tecnológico de Massachusetts (MIT)

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