MCP Crypto Wallet EVM
使 Claude 能够访问以太坊和 EVM 兼容的区块链操作,通过自然语言实现钱包管理、交易处理、合约交互和区块链查询。
Tools
provider_lookup_address
Lookup the ENS name for an address
provider_resolve_name
Resolve an ENS name to an address
network_get_network
Get the current network information
network_get_block_number
Get the current block number
network_get_fee_data
Get the current fee data (base fee, max priority fee, etc.)
wallet_get_balance
Get the balance of the wallet
wallet_get_chain_id
Get the chain ID the wallet is connected to
wallet_get_gas_price
Get the current gas price
wallet_provider_set
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.
wallet_create_random
Create a new wallet with a random private key
wallet_from_private_key
Create a wallet from a private key
wallet_create_mnemonic_phrase
Create a mnemonic phrase
wallet_from_mnemonic
Create a wallet from a mnemonic phrase
wallet_from_encrypted_json
Create a wallet by decrypting an encrypted JSON wallet
wallet_encrypt
Encrypt a wallet with a password
wallet_get_address
Get the wallet address
wallet_get_public_key
Get the wallet public key
wallet_get_private_key
Get the wallet private key (with appropriate security warnings)
wallet_get_transaction_count
Get the number of transactions sent from this account (nonce)
wallet_call
Call a contract method without sending a transaction
wallet_send_transaction
Send a transaction
wallet_sign_transaction
Sign a transaction without sending it
wallet_populate_transaction
Populate a transaction with missing fields
wallet_sign_message
Sign a message
wallet_sign_typed_data
Sign typed data (EIP-712)
wallet_verify_message
Verify a signed message
wallet_verify_typed_data
Verify signed typed data
provider_get_block
Get a block by number or hash
provider_get_transaction
Get a transaction by hash
provider_get_transaction_receipt
Get a transaction receipt
provider_get_code
Get the code at an address
provider_get_storage_at
Get the storage at a position for an address
provider_estimate_gas
Estimate the gas required for a transaction
provider_get_logs
Get logs that match a filter
provider_get_ens_resolver
Get the ENS resolver for a name
README
MCP Crypto Wallet EVM
本仓库包含一个模型上下文协议 (MCP) 服务器,该服务器通过 ethers.js v5 为 Claude 提供对以太坊和 EVM 兼容区块链操作的访问。该服务器使 Claude 能够执行诸如创建钱包、检查余额、发送交易以及与 EVM 兼容区块链上的智能合约交互等操作。
<a href="https://glama.ai/mcp/servers/@dcSpark/mcp-cryptowallet-evm"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@dcSpark/mcp-cryptowallet-evm/badge" alt="Crypto Wallet EVM MCP server" /> </a>
概述
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: 获取钱包连接到的链 IDwallet_get_gas_price: 获取当前 gas 价格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 方法
provider_get_block: 按编号或哈希获取区块provider_get_transaction: 按哈希获取交易provider_get_transaction_receipt: 获取交易收据provider_get_code: 获取地址处的代码provider_get_storage_at: 获取地址的指定位置的存储provider_estimate_gas: 估算交易所需的 gasprovider_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 或更高版本)
- Claude Desktop 应用程序
安装
选项 1:使用 npx (推荐)
您可以使用 npx 直接运行 MCP 服务器,无需安装:
npx @mcp-dockmaster/mcp-cryptowallet-evm
这将直接从 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 Desktop
要配置 Claude Desktop 以使用此 MCP 服务器:
-
打开 Claude Desktop
-
导航到 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
- macOS:
-
添加 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 现在将可以访问以太坊和 EVM 兼容的区块链工具。 您可以要求 Claude:
-
创建一个新钱包:
你能为我创建一个新的以太坊钱包吗? -
检查钱包余额:
以太坊钱包地址 0x742d35Cc6634C0532925a3b844Bc454e4438f44e 的余额是多少? -
发送交易:
你能帮我向 0x742d35Cc6634C0532925a3b844Bc454e4438f44e 发送 0.1 ETH 吗?
Claude 将使用 MCP 服务器直接与以太坊区块链交互。
开发
添加新工具
要向 MCP 服务器添加新工具:
- 在
src/tools.ts中定义该工具 - 在相应的处理程序文件中创建一个处理函数
- 将处理程序添加到
src/tools.ts中的handlers对象
构建
npm run build
许可证
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。