mcw

mcw

Multi-chain wallet MCP server that enables AI agents to manage Bitcoin, Ethereum, Solana, and Tron wallets via tools for addresses, balances, transactions, and token operations.

Category
访问服务器

README

Multi-Chain CLI Wallet (MCW) & Agentic Framework

License: CC BY 4.0 TypeScript Model Context Protocol npm package

A robust, enterprise-grade multi-chain wallet and AI agent framework serving two primary consumers seamlessly:

  1. Humans: Via a rich, interactive, and beautiful Command Line Interface (mcw).
  2. AI Agents: Via a standard Model Context Protocol (MCP) server interface, exposing wallet capabilities as MCP Tools to agents (Claude Desktop, Cursor, Gemini CLI, LangChain, AutoGPT).

🌐 Supported Networks & Derivation Standards

Blockchain Testnet Networks Mainnet Network Derivation Standard Derivation Path Address Format
Bitcoin (BTC) Testnet3 / Signet Mainnet BIP-84 / BIP-44 m/84'/(1'|0')/0'/0/0 Native SegWit (tb1q... / bc1q...)
Ethereum (ETH) Sepolia / Holesky Mainnet BIP-44 m/44'/60'/0'/0/0 Checksummed (0x...)
Solana (SOL) Devnet Mainnet-Beta SLIP-0010 / BIP-44 m/44'/501'/0'/0' Base58 (...)
Tron (TRX) Nile / Shasta Mainnet BIP-44 m/44'/195'/0'/0/0 Base58Check (T...)

Quick Start (CLI: mcw)

You can run mcw globally on your machine (via npm link or npm i -g @deviykee/mcw) or with zero installation via npx @deviykee/mcw.

1. Initialize Wallet

Generates a fresh 12/24-word BIP-39 mnemonic phrase (or imports an existing one), encrypts the vault using AES-256-GCM with Scrypt key derivation, and displays derived addresses:

mcw init
# Or zero-install:
npx @deviykee/mcw init

2. Switch Between Testnet & Mainnet

Toggle environments with safety guards and confirmation prompts:

# View active network mode
mcw network

# Switch to Testnet (risk-free)
mcw network testnet

# Switch to Mainnet (live assets)
mcw network mainnet

3. Check Live Balances

Queries live RPCs and displays formatted ASCII tables:

# Check all chains in active network
mcw balance

# Check a specific chain
mcw balance eth
mcw balance sol
mcw balance btc
mcw balance trx

4. Tron Nile vs Shasta Selection & Custom RPCs

Configure custom RPC endpoints or toggle between Tron testnet flavors:

# Switch Tron testnet to Shasta
mcw config tron shasta

# Switch Tron testnet to Nile
mcw config tron nile

# Set a custom RPC URL for any chain (e.g. Alchemy / QuickNode / local node)
mcw config set-rpc eth https://your-custom-eth-node.com
mcw config set-rpc sol https://your-custom-sol-node.com

# View active configurations and custom overrides
mcw config list

# Interactive configuration menu
mcw config

5. Token Management (ERC-20, Sepolia USDC, LINK, SPL)

Track, query, and transfer custom tokens directly from smart contracts:

# List all configured tokens (Built-in Sepolia USDC, LINK, Devnet USDC + Custom)
mcw token list

# Check token balances
mcw token balance
mcw token balance usdc-sepolia

# Add any custom ERC-20 / SPL token contract
mcw token add

# Send ERC-20 tokens
mcw token send usdc-sepolia 50 0xRecipientAddress...

6. Request Testnet Faucet / Airdrop

Requests instant testnet tokens (with automated JSON-RPC airdrop on Solana Devnet and direct faucet links for other networks):

mcw faucet sol
mcw faucet eth
mcw faucet trx
mcw faucet btc

7. Send Coins

Interactively estimates fees, asks for vault decryption password, signs, and broadcasts the transaction:

# Interactive mode:
mcw send

# Direct parameters:
mcw send sol 0.1 <RECIPIENT_SOL_ADDRESS>
mcw send eth 0.01 <RECIPIENT_ETH_ADDRESS>

AI Agent MCP Server Integration

MCW implements the official @modelcontextprotocol/sdk JSON-RPC specification over stdio.

MCP Configuration for Claude Desktop / Cursor

Add the following to your claude_desktop_config.json (or Cursor/Gemini MCP config):

{
  "mcpServers": {
    "mcw": {
      "command": "npx",
      "args": ["-y", "@deviykee/mcw", "mcp"]
    }
  }
}

Available MCP Tools

📖 Read-Only Tools (No password required)

  1. get_network_mode: Returns whether the wallet is in testnet or mainnet.
  2. switch_network_mode: Toggles between "testnet" and "mainnet".
  3. get_addresses: Returns public addresses and derivation paths for Bitcoin, Ethereum, Solana, and Tron.
  4. get_balance: Fetches real-time balances for a specific chain or all chains in the active network.
  5. get_transaction_status: Queries transaction status and confirmation count.
  6. request_faucet: Triggers automated airdrop or returns faucet claim instructions (testnet mode).

Action Tools (Safety Protected)

  1. build_transaction: Formulates raw transaction, calculates network gas/fees, and queues transaction in the approval gate with status PENDING_HUMAN_APPROVAL. Returns a pendingTxId.
  2. sign_and_send_transaction: Unlocks vault using human password (or session auth) and broadcasts to the network.
  3. list_pending_transactions: Lists all pending transactions waiting for human approval.

Agent Skills (Claude Code, Grok, Cursor, Gemini CLI)

MCW includes standardized Agent Skills located in [skills/mcw/](file:///home/iyke/coding/cli-wallet/skills/mcw):

  • [SKILL.md](file:///home/iyke/coding/cli-wallet/skills/mcw/SKILL.md): Complete skill specification with YAML frontmatter, execution rules, and multi-chain safety protocols.
  • [reference.md](file:///home/iyke/coding/cli-wallet/skills/mcw/reference.md): Technical command matrix and MCP JSON-RPC parameter schemas.
  • [examples.md](file:///home/iyke/coding/cli-wallet/skills/mcw/examples.md): Real-world prompt templates and autonomous workflows.

Installing Skill in Claude Code / CLI Agents

Copy the skills/mcw directory into your project's .skills/ or reference skills/mcw/SKILL.md directly in your system prompt or custom instructions.


Cryptography & Security Model

  • BIP-39: Mnemonic seed generation with PBKDF2 HMAC-SHA512.
  • BIP-84 / BIP-44 / SLIP-0010: Native SegWit ECDSA (BTC), Keccak256 ECDSA (ETH & TRX), and Ed25519 (SOL).
  • AES-256-GCM: Authenticated symmetric encryption with random 96-bit IV and 128-bit authentication tag.
  • Scrypt KDF: High-iteration, memory-hard key derivation (N=16384, r=8, p=1, maxmem=64MB) to guard against brute-force attacks.
  • File System Permissions: Storage directory (~/.mcw/) created with 0700 permissions and encrypted vault (vault.dat) saved with 0600 permissions (Unix).

License

MIT License. Built for multi-chain testnet/mainnet operations and autonomous agent integration.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选