io.github.persistenceOne/bridgekitty

编码与调试

by persistenceone

跨链桥聚合器,对比 LI.FI、deBridge、Relay、Across 等服务,帮助获取更优费率。

什么是 io.github.persistenceOne/bridgekitty

跨链桥聚合器,对比 LI.FI、deBridge、Relay、Across 等服务,帮助获取更优费率。

README

BridgeKitty 🐱

Cross-chain bridge aggregator MCP server for AI agents. One server, 5 bridge backends, best routes across EVM, Solana, and Cosmos chains.

BridgeKitty gives AI agents (Claude, Cursor, GPT, or any MCP-compatible AI) the ability to find and execute cross-chain bridge transfers — with automatic route optimization, fee comparison, balance checks, and safety warnings.

Latest npm release: @persistenceone/bridgekitty@0.3.9

What's New in v0.3.9

  • XPRT tools extracted — staking, rewards, and farming tools moved to the standalone xprt-farming-toolkit package
  • Persistence Interop backend removed — BridgeKitty is now a focused bridge aggregator across 5 backends (deBridge, Relay, LI.FI, Across, Squid)
  • Slimmer surface area — fewer tools, clearer scope for agents
<details> <summary>What's New in v0.3.0</summary>
  • sign_and_send parameter — agents can now sign and broadcast transactions directly using locally-stored wallet keys
  • Full EVM signing support — works with all EVM backends (Across, Relay, LI.FI, Squid, deBridge) + Persistence Interop (EIP-712)
  • Simulation fix — ERC20 bridges now work on fresh wallets (previously blocked by premature simulation)
  • Solana signing — coming in next release
</details> <details> <summary>What's New in v0.2.0</summary>
  • Solana support — bidirectional bridging EVM ↔ Solana (native SOL delivery, not wrapped)
  • Cosmos support — EVM → Persistence/Cosmos Hub via Squid (Axelar)
  • Protocol fee transparency — deBridge fixFee, operating expenses, and total cost visible in every quote
  • Balance warnings — warns when wallet can't cover bridge amount + protocol fees + gas
  • XPRT staking — stake/unstake/claim rewards directly from the MCP server
  • Farming multiplier — tracks your staking tier (1x → 3x → 5x) from the rewards API
  • Quote auto-refresh — expired quotes automatically re-fetched on execute (60s expiry)
  • ERC-20 approvals — always generated for token bridges (Relay + deBridge)
  • Bridge status tracking — on-chain fallback when provider API hasn't indexed yet
</details>

Supported Bridges

BackendTypeChainsStrength
deBridge (DLN)DirectEVM + SolanaFast intent-based fills, Solana support
RelayDirectEVM + SolanaNo protocol fee, gas-optimized
LI.FIAggregatorEVMWidest coverage (30+ bridges, any-to-any swap)
AcrossDirectEVMFastest fills (~6s), same-token bridging
Squid (Axelar)AggregatorEVM + CosmosOnly option for EVM → Cosmos routes

Bridge Directions

DirectionBackendsStatus
EVM → EVMAll 5✅ Production
EVM → SolanadeBridge, Relay✅ Production
Solana → EVMdeBridge✅ Production
EVM → CosmosSquid✅ Production

Quick Start

npx (zero install)

bash
npx @persistenceone/bridgekitty

Claude Code

Add to your MCP config (~/.claude/claude_code_config.json):

json
{
  "mcpServers": {
    "bridgekitty": {
      "command": "npx",
      "args": ["@persistenceone/bridgekitty"]
    }
  }
}

Cursor IDE

Add to Cursor's MCP settings (Settings > MCP Servers):

json
{
  "bridgekitty": {
    "command": "npx",
    "args": ["@persistenceone/bridgekitty"]
  }
}

Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "bridgekitty": {
      "command": "npx",
      "args": ["@persistenceone/bridgekitty"]
    }
  }
}

Wallet Setup

BridgeKitty can manage wallets for autonomous bridging. Run wallet_setup to create wallets for EVM, Cosmos, and Solana — or provide your own addresses in quotes.

Wallet config is stored in ~/.bridgekitty/.env (or the directory you run from). Keys never leave the local machine.

VariableDescription
PRIVATE_KEYEVM private key (hex)
MNEMONICBIP-39 mnemonic (derives EVM, Cosmos, Solana keys)
SOLANA_PRIVATE_KEYSolana private key (base58)

Transaction Signing

By default, bridge_execute returns unsigned transactions for the agent or user to sign externally.

