Carbon DeFi MCP Server
AIエージェント向けのオンチェーン自動取引戦略(DEX)。Ethereum、Sei、Celo、TAC、COTI上で指値注文、レンジ注文、繰り返しの安値買い高値売り戦略、集中流動性ポジションを作成できます。従来のAMMや流動性プールとは異なり、Carbonでは非対称な価格レンジを設定可能で、買い注文と売り注文は独立しており、ミラーリングされません。オンチェーン化前に過去の価格データで任意の戦略をバックテストし、市場流動性を調査し、割安なエントリーポイントを見つけ、Carbon DeFiのメーカー流動性とトークンをスワップできます。25のツール。未署名トランザクションを返すため、エージェントは資金や秘密鍵を保持しません。フィル
ドキュメント
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto 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 %}
- MCP endpoint: https://mcp.carbondefi.xyz
- REST API: https://mcp.carbondefi.xyz/tools/:toolName
- OpenAPI spec: https://mcp.carbondefi.xyz/openapi.json
- Plugin manifest: https://mcp.carbondefi.xyz/.well-known/ai-plugin.json
- Server info: https://mcp.carbondefi.xyz/info
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.