Skip to main content
KaleidoSwap exposes its wallet, DEX, and payment functionality to AI agents (Claude Desktop, KaleidoAgent, KaleidoMind-based hosts, or any other MCP client) through kaleido-mcp, a single unified server, plus two per-wallet servers that remain standalone.

Why One Server

Several focused, single-domain MCP servers existed early on: a KaleidoSwap DEX server, an MPP/L402 payment server, per-wallet servers for RLN and Spark. The DEX and payment servers have since been consolidated into kaleido-mcp, which re-exposes the same tool contracts under one connection:

One connection

An agent host configures a single MCP server instead of wiring up four or five.

Same tool names

Tool contracts (kaleidoswap_*, wdk_*, spark_*, mpp_*, l402_*) are unchanged from the original focused servers, nothing to relearn.

One place to maintain

Bug fixes and new tools land in one repo instead of being duplicated across several.

Actively maintained

The standalone kaleidoswap-mcp and l402-gateway-mcp repos are archived. kaleido-mcp is where ongoing work happens.

Available Servers

kaleido-mcp is a composition layer and is meant to stay thin. Domain logic belongs in the focused servers it wraps, not reimplemented in the gateway. Legacy rln_* and generic get_* market aliases remain in place for migration.

Retired Servers

These repos are archived. Their own READMEs point to kaleido-mcp and say they receive no further updates: If you have an integration still pointing at kaleidoswap-mcp or l402-gateway-mcp directly, point it at kaleido-mcp instead. The tool names and arguments did not change.

Installation & Configuration

kaleido-mcp is published to npm, so the fastest path needs no local build:
In practice an MCP host runs this for you, point its config at the command (see Client Configuration below). For development, or to run a specific commit, build from source instead:
Either way, the server reads the same environment variables and speaks stdio by default:

Legacy Aliases

Some tools are still reachable under older names (rln_* for wdk_*, generic get_* for the l402_get_* market tools) for backward compatibility with earlier integrations. New integrations should use the canonical wdk_* / l402_* names.

Tool Surface by Domain

All tools below are served by kaleido-mcp over a single connection. Tools marked with a 🔒 icon in the underlying tool contract require host-side confirmation before executing (spend-moving actions); see each host’s own confirmation UX.
WDK built-in tools (via @tetherto/wdk-mcp-toolkit, scoped to the spark chain): getAddress, getBalance, sendTransaction, transfer, getTokenBalance, quoteSendTransaction, quoteTransfer, getFeeRates, sign, verify.Custom Spark tools, on top of the built-ins:Configured with WDK_SPARK_SEED on the standalone wdk-wallet-spark-mcp server, plus optional SPARK_NETWORK, SPARK_SCAN_API_KEY, and SPARK_USDT_TOKEN.
Requires a running RGB Lightning Node reachable at RLN_NODE_URL, default http://localhost:3001.
Configured with KALEIDOSWAP_API_URL. See the Swap Protocol and RGB LSPS1 APIs references for the underlying endpoints.
Set MPP_GATEWAY_URL to reach an authenticated MPP server. Omit it to stay on the free public endpoints.
WDK built-in pricing tools (Bitfinex): getCurrentPrice, getHistoricalPrice.Uses free public APIs (CoinGecko, alternative.me) with no configuration required. The free CoinGecko tier is rate limited, so avoid calling price tools more than once every 30 seconds.
Shells out to a local kaleido binary, so an agent can bring a node up and unlock it rather than requiring one to already be running. See Node Environments for the CLI-native equivalent of these operations.

Client Configuration

Add a server to an MCP host such as Claude Desktop. npx works for the published gateway; the standalone wallet servers run from a local build.
These configuration files hold a real BIP-39 mnemonic in plain text. Start on test networks and never commit or share a config containing a mainnet seed.

Atomic Swap Across Servers

An atomic swap needs the DEX tools and the wallet tools together. kaleido-mcp speaks to the maker via its kaleidoswap_* tools and drives the taker node via its wdk_* tools. Nothing is custodied at any step, and the HTLC settles on Lightning.
Every step above runs through the same kaleido-mcp connection, since both prefixes are available at once. The Machine Payments Protocol flow lets an agent buy access to a gated resource without an API key or a signup, paying the invoice over Lightning.