New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@ironwallet/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ironwallet/mcp-server

Non-custodial IronWallet MCP: seeds stay encrypted on the host. Balances, local signing, transfers, and swaps across 10+ networks.

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
31
-58.11%
Maintainers
1
Weekly downloads
 
Created
Source

@ironwallet/mcp-server

Local MCP server for IronWallet (ironwallet-mcp bin).

The IronWallet MCP server gives AI agents secure access to a non-custodial wallet. Seed phrases stay encrypted on the host and never leave this machine — they never pass through the agent. Agents can retrieve balances, sign locally, transfer tokens, and swap across 10+ networks.

Seed-compatible with the IronWallet app.

There is no per-transaction confirmation UI.

Hot-wallet only. Use a dedicated wallet with limited balance. See Security.

Product page: ironwallet.io/ai

Requirements: Node.js 20+ (npx).

Install

npx -y @ironwallet/mcp-server

Or add to MCP config (Cursor: .cursor/mcp.json or global):

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

npx pulls the latest published build. First launch can take ~30s while dependencies install. If the MCP client times out, run the same command once in a terminal to warm the cache, then reconnect.

The plugin install on ironwallet.io/ai wires this up automatically.

How it works

MCP client  →  ironwallet-mcp (stdio)
                    ├── encrypted keystore on disk
                    ├── signs on this machine
                    └── HTTPS to IronWallet backends

The mnemonic never appears in tool inputs/outputs, logs meant for the agent, or requests to backends / the LLM / the MCP client’s cloud.

Features

AreaCapability
NetworksEthereum, BSC, Polygon, Base, Arbitrum, Optimism, Avalanche, Tron, Bitcoin, Litecoin, Dogecoin, Solana, XRP, TON
WalletsCreate, import, list, deposit QR, and back up (local browser for secrets)
BalancesNative coins and tokens
TransfersFee estimate and send through IronWallet’s transfer relay
SwapsQuotes and execution through IronWallet
PolicyOptional per-wallet limits (readOnly, maxPerTx, transfer recipient allow-list). Applies to send_transfer and execute_swap.

Tools

ToolPurposeMoves funds?
list_walletsNames, addresses, and policyno
create_walletsNew wallets; returns a browser backup_urlno
open_wallet_managerLocal browser UI to import / create / back upno
get_deposit_qrPNG QR (try chat; else local qr_url)no
get_balanceNative or token balanceno
estimate_transferFee estimate, no broadcastno
send_transferSign locally and sendyes
get_operation_statusPoll a transferno
list_swap_networksNetworks available for swapno
list_swap_assetsSell / buy catalogno
estimate_swapQuote (may expire)no
execute_swapFresh quote → sign → swapyes
get_swap_statusPoll a swapno

No tool accepts or returns a seed. Import and backup only in the local browser (open_wallet_manager / backup_url).

Wallets

  • Create: create_wallets — the agent gets names and addresses; open backup_url in a browser to view and back up recovery phrases.
  • Import / back up: open_wallet_manager — loopback-only page; the phrase is typed or shown only in the browser.
  • List: list_wallets
  • Deposit QR: get_deposit_qr — PNG (generated on the fly) plus qr_url. Show the image in chat when the host renders it; otherwise open qr_url. Pass network for one chain. The wallet manager also has a QR button next to each address.

The browser page binds to 127.0.0.1 under an unguessable path and shuts down after 15 minutes of inactivity.

Transfers

  • list_wallets / get_balance
  • estimate_transfer (optional)
  • send_transfer
  • get_operation_status when you need to wait on the operation

send_transfer may reduce the amount slightly so the fee still fits the balance; the response reports when that happened.

Swaps

Swaps are a separate flow from transfers.

  • list_swap_networks
  • list_swap_assets (direction=from, then direction=to with the chosen sell asset)
  • Copy network, symbol, address, decimals from the catalog into estimate_swap / execute_swap (especially for tokens)
  • estimate_swap for a preview, or go straight to execute_swap
  • Poll with get_swap_status using operationId

Useful options

  • maxMode: true — sell as much of the balance as the service allows (fees are accounted for server-side). amount can be omitted when maxMode is set.
  • Omit address only for native coins. For tokens, always pass address (and ideally decimals) from list_swap_assets.

Operational notes

  • Quotes expire. Prefer execute_swap (fresh quote). If execute times out, poll status before retrying — do not blindly re-run execute.
  • Wallet policy: readOnly blocks sends and swaps. maxPerTx applies to the transfer amount or the corrected swap sell amount. A transfer recipient allow-list also blocks swaps (the swap router is not a whitelisted destination).

Configuration

Nothing to paste into MCP config for normal use. On first launch the server writes a relay API key, keystore wrapping secret, and device id under ~/.ironwallet-mcp/ (keystore-passphrase, relay-api-key, device-id; owner-only POSIX 0600 or NTFS ACL on Windows). Set the env vars only to override.

The user-facing backup is the recovery phrase in the wallet manager, not those files.

VariableDefaultNotes
IW_PASSPHRASEgenerated locallyOverride keystore wrapping secret
IW_READ_ONLYfalseProcess-wide: reject send_transfer and execute_swap. true/1 enable; false/0/off/no disable. Distinct from per-wallet policy.readOnly.
IW_RELAY_API_KEYgenerated UUIDOverride x-api-key
IW_DEVICE_IDgenerated UUIDOverride X-Device-Id (stable per keystore directory)
IW_KEYSTORE_DIR~/.ironwallet-mcpKeystore directory
IW_HTTP_TIMEOUT_MS15000General HTTP timeout (1s–120s)
IW_HTTP_FORWARD_TIMEOUT_MS60000Longer timeout for broadcast-style calls. A client timeout does not always mean the operation failed — check status
IW_HTTP_RETRIES2Retries for safe/idempotent calls; broadcasts are not auto-retried
IW_LOG_ENABLED1JSONL diagnostics to a log file (0 to disable)
IW_LOG_FILE{keystoreDir}/logs/iw-mcp-YYYY-MM-DD.jsonlLog path
IW_LOG_LEVELinfodebug / info / warn / error
IW_LOG_STDERR0Mirror logs to stderr (stdout is reserved for MCP)

Security

  • Seeds are encrypted at rest. They never appear in tool results, agent chat, or backend requests.
  • The agent can move funds without asking again. Optional wallet policy (readOnly, maxPerTx, transfer recipient allow-list) is off by default and applies to both send_transfer and execute_swap.
  • Anyone with the keystore and the wrapping secret controls the funds. A leaked seed cannot be revoked.
  • Timeout is not always failure: poll status before retrying a send or swap.
  • Desktop / stdio only. A phone or remote agent would need a design where signing stays on a trusted device.
  • Do not put a main wallet here. Use a small hot wallet.

Details and private disclosure: SECURITY.md.

License

MIT

Keywords

wallet

FAQs

Package last updated on 27 Aug 2026

Related posts