MCP EVM 签名者
一个模型上下文协议 (MCP) 服务器,用于管理以太坊私钥并使用 Infura 部署智能合约。该服务器使 Claude for Desktop 和其他 MCP 客户端能够与兼容 EVM 的区块链进行交互。
特征
🔑 在本地安全地存储和管理以太坊私钥
🔌 连接到 Infura 进行区块链交互
📝 从编译的 ABI 和字节码部署智能合约
✍️ 签署并发送交易
💰 查看账户余额和交易历史记录
🔍 查询区块链数据并与已部署的合约交互
快速入门
先决条件
Node.js v16 或更高版本
带有 API 密钥的 Infura 帐户
已安装 Claude 桌面应用程序
安装
克隆此存储库:
git clone https://github.com/zhangzhongnan928/mcp-evm-signer.git cd mcp-evm-signer安装依赖项:
npm install构建项目:
npm run build配置环境变量:
cp .env.example .env编辑
.env
文件以添加您的 Infura API 密钥并配置其他设置。
与 Claude 桌面版集成
将服务器添加到您的 Claude for Desktop 配置中:
重启 Claude 桌面版
您现在可以要求 Claude 部署智能合约、检查余额或与 EVM 区块链进行交互
可用工具
MCP EVM 签名服务器公开了以下可与 Claude 一起使用的工具:
钱包管理
create-wallet
:创建一个新的以太坊钱包import-wallet
:从私钥导入现有钱包list-wallets
:列出所有已保存的钱包
区块链操作
check-balance
:检查地址的 ETH 余额get-transactions
:获取地址的最近交易send-transaction
:将 ETH 发送到某个地址
智能合约交互
deploy-contract
:从 ABI 和字节码部署智能合约call-contract
:调用只读合约方法execute-contract
:执行修改状态的合同方法
示例用法
以下是如何与 Claude 一起使用这些工具的一些示例:
创建钱包
你可以问克劳德:
检查余额
你可以问克劳德:
部署 ERC-20 代币
请参阅我们的ERC-20 代币示例,了解部署和与 ERC-20 代币合约交互的完整演练。
安全说明
私钥存储在您的机器本地
密钥可以用密码加密
服务器仅通过 MCP 协议公开功能
在 Claude for Desktop 中批准交易之前,务必先进行审查
开始时使用 Sepolia 或 Goerli 等测试网络
文档
更详细的文档请参考:
项目结构
发展
为该项目做出贡献:
分叉存储库
创建功能分支(
git checkout -b feature/amazing-feature
)进行更改
提交您的更改(
git commit -m 'Add some amazing feature'
)推送到分支(
git push origin feature/amazing-feature
)打开拉取请求
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
一个在本地安全地管理以太坊私钥并允许 Claude for Desktop 通过 Infura 与 EVM 兼容的区块链进行交互的服务器。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityEnables 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
- AsecurityAlicenseAqualityThis server enables interaction between Neo4j databases and Claude Desktop, allowing users to execute Cypher queries, create nodes, and establish relationships in the database.Last updated -7455MIT License
- AsecurityAlicenseAqualityThis server facilitates interaction with Keboola's Storage API, enabling users to browse and manage project buckets, tables, and components efficiently through Claude Desktop.Last updated -779MIT License
Adamik MCP Serverofficial
AsecurityAlicenseAqualityEnables read and write interactions with 60+ blockchain networks through Claude Desktop, providing a standardized multi-chain API for transaction management, account insights, staking, and token interactions.Last updated -1242MIT License