Skip to main content
The DFlow MCP server gives AI tools direct access to our documentation, API specs, and code examples so they can generate accurate, up-to-date code for your integration.
https://pond.dflow.net/mcp

What is MCP?

Model Context Protocol (MCP) is an open standard that connects AI applications to external data sources. Instead of relying on general web search, your AI tool searches DFlow documentation directly during response generation, giving you current API methods, correct parameters, and working examples.

Connecting to the DFlow MCP Server

Use the contextual menu at the top of any documentation page for one-click setup, or follow the manual instructions below.
Run the following command:
claude mcp add --transport http DFlow https://pond.dflow.net/mcp
Or add to your project’s .mcp.json:
{
  "mcpServers": {
    "DFlow": {
      "type": "http",
      "url": "https://pond.dflow.net/mcp"
    }
  }
}
Verify with:
claude mcp list

What You Get

Once connected, your AI tool can search DFlow documentation while generating responses. This includes:
  • Trading API: Order, imperative, and declarative endpoints with parameters and examples.
  • Code Recipes: End-to-end implementation patterns for common use cases.
  • Concepts: How routing, slippage, priority fees, and platform fees work.
  • Debugging: Draws from a large FAQ library that is continuously updated based on real integration questions from builders, so your AI tool can troubleshoot issues using the same answers our team gives in support channels.
The MCP server is automatically generated from this documentation and stays in sync as pages are updated.

Example Prompts

Try these with the DFlow MCP server connected: Execution Optimization
  • “Write an imperative trade that restricts routing to a single DEX using the dexes parameter.”
  • “How do I use priority fee presets like auto, medium, high, and veryHigh to speed up time-sensitive trades?”
Trading Basics
  • “Write a TypeScript function that executes an imperative token swap on DFlow with custom slippage.”
Debugging
  • “My trade is returning route_not_found, how do I debug this?”
  • “Why is my swap transaction failing onchain after getting a successful quote?”

Tips

  • Be specific: “How do I submit a declarative trade with platform fees?” works better than “help with trading.”
  • Mention your stack: “Using TypeScript and Next.js, show me how to…” gives better results.
  • Iterate: Use generated code as a starting point and ask for modifications.
  • Prepare: Read the docs first, so you know how to properly frame your commands.

Other AI Resources

For tools that don’t support MCP, see the AI overview.