Skip to main content
Glama

Shieldz Swap MCP

npm CI License: MIT

Shieldz Swap MCP MCP server – quality and maintenance score on Glama

Model Context Protocol server for Shieldz Swap. It lets an AI agent compare live cross-chain swap routes, create non-custodial swaps and track them to payout, across 340+ assets on 40+ chains: BTC, ETH, SOL, ZEC, USDC, USDT, TRON, BSC, Base, Arbitrum and more.

Not using an agent? The same swap runs in your browser at swap.shieldz.cash: pick two coins, paste your address and send from your own wallet.

  • No API key, no account, no KYC.

  • Non-custodial. A swap is a one-time deposit address. The user sends funds from their own wallet. The server never holds keys or signs anything.

  • Route comparison. Every quote races NEAR Intents, Chainflip, Relay, MAYAChain, BOB Gateway and Garden and returns the best output plus the alternatives.

  • Flat 0.15% fee, already included in the quoted output.

  • Remote or local. Hosted Streamable HTTP endpoint, npm package, Docker image or a one-click .mcpb bundle.

Install in Claude Code, Codex or Gemini CLI

/plugin install shieldz-swap --marketplace ShieldZCash/shieldz-swap-mcp
gemini extensions install https://github.com/ShieldZCash/shieldz-swap-mcp

The repo also ships an agent skill at skills/shieldz-swap/SKILL.md.

Related MCP server: Galactic Bridge MCP

Tools

Tool

Read-only

What it does

list_assets

yes

Search routable assets by symbol or chain and get their exact ids.

get_quote

yes

Live quote for from_asset, to_asset, amount (normal units). Best route, alternatives, guaranteed minimum, all-in cost % and ETA.

create_swap

no

Re-quotes with the user's destination_address and refund_address, sets the minimum output floor and returns the deposit address, exact amount to send and expiry. Optional protocol pins a route.

get_swap_status

yes

PENDING, PROCESSING, SUCCESS, FAILED, REFUNDED, INCOMPLETE_DEPOSIT or EXPIRED, with deposit, payout and refund transaction links.

report_deposit

no

Optional: pass the deposit tx hash so the swap is detected faster. Never moves funds.

Assets can be given as full ids (BASE.USDC-0x8335...) or CHAIN.SYMBOL shorthand (ZEC.ZEC, BTC.BTC, ETH.ETH, BASE.USDC). Amounts are normal decimal units ("0.05"), never wei or satoshis. Every tool returns structuredContent matching its outputSchema.

Example

User: Swap 50 USDC on Base to Zcash.

Agent calls get_quote → best route NEAR Intents, about 0.0659 ZEC, minimum 0.0652, about 2.5 minutes. Shows the numbers and asks for the user's ZEC address and Base wallet.

Agent calls create_swap → "Send exactly 50 USDC on BASE to 0x… before 21:40 UTC."

Agent calls get_swap_status → SUCCESS, payout tx link.

Install

Remote (no install)

{
  "mcpServers": {
    "shieldz-swap": { "type": "http", "url": "https://swap.shieldz.cash/mcp" }
  }
}
  • Claude Code: claude mcp add --transport http shieldz-swap https://swap.shieldz.cash/mcp

  • Claude Desktop or claude.ai: Settings → Connectors → Add custom connector → https://swap.shieldz.cash/mcp

  • Cursor, Windsurf, VS Code, Cline: add the JSON above to the client's MCP config.

Local (stdio, npx)

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

Claude Desktop bundle

Download shieldz-swap.mcpb from the latest release and open it.

Docker

docker run -i --rm ghcr.io/shieldzcash/shieldz-swap-mcp

Configuration

Variable

Default

Used by

SHIELDZ_SWAP_BASE_URL

https://swap.shieldz.cash

stdio server: API base.

PORT, HOST

8787, 127.0.0.1

node dist/remote.js: listen address.

SWAP_API_BASE

https://swap.shieldz.cash

node dist/remote.js: API base.

The remote server serves /mcp (Streamable HTTP, stateless, JSON responses) and a static server card at /.well-known/mcp/server-card.json.

Limits

The public API rate-limits per caller IP: about 20 quotes in a burst then one every 2 seconds, and about 6 swap creations in a burst then one every 20 seconds. Minimum and maximum amounts depend on the route; errors say what they are.

Security and privacy

No keys, no custody, no stored conversations. See SECURITY.md and the privacy policy.

Development

npm install
npm test          # unit tests + SDK client end-to-end tests over stdio and HTTP
./scripts/pack-mcpb.sh
  • @shieldz/mcp: keyless crypto payment links, tip jars and pay-to-unlock for agents.

License

MIT

Available Tools

5 tools
create_swapCreate a swap (deposit address)AInspect

