walletconnect-mcp

v0.0.4
io.github.DELIGHT-LABS/walletconnect-mcp Checked 2 days ago Published 5 months ago

Non-custodial EVM wallet bridge over WalletConnect: balances, signing, transactions.

A local stdio MCP server that bridges an MCP client (Claude Code, Claude Desktop, Cursor, …) to your own EVM wallet over the WalletConnect protocol. You scan a QR with a mobile wallet once; the client can then read balances and request signatures and transactions — and every signature is approved in your wallet. Bundles the MCP server together with a /wallet skill that drives it (connect → status → balance → sign → send) with guided prompts: The skill is then available as /walletconnect:wallet. Restart Claude Code to load the tools.

Summary extracted from the README.

walletconnect-mcp

A local stdio MCP server that bridges an MCP client (Claude Code, Claude Desktop, Cursor, …) to your own EVM wallet over the WalletConnect protocol. You scan a QR with a mobile wallet once; the client can then read balances and request signatures and transactions — and every signature is approved in your wallet.

Non-custodial. The server holds no private keys. It is the dapp side of WalletConnect: it relays JSON-RPC requests to your wallet, where all signing and broadcasting happen. It cannot move funds on its own — each personal_sign, sign_typed_data, sign_transaction, and send_transaction requires explicit approval in your wallet app.

Unofficial, independent project. Not affiliated with, endorsed by, or sponsored by Reown, Inc. or the WalletConnect Foundation. "WalletConnect" is used only to describe interoperability with the WalletConnect protocol.

Installation

Pick the one channel that matches your client. All run the same zero-config server (see Configuration); you need Node.js 20+ and a WalletConnect v2 mobile wallet (Trust Wallet, MetaMask Mobile, Rainbow, …).

Your client Use
Claude Code the plugin (server + /wallet skill)
Claude Desktop the .mcpb extension
Cursor, VS Code, or any other MCP host the npm package

Claude Code — plugin (server + /wallet skill)

Bundles the MCP server together with a /wallet skill that drives it (connect → status → balance → sign → send) with guided prompts:

/plugin marketplace add DELIGHT-LABS/walletconnect-mcp
/plugin install walletconnect@delight-labs

The skill is then available as /walletconnect:wallet. Restart Claude Code to load the tools.

Prefer tools without the skill? Add the server directly:

claude mcp add walletconnect -- npx -y walletconnect-mcp

Claude Desktop — .mcpb extension

Download walletconnect-<version>.mcpb from the latest GitHub Release and open it — Claude Desktop walks you through the install. The optional project id is configurable in the extension's settings UI.

Any other MCP host — npm package

The server is published to npm as walletconnect-mcp and runs via npx. It is also listed in the MCP Registry (io.github.DELIGHT-LABS/walletconnect-mcp), which several clients ingest for discovery. Add it to your host's mcp.json / claude_desktop_config.json:

{
  "mcpServers": {
    "walletconnect": {
      "command": "npx",
      "args": ["-y", "walletconnect-mcp"]
    }
  }
}

Tools

Tool Gas Description
connect — Start a WC session — returns a QR image + raw wc: URI to scan with a mobile wallet
status — Connection status, connected address, and granted chains (name + RPC availability). Supports a wait_ms long-poll that returns the moment the wallet approves
disconnect — End the active session
get_balance free Read native-coin balances within the session — fans out over all granted chains by default
personal_sign free Sign a message (personal_sign) — wallet approval required
sign_typed_data free Sign EIP-712 typed data — wallet approval required
sign_transaction — Sign a transaction without broadcasting — wallet approval required
send_transaction gas Sign and broadcast a transaction — wallet approval required

Tools are exposed to the client under the walletconnect server name (e.g. mcp__walletconnect__connect).

Configuration

Everything is optional — the server boots with sensible defaults.

Variable Default Description
WALLETCONNECT_PROJECT_ID bundled shared id Your own Reown project id. Set it to lift the shared rate limit; leave unset for zero-config use
WALLETCONNECT_MCP_NETWORK mainnet mainnet or testnet. Switches the entire chain surface — set testnet while testing so a transaction can't land on a mainnet chain
WALLETCONNECT_MCP_STORAGE_DIR ~/.walletconnect-mcp Where the session is persisted
WC_DEBUG off Set to enable WalletConnect trace logging (stderr)

Usage

  1. Connect — call connect. Scan the returned QR (or paste the wc: URI) in your mobile wallet and approve. Then call status with wait_ms to block until the wallet approves.
  2. Read — get_balance (omit chains to sweep all granted chains, or pass CAIP-2 ids like eip155:11155111).
  3. Sign / send — personal_sign or sign_typed_data (gas-free), or send_transaction (chain is required and must be wallet-granted). Approve the prompt in your wallet.
  4. Persistence — the session is restored across restarts from ~/.walletconnect-mcp/; you don't need to re-scan after a restart.

License

MIT © DELIGHT LABS — see LICENSE and THIRD_PARTY_LICENSES.md.