canton-agent-mcp
Enables AI agents to request sign-ins and payments on the Canton Network through a human's mobile wallet, where each request requires explicit human approval and hardware-backed signing.
README
canton-agent-mcp
Your agent asks. You approve. Hardware signs.
An MCP server that lets an AI agent use the Canton Network through a human's mobile wallet. The agent can ask to sign in and to pay; every request lands as an approval sheet on the human's phone, and what gets signed is signed by the device key (Secure Enclave or Android StrongBox), never by the agent.
This server is a CIP-0103 dApp client over WalletConnect. It holds no keys and no ledger tokens. It can only ask, and the wallet's owner can see, approve, or refuse every request.
How it works
- The agent calls
canton_connect_wallet; a WalletConnect pairing QR appears. - The human scans it from their wallet's Connect tab and approves on the phone.
- From then on the agent can request sign-in (
canton_sign_in) or a payment (canton_request_payment). Each request pops an approval sheet on the phone; the wallet prepares the transaction on its participant, re-verifies the prepared-transaction hash on device, and signs in hardware. - Sessions persist on disk, so the wallet is paired once and reused.
The reference wallet on the other end is canton-mobile-app (iOS and Android, built on the native canton-mobile-sdk), but any CIP-0103 wallet that speaks WalletConnect works.
Quickstart
Requires Node 22.6+ (the server runs TypeScript directly, no build step) and a free WalletConnect Cloud project id.
git clone https://github.com/vsima/canton-agent-mcp
cd canton-agent-mcp && npm install
Register it with Claude Code:
claude mcp add canton-agent --env WC_PROJECT_ID=<your-project-id> \
-- node <path-to>/canton-agent-mcp/src/main.ts
Then ask the agent to connect your wallet and pay someone. A payment request
blocks until the human decides, so raise your MCP client's tool timeout if it
cuts long calls short (in Claude Code: the MCP_TIMEOUT environment variable).
Tools
| Tool | What it does |
|---|---|
canton_connect_wallet |
Starts pairing; returns the QR the human scans |
canton_wallet_status |
Whether a wallet is connected, and to which network |
canton_accounts |
The parties the wallet granted, with public keys |
canton_sign_in |
Sign-In with Canton: a signed, verified proof of the party |
canton_request_payment |
Pushes a Token Standard transfer for approval on the phone |
canton_disconnect |
Ends the session |
Configuration
All by environment variable:
| Variable | Default | Meaning |
|---|---|---|
WC_PROJECT_ID |
required | WalletConnect Cloud project id |
WC_RELAY_URL |
public relay | Relay WebSocket URL |
CANTON_NETWORK_ID |
canton:localnet |
CAIP-2 network id |
AGENT_MCP_NAME |
Canton Agent |
Shown on the wallet's approval sheets |
AGENT_MCP_DOMAIN |
canton-agent-mcp.local |
Sign-In challenge domain |
AGENT_MCP_STORAGE |
~/.canton-agent-mcp/wc-store |
Session store directory |
AGENT_MCP_REQUEST_EXPIRY |
3600 |
Seconds a pushed request stays answerable (300 to 604800) |
CANTON_LEDGER_URL / CANTON_REGISTRY_URL / CANTON_VALIDATOR_URL |
Splice LocalNet | Where payment commands are built |
Payments default to a local Splice LocalNet
(boot one via the SDK repo's integration/run-localnet.sh).
Security model
- The server can ask, never act: no keys, no ledger tokens, no signing.
- Every sign-in and payment needs an explicit approval on the phone.
- The wallet re-derives and verifies the prepared-transaction hash on device before its hardware key signs, so the phone can only sign what it showed.
- Requests expire (an hour by default); the relay stores them encrypted.
- Wallet-side spend policy (per-agent caps and allowlists, enforced by the wallet before signing) is the next milestone in the native SDK.
Development
npm test # typecheck + unit tests (no network)
npm run probe # opens a real relay session and prints the pairing QR
An independent, community-built open-source project, licensed Apache-2.0. Not affiliated with or endorsed by Digital Asset, the Canton Foundation, or the Global Synchronizer Foundation.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.