What AI Tools Can Do with Fibrous
Search Docs
AI tools search Fibrous docs in real time via MCP, getting accurate API specs instead of stale web results.
Generate Code
Ask your AI assistant to build a swap integration using the Fibrous V2 API or SDK with correct parameters and types.
Debug Integrations
AI tools can look up error codes, rate limits, slippage guidance, and contract addresses directly from the docs.
Connect the Fibrous MCP Server
Fibrous hosts an MCP server athttps://docs.fibrous.finance/mcp. When connected, AI tools can search Fibrous documentation directly during conversations instead of relying on web search.
- Claude Code
- Claude Desktop
- Cursor
- VS Code
- Windsurf
- ChatGPT / Others
Run the following command to add the Fibrous MCP server:Verify the connection:After adding, Claude Code can search Fibrous docs during any coding session. Try asking: “Using the Fibrous API, how do I find the best route for swapping ETH to USDC on Base?”
llms.txt
Fibrous hosts an AI-friendly documentation index atdocs.fibrous.finance/llms.txt. This file lists every documentation page with descriptions, acting as a sitemap for AI tools.
A full-content version is available at docs.fibrous.finance/llms-full.txt, containing the complete text of all pages in a single file.
skill.md
Fibrous hosts a capability descriptor atdocs.fibrous.finance/skill.md. This file tells AI agents what they can accomplish with Fibrous: find swap routes, generate calldata, check supported tokens and chains, and more.
Agents that support skills (like Claude) can use this to understand Fibrous capabilities upfront, enabling them to proactively search the right documentation when helping you build integrations.
The skill.md is automatically generated from your documentation and stays up to date on every deploy.
Example: Build a Swap Integration with AI
Here’s a practical walkthrough of using an AI assistant with the Fibrous MCP server connected to build a complete swap integration.Find the best route
Ask your AI assistant:
Using the Fibrous V2 API, write a function that finds the best route to swap 1 ETH for USDC on Base network.The AI will search Fibrous docs and produce something like:
Generate calldata and execute
Follow up with:
Now get the route and calldata in a single call with 0.5% slippage and show me how to execute it with ethers.js.The AI will use the
routeAndCallData V2 endpoint:Add error handling
Ask:
Add token approval checking, rate limit handling, and error handling following Fibrous best practices.With MCP connected, the AI will pull recommendations from the Integration Guide — slippage tables, error codes, rate limit backoff, and token approval patterns.
Use the SDK instead
Try:
Rewrite this using the @fibrous/router SDK instead of raw API calls.The AI will reference the SDK documentation and produce a cleaner integration using the TypeScript SDK.
Tips for Best Results
- Be specific about the network — Always mention the target chain (Base, Monad, Starknet, etc.) since each has different token addresses and contract formats.
- Specify V1 or V2 — Tell the AI whether to use V2 endpoints (recommended for new integrations) or V1 for backward compatibility. Both are actively supported.
- Use the SDK for Starknet — Starknet uses a different transaction model (Cairo). The
@fibrous/routerSDK abstracts this, so direct the AI to use it for Starknet integrations. - Ask about integrator features — If you want to monetize your integration, tell the AI to include
integratorAddressandintegratorFeePercentageBpsparameters with API key authentication.
Related Resources
Integration Guide
Complete integration guide with best practices for slippage, approvals, and error handling.
SDK Reference
TypeScript SDK documentation for @fibrous/router.
V2 Migration Guide
Upgrade from V1 to V2 endpoints with integrator support.
Supported Chains
Networks, token addresses, and contract details.