Set sign_and_send: true to enable autonomous signing — BridgeKitty will use the wallet keys stored in ~/.bridgekitty/.env to handle the full flow:

  1. Approval — sends ERC-20 approval transaction (if needed)
  2. Re-build — re-fetches the bridge transaction with updated nonce (if approval was sent)
  3. Simulate — runs eth_estimateGas pre-flight check
  4. Sign — signs the transaction with the local private key
  5. Broadcast — submits to the chain and returns the tx hash + explorer link

Optional API Keys

VariableDescription
LIFI_API_KEYLI.FI API key (higher rate limits)
DEBRIDGE_API_KEYdeBridge API key
SQUID_INTEGRATOR_IDSquid integrator ID

MCP Tools

Core Bridge Tools

ToolDescription
bridge_get_quoteGet competitive quotes from all backends. Shows fees, time estimates, balance warnings.
bridge_executeBuild transaction(s) from a quote. Handles approvals, auto-refreshes expired quotes. Set sign_and_send: true to auto-sign and broadcast.
bridge_statusTrack bridge progress. On-chain fallback when API hasn't indexed yet.
bridge_chainsList supported chains with provider coverage.
bridge_tokensSearch tokens on a chain.

Multi-hop & Discovery

ToolDescription
bridge_quote_multiMulti-hop route resolution when no direct route exists.
bridgekitty_helpAgent onboarding guide with examples and tool usage.
xprt_onboardGuided onboarding flow for first-time users.

Wallet Tools

ToolDescription
wallet_setupCreate wallets for EVM, Cosmos, Solana from a single mnemonic.
wallet_importImport an existing wallet from a mnemonic or private key.
wallet_statusShow configured wallet addresses and key source.
wallet_balanceCheck balances across all chains with USD prices (CoinGecko).

XPRT staking & farming has moved to the standalone xprt-farming-toolkit package.

Example: Bridge USDC from Base to Arbitrum

Default (unsigned transactions)

code
Agent: "Bridge 100 USDC from Base to Arbitrum"

→ bridge_get_quote: Gets quotes from deBridge, Relay, LI.FI, Across
→ Shows: best rate, fees, estimated time, balance check
→ bridge_execute: Builds approval tx + bridge tx
→ Agent signs and sends both transactions
→ bridge_status: Tracks until destination confirmed

With sign_and_send (autonomous signing)

code
Agent: "Bridge 100 USDC from Base to Arbitrum"

→ bridge_get_quote: Gets quotes from all backends
→ bridge_execute with sign_and_send: true
  → Auto-signs approval tx + bridge tx using local wallet keys
  → Returns tx hash + explorer link
→ bridge_status: Tracks until destination confirmed

Architecture

code
Agent → MCP Tools → Routing Engine → [deBridge, Relay, LI.FI, Across, Squid]
                         ↓
                   Quote Cache (60s) + Circuit Breaker
                         ↓
                   Best Quote → buildTransaction
                         ↓
              ┌──────────┴──────────┐
              ↓                     ↓
        Unsigned TX          Signed + Broadcast
         (default)            (sign_and_send)
  • Routing Engine: Parallel quotes from all backends, ranked by output amount
  • Circuit Breaker: Auto-skips failing backends, gradual recovery
  • Token Registry: 45+ verified tokens with canonical addresses per chain
  • Gas Estimator: Chain-aware gas cost estimation with multi-RPC failover
  • Balance Checker: Validates token + native balance for fees before execution
  • Fee Transparency: Protocol fees (deBridge fixFee, operating expenses) surfaced in every quote

Security

  • Exact-amount approvals only (never unlimited)
  • Transaction simulation before execution
  • Verified token registry prevents address spoofing
  • No private keys in MCP protocol — agents sign transactions externally
  • sign_and_send uses locally-stored keys only (never transmitted over the network)
  • Circuit breaker prevents cascading failures
  • Error messages sanitized (no key/path leakage)
  • .env file permission checks + overwrite protection

Known Limitations

  • Solana → EVM returns a serialized transaction for external signing (no auto-execute)
  • Relay status tracking may show "unknown" for completed cross-chain bridges
  • Solana SPL tokens not yet shown in wallet_balance (only native SOL)
  • Cosmos → EVM bridging not yet supported (only EVM → Cosmos)

License

MIT

常见问题

io.github.persistenceOne/bridgekitty 是什么?

跨链桥聚合器,对比 LI.FI、deBridge、Relay、Across 等服务,帮助获取更优费率。

相关 Skills

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描172.7k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描172.7k

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描172.7k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
89.7k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
60.2k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
49.9k

评论