DM

dushaobindoudou/mcp-wallet

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

11 stars 3 forks 质量 67 趋势 8MIT

A comprehensive Web3 wallet SDK based on the MCP (Model-Context-Protocol) for interacting with Monad and other EVM-compatible blockchains.

概览

A comprehensive Web3 wallet SDK based on the MCP (Model-Context-Protocol) for interacting with Monad and other EVM-compatible blockchains. This library provides a secure, feature-rich wallet implementation that can be integrated into any JavaScript/TypeScript application or used directly with AI assistants that support MCP. MCP Wallet is primarily designed to work with MCP-enabled AI assistants. The Model Context Protocol (MCP) is an open standard that enables secure, two-way connections between AI models and external tools like this wallet. MCP (Model-Context-Protocol) is a protocol that allows AI models to interact with external tools and services. In the context of this wallet: - It enables AI assistants to help users manage their crypto assets securely - It provides standardized ways for LLMs to access wallet functionality - It maintains security boundaries to protect private keys and sensitive operations This wallet exposes the following capabilities through MCP: 1.

README

以下为原文 README 节选,完整内容请查看原文。

MCP Wallet

A comprehensive Web3 wallet SDK based on the MCP (Model-Context-Protocol) for interacting with Monad and other EVM-compatible blockchains. This library provides a secure, feature-rich wallet implementation that can be integrated into any JavaScript/TypeScript application or used directly with AI assistants that support MCP.

中文文档 | MCP Integration Guide

🤖 MCP Integration - Core Features

MCP Wallet is primarily designed to work with MCP-enabled AI assistants. The Model Context Protocol (MCP) is an open standard that enables secure, two-way connections between AI models and external tools like this wallet.

What is MCP?

MCP (Model-Context-Protocol) is a protocol that allows AI models to interact with external tools and services. In the context of this wallet:

  • It enables AI assistants to help users manage their crypto assets securely
  • It provides standardized ways for LLMs to access wallet functionality
  • It maintains security boundaries to protect private keys and sensitive operations

MCP Capabilities

This wallet exposes the following capabilities through MCP:

  1. Read-only operations: Get wallet address, check balances, view transaction history
  2. Preparation operations: Create transaction objects, estimate gas fees, suggest swap routes
  3. Information services: Token price information, network status, chain information
  4. Security-focused design: No direct access to private keys, user confirmation required for transactions

Supported Operations

The MCP Wallet supports the following operations through MCP:

Basic Operations

  • Get wallet address and balance
  • View transaction history
  • Check gas prices
  • Estimate transaction fees

Token Operations

  • View ERC-20 token balances
  • Transfer ERC-20 tokens
  • View ERC-721 (NFT) balances
  • Transfer NFTs
  • Get token prices and market data

DeFi Operations

  • Token swaps via Uniswap
    • MONAD to token swaps
    • Token to token swaps
    • Support for multiple DEX protocols
    • Custom slippage and deadline settings

Cross-chain Operations

  • Bridge assets between chains
    • Support for Across Protocol
    • Support for major EVM chains (Monad, Ethereum, Polygon, Arbitrum, Optimism)
    • Cross-chain token transfers
    • Bridge fee estimation

Transaction Management

  • Create and prepare transactions
  • Gas fee estimation and optimization
  • Transaction status monitoring
  • Transaction history tracking

Security Operations

  • Read-only mode for safe browsing
  • Multi-Party Computation (MPC) support
  • Transaction approval workflows
  • Rate limiting and access controls

Operation Examples

Here are some examples of how to interact with the wallet through natural language prompts:

Basic Operations

"What's my wallet balance?"
"Show me my recent transactions"
"What's the current gas price?"
"Get my wallet address"

Token Operations

"Check my USDC balance"
在 GitHub 查看完整 README

安装

npx -y mcp-wallet-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-server-wallet": { "command": "npx", "args": ["-y", "mcp-wallet-mcp"], "env": { "MCP_PRIVATE_KEY": "0x...", } } } }