Carbon DeFi

面向AI代理的链上自动化交易策略(DEX)。支持在Ethereum、Sei、Celo、TAC和COTI上创建限价单、区间单、定期低买高卖策略以及集中流动性头寸。与传统AMM和流动性池不同,Carbon允许设置非对称价格区间——买入和卖出订单相互独立,而非镜像。在上链前可针对历史价格回测任意策略,探索市场流动性,发现折扣入场点,并利用Carbon DeFi的做市流动性进行代币兑换。提供25种工具。返回未签名的交易——代理从不持有资金或私钥。成交零Gas费。

文档

For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs; this page is available as Markdown.

AI Agents & MCP Server

Carbon DeFi has an MCP (Model Context Protocol) server that allows AI agents to create and manage on-chain trading strategies programmatically.

{% hint style="info" %} Experimental — still being worked on. Use at your own risk. {% endhint %}

Claude Desktop setup

Add this to your Claude Desktop config to connect:

json

{
  "mcpServers": {
    "carbon-defi": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.carbondefi.xyz"]
    }
  }
}

Key conventions for agents

  • All write operations return unsigned transactions — the user always signs and broadcasts
  • Always call get_strategies first to check existing positions
  • Market price is auto-fetched from the Carbon API — no need to provide it manually
  • Prices are always in quote token per 1 base token
  • buy_budget is always in quote token; sell_budget is always in base token
  • Check the warnings array in every response before presenting a transaction