kryptr.io crypto wallets

v0.3.1
io.kryptr/kryptr-mcp Checked 2 days ago Published 2 days ago

Crypto wallets for AI agents: balances, sends and swaps on 11 networks under per-key limits

MCP (Model Context Protocol) server for kryptr.io, a multi-currency crypto wallet managed over a REST API. It does two jobs: Requests are signed on this machine (HMAC-SHA256, the API's own scheme). The secret never leaves the machine and the server never holds a seed: no tool creates, deletes, imports or exports a wallet or its seed phrase. Node ≥ 20, plain ESM, no build step. Dependencies: @modelcontextprotocol/sdk, zod.

Summary extracted from the README.

kryptr-mcp

MCP (Model Context Protocol) server for kryptr.io, a multi-currency crypto wallet managed over a REST API. It does two jobs:

  • Facts, no key: what kryptr is, its networks and assets, the API, the safety controls, the pricing model, read live from https://kryptr.io/facts.json.
  • Wallets for AI agents, with an API key: an agent reads balances and sends or swaps crypto from the account's wallets. The key's scopes and spending policy, set by the owner in the dashboard, are enforced by the API. The agent cannot change them:
    • a daily limit in US dollars per key;
    • "address book only": sends go only to saved addresses;
    • a send over either rule is stored as awaiting_approval and goes out only after the owner approves it in the dashboard with a 2FA code;
    • a recipient on the OFAC SDN list is refused (422 sanctioned_address);
    • a swap over the limit is refused (422 policy_limit).

Requests are signed on this machine (HMAC-SHA256, the API's own scheme). The secret never leaves the machine and the server never holds a seed: no tool creates, deletes, imports or exports a wallet or its seed phrase.

Node ≥ 20, plain ESM, no build step. Dependencies: @modelcontextprotocol/sdk, zod.

Tools

Always:

Tool Returns
kryptr_facts The whole https://kryptr.io/facts.json.
kryptr_networks Networks with their assets, deposit confirmations and seed derivation paths.
kryptr_api Base URL, request signing, key scopes, idempotency, rate limits, webhook events, OpenAPI and docs links.
kryptr_pricing The pricing model and network fees.
kryptr_safety Key spending policies, sanctions screening, swaps.
kryptr_assets Every asset id (USDT.tron, USDC.polygon, …) per network, with decimals.

With KRYPTR_API_KEY and KRYPTR_API_SECRET:

Tool Does Key scope
kryptr_key This key's scopes, policy, spent and remaining in the last 24 hours any
kryptr_list_wallets, kryptr_wallet Wallets and their receiving addresses wallets:read
kryptr_balances Live on-chain balances per asset wallets:read
kryptr_deposits Incoming deposits with confirmations and screening wallets:read
kryptr_transfers, kryptr_transfer Outgoing transfers and their status wallets:read
kryptr_send Send an asset (idempotency key required); fee_in_asset pays the network fee in the sent asset when the address holds no TRX, ETH or BNB, max_fee caps it wallets:transfer
kryptr_fee_quote Whether a send needs its fee paid in the asset, and that fee wallets:transfer
kryptr_swap_quote, kryptr_swap, kryptr_swap_status Exchange one asset for another inside a wallet wallets:swap

KRYPTR_MCP_READ_ONLY=1 leaves out kryptr_send, kryptr_fee_quote, kryptr_swap_quote and kryptr_swap, whatever the key's scopes. An API error comes back as an error result with the HTTP status and the API's error code.

Run

npm install
node src/server.mjs   # speaks MCP over stdio
npm test              # SDK client over stdio: facts against a local facts.json copy, wallet tools
                      # against a stand-in API replaying recorded kryptr.io answers
Variable Default Meaning
KRYPTR_API_KEY, KRYPTR_API_SECRET none Turn the wallet tools on. Make the key in the dashboard (API keys).
KRYPTR_MCP_READ_ONLY off 1: no send, quote or swap tools.
KRYPTR_API_URL https://api.kryptr.io API base.
KRYPTR_FACTS_URL https://kryptr.io/facts.json Facts endpoint.

Configure

Give the agent its own key with only the scopes it needs, a daily limit and "address book only". Try it first with a pk_test_ key made in the dashboard's Test mode: the same tools then work on test wallets on a simulated network, and no real coin moves. No checkout is needed: npx -y kryptr-mcp downloads and runs this server from npm.

Claude Code:

claude mcp add kryptr \
  -e KRYPTR_API_KEY=pk_live_… -e KRYPTR_API_SECRET=sk_live_… \
  -- npx -y kryptr-mcp

Claude Desktop, Cursor or any MCP client, mcpServers entry:

{
  "mcpServers": {
    "kryptr": {
      "command": "npx",
      "args": ["-y", "kryptr-mcp"],
      "env": { "KRYPTR_API_KEY": "pk_live_…", "KRYPTR_API_SECRET": "sk_live_…" }
    }
  }
}

Leave out env for the facts tools only. From a checkout, use node /path/to/kryptr-mcp/src/server.mjs instead of npx.