ADI Chain MCP Server
Enables AI agents to query and execute ADI Chain operations, including canonical bridge deposits/withdrawals, CCIP transfers, balance checks, and funding path planning.
README
ADI Chain MCP Server
MCP server for ADI Chain: canonical bridge, CCIP, and network tools for AI agents.
Agents can answer — and execute — "how do I get USDC from Ethereum onto ADI Chain?" instead of pointing a human at a bridge UI. The server encodes ADI's domain knowledge: which bridges exist, which tokens each supports, and the constraints (USDC.e is CCIP-only and stuck on ADI Mainnet; no DEX liquidity exists on ADI Mainnet).
Install
Clone, audit, install globally. Reading the source is the point.
git clone <repo-url>
cd adi-mcp-server
bun i -g . # installs globally from the audited clone
adi-mcp-server # binary on PATH via package.json "bin"
Machines without bun: npm i -g . from the same clone. Update: git pull && bun i -g ..
Configure
Add to your MCP client (Claude Desktop, Cursor, .mcp.json, …):
{
"mcpServers": {
"adi": {
"command": "adi-mcp-server",
"env": { "ADI_MCP_PRIVATE_KEY": "0x..." }
}
}
}
ADI_MCP_PRIVATE_KEY is optional. Without it the server runs read-only: bridge_deposit, bridge_withdraw, and ccip_transfer are disabled. The server never stores keys.
Tools
Read / query
| Tool | What it returns |
|---|---|
get_network_info |
RPC, chain ID, explorer, bridge + CCIP contract addresses |
get_token_info |
Token addresses (L1/L2), decimals, which bridges can move it |
get_balance |
Native ADI or ERC-20 balance on ADI Chain |
get_bridge_options |
Which bridges support a token route, with constraints |
get_ccip_lanes |
CCIP lanes and supported tokens per lane |
get_bridge_status |
Finality of a tx: pending / committed / executed |
get_finality_status |
Node finality frontiers |
estimate_deposit |
L1 base cost of a canonical bridge deposit (in ADI) |
get_withdrawal_params |
Claim params for a withdrawal: batch, message index, message, Merkle proof |
get_agent_profile |
ERC-8004 agent identity + reputation + validation (mainnet) |
Advisory
| Tool | What it returns |
|---|---|
plan_funding_path |
Best routes to get native ADI (or a token) onto ADI Chain, with steps, costs, caveats |
get_swap_services |
Non-custodial swap services that deliver ADI (advisory only) |
Write (require ADI_MCP_PRIVATE_KEY)
| Tool | What it does |
|---|---|
bridge_deposit |
Canonical bridge deposit: ADI ERC-20 (L1) → native ADI (L2). Approves the L1 Asset Router, deposits, returns L1 + canonical L2 tx hashes |
bridge_withdraw |
L2 → L1 withdrawal (native ADI or bridged ERC-20). ~75 min + claim |
claim_withdrawal |
Claim a finalized withdrawal on L1 via the Nullifier (params from get_withdrawal_params or rebuilt from the tx hash) |
ccip_transfer |
CCIP token transfer (USDC.e, LINK on mainnet; CCIP-BnM on testnet) |
Known constraints (encoded in the domain model)
- ADI mainnet/testnet run
nativeTokenBridgingOnly— only ADI is registered in the canonical bridge's Native Token Vault. ERC-20 deposits via the Two Bridges pattern are protocol-supported but not configured; the server rejects them with a clear error pointing to CCIP. - USDC.e is a CCIP burn/mint token — it can only move via CCIP lanes, never the canonical bridge.
- No on-chain DEX with liquidity exists on ADI Mainnet — USDC.e cannot be swapped to native ADI on-chain. The multi-hop path (CCIP back to Ethereum → Uniswap → canonical bridge) is the workaround.
- CCIP on ADI testnet supports only CCIP-BnM — USDC is not on ADI testnet CCIP.
Development
bun i
bun run typecheck # tsc --noEmit
bun test # unit tests (routing, token resolution)
bun run test/smoke.ts # live smoke test against mainnet RPC
bun run test/write.ts # write-tool registration + deposit tx construction (needs ADI_MCP_PRIVATE_KEY)
Architecture
src/
cli.ts MCP server entry (stdio)
tools.ts tool definitions + registration
domain.ts networks, tokens, bridges, constraints (source of truth)
routing.ts funding-path planning
providers.ts viem clients + Blockscout v1 API + zks_* RPC
bridge.ts canonical bridge deposit/withdraw/claim construction
ccip.ts CCIP ccipSend construction
erc8004.ts ERC-8004 registry reads (identity, reputation, validation)
abis/ vendored ABIs (verified against live contracts)
All contract addresses and ABIs were verified against live RPC, the Chainlink CCIP directory, and the bridge UI bundle.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。