Carbon DeFi MCP Server

AI 에이전트를 위한 온체인 자동화 트레이딩 전략(DEX)입니다. 이더리움, 세이, 셀로, TAC, COTI에서 지정가 주문, 범위 주문, 반복 저가매수-고가매도 전략, 집중 유동성 포지션을 생성할 수 있습니다. 기존 AMM 및 유동성 풀과 달리, Carbon은 비대칭 가격 범위를 설정할 수 있어 매수 및 매도 주문이 독립적이며 서로 대칭되지 않습니다. 온체인에 올리기 전에 과거 가격 데이터를 기반으로 모든 전략을 백테스트하고, 시장 유동성을 탐색하며, 할인 진입 지점을 찾고, Carbon DeFi의 메이커 유동성과 토큰을 스왑할 수 있습니다. 25개의 도구를 제공하며, 서명되지 않은 트랜잭션을 반환

문서

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


Agent Instructions

This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the ask query parameter, and the optional goal query parameter:

GET https://docs.carbondefi.xyz/rest-api/ai-agents-and-mcp-server.md?ask=<question>&goal=<endgoal>

ask is the immediate question: it should be specific, self-contained, and written in natural language. goal is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.