详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
Carbon DeFi — On-ChAIn Maker Trading via MCP
Carbon DeFi is a fully on-chAIn maker trading protocol. Users 设置 prices upfront — strategies 执行 automatically with zero gas on fills. No 机器人s, no 代理 needs to stay online after placing a strategy.
Connect to the MCP Server
添加 to Claude 桌面 config (~/库/应用 Support/Claude/claude_桌面_config.json):
{ "mcpServers": { "carbon-defi": { "command": "npx", "args": ["mcp-remote", "https://carbon-mcp.duckdns.org/mcp"] } } }
Re启动 Claude 桌面 after saving. Alternatively, call 工具s directly via REST:
curl -X POST https://carbon-mcp.duckdns.org/工具s/获取_strategies \ -H "Content-Type: 应用/json" \ -d '{"owner": "0xYour添加ress", "chAIn": "ethereum"}'
Core Concepts
Maker-first. Every strategy is a maker order — you 设置 the price, the market comes to you.
Un签名ed transactions. All write operations return an un签名ed transaction (to, data, value). The user must 签名 and broadcast it. Never assume a transaction has been submitted.
Base and quote 令牌s.
base_令牌 — the 令牌 being bought or sold (e.g. ETH) quote_令牌 — the pricing 令牌 (e.g. USDC) All prices are expressed as: quote per 1 base (e.g. 2000 USDC per ETH)
Bud获取s.
buy_bud获取 — always in quote 令牌 (e.g. USDC to spend buying ETH) sell_bud获取 — always in base 令牌 (e.g. ETH to sell)
Native ETH. Use 添加ress 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE. Never WETH. ETH never requires 应用roval.
Supported chAIns. ethereum, sei, celo, tac, coti
Strategy Types User intent 工具 to use "buy at exactly X" / "sell at exactly X" carbon_创建_limit_order "扩展 in as price drops" / "DCA into" carbon_创建_range_order (buy) "扩展 out as price rises" / "sell gradually" carbon_创建_range_order (sell) "buy low sell high forever" / "recurring" / "grid" carbon_创建_recurring_strategy "provide liquidity" / "earn fees" / "concentrated" carbon_创建_concentrated_strategy "full range liquidity" / "widest range" carbon_创建_full_range_strategy
A range order 执行s gradually as price moves through the range — correct for "扩展 in" or "DCA". Do not split into multiple orders.
All 25 工具s Explore carbon_获取_strategies — all active strategies for a wallet. Always call first. carbon_获取_strategy — single strategy by ID — type, 状态, prices, bud获取s, trade count carbon_获取_activity — trade and event 历史 for a wallet or strategy carbon_explore_pAIr — top strategies for a 令牌 pAIr, ranked by trade count carbon_simulate_strategy — backtest agAInst real historical prices before going on-chAIn carbon_resolve_令牌 — fuzzy 令牌 symbol/name → on-chAIn 添加ress ("dollar" finds USDC/USDT/DAI) carbon_find_opportunities — discount buys or premium sells vs market price carbon_获取_protocol_stats — TVL, volume, fees 历史 carbon_获取_price_历史 — OHLC price data for any 令牌 pAIr Trade (swap agAInst Carbon liquidity) carbon_获取_trade_quote — swap quote: expected 输出, rate, strategies used. Always call before 执行. carbon_执行_trade — un签名ed swap transaction. Requires trade_actions from 获取_trade_quote. 创建 carbon_创建_limit_order — one-time buy or sell at exact price carbon_创建_range_order — gradual execution across a price range carbon_创建_recurring_strategy — looping buy+sell, repeats forever, zero gas on fills carbon_创建_concentrated_strategy — two-sided liquidity with a defined spread carbon_创建_full_range_strategy — two-sided liquidity up to 1000x from market price Manage carbon_reprice_strategy — 更新 price ranges only carbon_edit_strategy — 更新 prices and bud获取s in one transaction carbon_deposit_bud获取 — 添加 funds without interrupting the strategy carbon_withdraw_bud获取 — 移除 funds without closing the strategy carbon_暂停_strategy — 暂停 orders, funds stay, 恢复 anytime carbon_恢复_strategy — reactivate a 暂停d strategy carbon_删除_strategy — permanently close and return all funds Help & Knowledge carbon_help — detAIled 图形界面dance on any 工具 or full overview carbon_learn — protocol concepts: fees, security, marginal price, overl应用ing liquidity, contracts, SDK, API, and more Behavior Rules Always call carbon_获取_strategies first to 检查 existing positions Never invent a market price — always ask the user. Never reuse a price from earlier in the conversation. Present a strategy proposal and wAIt for explicit user 应用roval before building a transaction Always show the full un签名ed transaction (to, data, value) after creation 检查 the 警告s array in every 响应 — if allowance 警告 exists, show 应用roval steps before the transaction When market price is inside a buy range, ask: full range or below market only? Full range: omit buy_price_marginal Below market only: 设置 buy_price_marginal to current market price Overl应用ing buy/sell ranges: warn but allow — ask user to confirm intent Buy price above market: warn and offer to adjust Sell price below market: warn and offer to adjust For paus