Skip to main content
Glama

CIMS MCP Server

An MCP (Model Context Protocol) server for Roots CIMS — the Chain-based Interbanking Messaging System. CIMS routes transfers through standardized, bank-readable IDs such as R-233-2993204 instead of raw wallet addresses, acting as crypto's equivalent of SEPA/ACH/SWIFT on a non-custodial network (currently Base Sepolia, chain ID 84532, USDC + ETH).

This server lets AI assistants resolve CIMS parties, quote and send transfers, handle attestation, and track intent lifecycles — with safety rails built in.

Quick start

npm install
npm run build
npm start          # stdio MCP server with the mock adapter

MCP client configuration (e.g. Claude Desktop, VS Code):

{
  "mcpServers": {
    "cims": {
      "command": "node",
      "args": ["/path/to/rootsfi-cims-MCP/dist/index.js"],
      "env": { "CIMS_ADAPTER": "mock" }
    }
  }
}

Related MCP server: WETH

Adapters

Adapter

Selection

Notes

mock (default)

CIMS_ADAPTER unset or mock

In-memory directory, institutions, and full intent lifecycle. No credentials needed — ideal for demos and development.

live

CIMS_ADAPTER=live

HTTP client for the Roots CIMS relay. Requires CIMS_RELAY_URL and CIMS_API_KEY (see .env.example). RootsFi does not yet publish a public API reference, so endpoint shapes are best-effort and isolated behind the CimsAdapter interface for easy correction.

Tools

Tool

Kind

Description

cims_validate_id

read-only

Parse/validate CIMS ID format (R-institution-account). Pure check, flags raw addresses.

cims_resolve

read-only

Resolve a name, handle, or CIMS ID to a routable party. Refuses raw 0x addresses.

cims_institution

read-only

Institution status, supported rails, and attestation policy by index.

cims_quote

read-only

Price and policy-check a transfer (name check, AML, attestation). No funds moved.

cims_send

write

Create an intent from a quote. Requires confirm=true after user review.

cims_attest

write

Operator approval/rejection of an attestation_required intent.

cims_cancel

write

Cancel a pending intent inside the cancel window.

cims_status

read-only

Intent status, cancel window, tx hash when finalized.

cims_list_intents

read-only

List intents, filterable by status/asset.

Resources & prompts

  • cims://docs/overview — CIMS concepts, ID format, transfer modes, safety model

  • cims://docs/lifecycle — intent status transition diagram and timing windows

  • Prompt cims-send-money — guided, safe transfer flow (resolve → quote → user confirm → send → track)

Intent lifecycle

quoted → send(confirm) → pending ──window elapses──▶ finalized
                       ↘ attestation_required ──approve──▶ pending
                                              ──reject───▶ reverted
pending / attestation_required ──cancel (inside window)──▶ cancelled
  • direct mode: ~30s pending window (small, repeat counterparties)

  • delayed mode: ~12h pending window (default for first-time or ≥ 1,000)

  • Contract-level max finality: 30 days

Safety model

  1. No raw addresses — 0x… inputs are refused everywhere; parties must resolve via CIMS ID or directory name.

  2. Confirm before send — cims_send requires confirm=true, intended to be set only after the user has reviewed the quote.

  3. Policy at quote time — inactive institutions and unsupported rails are refused; name check, AML (review ≥ 50,000), and attestation requirements (≥ 10,000 or institution policy) are reported on every quote.

  4. Attestation gate — flagged intents stay in attestation_required until an operator approves via cims_attest.

  5. Errors as data — tool failures return isError content (not protocol errors), so assistants can read and explain them.

Development

npm run dev    # run from source with tsx
npm test       # vitest: policy units, adapter lifecycle, server integration
npm run build  # tsc → dist/

Layout: src/types.ts (domain model) · src/policy.ts (ID parsing, mode/window/threshold rules) · src/tools.ts (MCP tool registration) · src/resources.ts (docs resources + prompt) · src/adapters/ (mock + live behind CimsAdapter) · test/ (vitest).

Available Tools

9 tools
cims_attestAttest intentA
Destructive

Approve or reject an intent in attestation_required state (institution operator action). Approving moves it to pending; rejecting reverts it.

Inputs: approve (required), intentId (required), note, attestor.

cims_cancelCancel intentA
DestructiveIdempotent

Cancel a pending or attestation_required intent inside the cancel window.

Inputs: intentId (required), reason.

cims_institutionInstitution statusA
Read-onlyIdempotent

Look up a CIMS institution by index (e.g. "233" from R-233-2993204): active status, supported rails, and attestation policy. Check before routing to an unfamiliar institution.

Inputs: index (required).

cims_list_intentsList intentsB
Read-only

List known intents, optionally filtered by status and/or asset.

Inputs: asset, status.

cims_quoteQuote transferA
Read-only

Price and policy-check a transfer (name check, AML, attestation requirement). Does not move funds. Prefer delayed mode for first-time or large payments. Show the quote to the user before calling cims_send.

Inputs: amount (required), toQuery (required), fromQuery (required), mode, +1 more.

cims_resolveResolve CIMS partyA
Read-onlyIdempotent

Resolve a legal name, handle, or CIMS ID (R-institution-account) to a routable party. Refuses raw 0x addresses.

Inputs: query (required).

cims_sendSend transferA

Create a CIMS intent from a quote. Requires confirm=true and must only be called after the user has reviewed the quote. May return attestation_required if institution policy demands it.

Inputs: confirm (required), quoteId (required).

cims_statusIntent statusA
Read-only

Get intent status: pending, attestation_required, finalized, cancelled, reverted. Includes cancel window and tx hash when finalized.

Inputs: intentId (required).

cims_validate_idValidate CIMS IDA
Read-onlyIdempotent

Check whether a string is a well-formed CIMS ID (R-institution-account) and parse its parts. Pure format check; does not hit the directory.

Inputs: id (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool maps to a distinct step in the CIMS workflow: validation, resolution, institution lookup, quoting, sending, attestation, cancellation, status, and listing. Potentially adjacent pairs like validate_id/resolve and quote/send are clearly separated by their descriptions.

    Naming Consistency4/5

    All tools share the cims_ prefix and mostly use concise action-oriented names. Minor inconsistencies exist: cims_institution and cims_status are noun-only lookups, while cims_quote is ambiguous between noun and verb, so the pattern is not perfectly uniform.

    Tool Count5/5

    Nine tools is well-scoped for a payment-intent lifecycle with supporting identity and institution lookup operations. Each tool covers a distinct operation without redundancy or unnecessary bloat.

    Completeness5/5

    The set covers the full path from ID validation, party resolution, and institution discovery through quote, send, attestation, cancellation, status, and listing. State transitions are represented, and there are no obvious dead ends in the core workflow.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to check balances and send transactions across multiple blockchains with automatic spending limit protection and policy enforcement.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to analyze Ethereum wallets, simulate transactions, and draft transfers with deterministic policy and risk scoring, requiring human approval before on-chain execution.
      12 npm
      ISC
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to propose structured payment intents, apply deterministic policy, require human approval, and record tamper-evident audit trails without connecting to live payment rails.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to send ETH and tokens, approve token spending, and make contract calls while every transaction is decoded, simulated, checked against policy, threat lists, and user intent, with suspicious actions blocked or escalated for human approval.
      MIT