Open a non-custodial swap and return a one-time deposit address. Use it only after the user has seen a quote, agreed to the amount and route, and given you both addresses. from_asset, to_asset and amount mean the same as in get_quote: pass the values the user agreed to. destination_address must be on to_asset's chain and refund_address on from_asset's chain, usually the sending wallet; BTC to ZEC, for example, needs a Zcash payout address and a Bitcoin refund address. NEVER invent, guess or reuse addresses from elsewhere in the conversation. Set protocol only to keep the route the user picked from get_quote's alternatives. The tool re-quotes with the real addresses, sets the minimum output from that quote and returns an error rather than a deposit if the amounts changed. Nothing moves until the user sends exactly send_exactly from their own wallet before expires_at; the server never holds keys or signs. If the swap cannot complete, funds go back to refund_address. Each call creates a new deposit address, so do not call it again to "retry" a swap the user already funded. Rate-limited per caller (about 6 swaps in a burst, then one every 20 seconds).

Inputs: amount (required), to_asset (required), from_asset (required), refund_address (required), +2 more. Returns: swap_id, protocol, warnings, next_step, +10 more

get_quoteQuote a cross-chain swapA
Read-only
Inspect

Get live prices for swapping one asset into another, across chains, by racing NEAR Intents, Chainflip, Relay, MAYAChain, BOB Gateway and Garden. Returns the best route and the alternatives, with output after fees, guaranteed minimum, all-in cost % and ETA. Use it to answer "how much X do I get for Y" and to show the user the numbers before create_swap. It creates nothing and needs no addresses. from_asset is what the user sends and to_asset what they receive; they may sit on different chains. Give each as an exact asset id or CHAIN.SYMBOL; when a shorthand is ambiguous (bridged USDC, for example) the error lists the matching ids, and list_assets finds ids by name or chain. amount is how much from_asset the user sends, in from_asset's own units, never in to_asset or USD. Quotes move with the market, so do not reuse one after a few minutes; create_swap re-quotes on its own. Shieldz charges a flat 0.15% (already in amount_out). Errors explain unsupported pairs or minimum and maximum amounts. Rate-limited per caller (roughly 20 quotes in a burst, then one every 2 seconds).

Inputs: amount (required), to_asset (required), from_asset (required). Returns: to, best, from, amount_in, +2 more

get_swap_statusCheck swap statusA
Read-onlyIdempotent
Inspect

Look up a swap made with create_swap by its swap_id and explain where it is: PENDING (no deposit seen yet), PROCESSING, SUCCESS, FAILED, REFUNDED, INCOMPLETE_DEPOSIT (less than required arrived) or EXPIRED (address closed, never send to it). swap_id is the protocol-prefixed id create_swap returned, such as near: or chainflip:--; pass it unchanged, prefix included. Returns amounts in normal units and the deposit, payout and refund transaction links. A malformed id is rejected before any request, an unknown one returns "No swap with that id", and a router outage returns an error to retry later. Use it when the user asks whether their swap arrived. Read-only and safe to repeat; poll every 30 seconds or more, not in a tight loop.

Inputs: swap_id (required). Returns: reason, status, meaning, swap_id, +11 more

list_assetsList swappable assetsA
Read-onlyIdempotent
Inspect

Search the 340+ assets on 40+ chains that Shieldz Swap can route and return their exact asset ids. Use it when you are unsure of an id or which chains support a token (e.g. every chain that has USDC). Skip it for common native coins: get_quote and create_swap already accept shorthand like ZEC.ZEC or BTC.BTC. With no filters it also returns the list of chain codes. Read-only; the list is cached for 60 seconds.

Inputs: chain, limit, search. Returns: assets, chains, total_matches

report_depositReport a deposit transactionA
Idempotent
Inspect

Tell the router the hash of the deposit transaction the user just sent, so the swap is detected immediately instead of on the next scan. Optional: swaps are detected without it, and it never moves funds. swap_id is the id create_swap returned for this swap. tx_hash is the hash of the transaction that sent funds to that swap's deposit_address on the source chain (0x-prefixed on EVM chains); never pass a payout hash or another swap's id. An unknown swap_id returns an error. Use it once, right after the user shares their tx hash, then follow up with get_swap_status. Calling it again with the same hash is harmless.

Inputs: swap_id (required), tx_hash (required). Returns: ok, next_step

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool maps to one distinct stage of the swap lifecycle: price discovery (get_quote), execution (create_swap), tracking (get_swap_status), deposit signaling (report_deposit), and asset lookup (list_assets). The descriptions explicitly cross-reference each other and clarify boundaries, e.g. get_quote creates nothing and report_deposit never moves funds. No two tools can plausibly be confused.

    Naming Consistency5/5

    All five names follow a strict verb_noun snake_case pattern (get_quote, create_swap, get_swap_status, report_deposit, list_assets) with standard verbs (get/create/list/report). No mixing of conventions or casing styles.

    Tool Count5/5

    Five tools is lean but every one is load-bearing: without any single tool a full swap workflow (discover asset → quote → execute → confirm deposit → poll status) would break. No redundant or filler tools.

    Completeness4/5

    The core lifecycle from asset discovery through quote, swap creation, deposit confirmation and status polling is fully covered, with documented error and refund semantics. Minor gaps exist: no way to list a user's past swaps or an explicit fee/limits lookup tool, though fees are documented inside quotes and status errors.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers