Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fibrous MCP ServerFind the best route to swap 1 ETH to USDC on Base"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fibrous MCP Server
MCP server providing AI agents with tools for multi-chain DeFi operations using the Fibrous SDK.
Features
10 Available Tools:
get-supported-tokens- List available tokensget-supported-protocols- List DEX protocolsget-best-route- Find optimal swap routesget-best-route-batch- Find optimal routes for batch swaps (Starknet only)build-transaction- Generate transaction databuild-batch-transaction- Generate batch transaction data (Starknet only)format-token-amount- Convert between human and wei formatsget-token- Fetch token details by addressexecute-swap- Execute token swaps (requires wallet config)estimate-swap- Estimate gas costs (requires wallet config)
Supported Networks:
Base - Uniswap V3, Aerodrome, SwapBased
Starknet - JediSwap, MySwap, 10kSwap, Ekubo
Scroll - Uniswap V3, SyncSwap, iZiSwap
Quick Start
Configuration
Environment Variables
Core Configuration:
Network Configuration:
Optional Settings:
MCP Client Setup
Add to your MCP client configuration:
Development
Prerequisites
Node.js 18+
pnpm (recommended)
TypeScript 5.0+
Setup
Code Quality
Testing
Comprehensive test suite with 82.6% coverage across all modules:
Test Results:
167/167 tests passing
10 test suites, ~3.1s execution
Native BigInt with router-sdk v0.6.0
Test Coverage by Module
API endpoints: 17 tests
Server configuration: 14 tests
Tool handlers: 14 tests
Utilities: 122 tests (BigInt operations, configuration, responses, swap logic, validation)
Coverage Details
Statements: 82.56%
Branches: 73.46%
Functions: 75.71%
Lines: 83.18%
Technical Details
Native BigInt Integration
Router SDK v0.6.0: Latest Fibrous SDK compatibility
50KB smaller bundle: Removed BigNumber.js dependency
Faster calculations: Native JavaScript
bigintoperationsModern standards: ES2022+ features
Architecture
MCP Protocol: Model Context Protocol compliance
Type Safety: Full TypeScript implementation
Error Handling: Comprehensive error management
Security: Environment variable validation and masking
Production Deployment
Environment Setup
Security Considerations
Store private keys securely (use secrets management)
Configure appropriate RPC endpoints
Set up monitoring and logging
Use HTTPS for all external connections
Performance
Native BigInt: 2-3x faster than BigNumber.js
Bundle Size: 50KB reduction vs v0.5.x
Memory Usage: Optimized for long-running processes
Rate Limiting: 200 req/min (configurable)
Resources
Fibrous Finance - Main website
Documentation - API docs
MCP Protocol - MCP specifications
Router SDK v0.6.0 - Local SDK documentation
API Endpoints:
https://api.fibrous.finance (200 req/min)
https://graph.fibrous.finance
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Ensure all tests pass:
pnpm testSubmit a pull request
Development Guidelines
Follow TypeScript best practices
Maintain test coverage above 75%
Use conventional commit messages
Update documentation for new features
License
MIT - see LICENSE
Risk Warning: DeFi operations involve financial risk. Always verify transactions and use testnet for development.
Status: Production ready with comprehensive test coverage and native BigInt support.