Fibrous MCP Server
About
A server for Fibrous Finance, a DeFi aggregation platform.
Details
- Author
- ahmetenesdur
- Categories
- Other, Finance
Jump to
Setup
Install Fibrous MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/ahmetenesdur/fibrous-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
MCP server providing AI agents with tools for multi-chain DeFi operations using the Fibrous SDK.
- get-supported-tokens- List available tokens
- get-supported-protocols- List DEX protocols
- get-best-route- Find optimal swap routes
- get-best-route-batch- Find optimal routes for batch swaps (Starknet only)
- build-transaction- Generate transaction data
- build-batch-transaction- Generate batch transaction data (Starknet only)
- format-token-amount- Convert between human and wei formats
- get-token- Fetch token details by address
- execute-swap- Execute token swaps (requires wallet config)
- estimate-swap- Estimate gas costs (requires wallet config)
- Base- Uniswap V3, Aerodrome, SwapBased
- Starknet- JediSwap, MySwap, 10kSwap, Ekubo
- Scroll- Uniswap V3, SyncSwap, iZiSwap
# Install dependencies pnpm install # Configure environment cp .env.example .env # Edit .env with your RPC URLs and private keys # Build the project pnpm build # Start server pnpm start
NODE_ENV=development DEFAULT_SLIPPAGE=1.0
# Base Network BASE_RPC_URL=https://mainnet.base.org BASE_PRIVATE_KEY=0x... # Starknet Network STARKNET_RPC_URL=https://starknet-mainnet.public.blastapi.io STARKNET_PRIVATE_KEY=0x... STARKNET_PUBLIC_KEY=0x... # Scroll Network SCROLL_RPC_URL=https://rpc.scroll.io SCROLL_PRIVATE_KEY=0x...
# Debug configuration DEBUG=false LOG_LEVEL=info ENABLE_METRICS=false # API optimization FIBROUS_API_KEY=your_api_key_here
{ "mcpServers": { "fibrous-mcp": { "command": "node", "args": ["/path/to/fibrous-mcp/build/src/index.js"] } } }
- Node.js 18+
- pnpm (recommended)
- TypeScript 5.0+
# Clone repository git clone <repository-url> cd fibrous-mcp # Install dependencies pnpm install # Start development server pnpm dev # Watch mode with auto-reload pnpm dev:watch
# Type checking pnpm typecheck # Linting pnpm lint pnpm lint:fix # Code formatting pnpm format pnpm format:check
Comprehensive test suite with82.6% coverageacross all modules:
# Run all tests pnpm test # Watch mode for development pnpm test:watch # Coverage report pnpm test:coverage # CI mode pnpm test:ci
- 167/167 tests passing
- 10 test suites, ~3.1s execution
- Native BigInt with router-sdk v0.6.0
- API endpoints: 17 tests
- Server configuration: 14 tests
- Tool handlers: 14 tests
- Utilities: 122 tests (BigInt operations, configuration, responses, swap logic, validation)
- Statements: 82.56%
- Branches: 73.46%
- Functions: 75.71%
- Lines: 83.18%
- Router SDK v0.6.0: Latest Fibrous SDK compatibility
- 50KB smaller bundle: Removed BigNumber.js dependency
- Faster calculations: Native JavaScriptbigintoperations
- Modern standards: ES2022+ features
// Example: Native BigInt usage const amount = BigInt("1000000000000000000"); // 1 ETH const route = await router.getBestRoute(amount, tokenIn, tokenOut, "base");
- MCP Protocol: Model Context Protocol compliance
- Type Safety: Full TypeScript implementation
- Error Handling: Comprehensive error management
- Security: Environment variable validation and masking
# Production build pnpm build:clean # Production start NODE_ENV=production pnpm start:prod
- Store private keys securely (use secrets management)
- Configure appropriate RPC endpoints
- Set up monitoring and logging
- Use HTTPS for all external connections
- 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)
- Fibrous Finance- Main website
- Documentation- API docs
- MCP Protocol- MCP specifications
- Router SDK v0.6.0- Local SDK documentation
- https://api.fibrous.finance(200 req/min)
- https://graph.fibrous.finance
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass:pnpm test
- Submit a pull request
- Follow TypeScript best practices
- Maintain test coverage above 75%
- Use conventional commit messages
- Update documentation for new features
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.
Manage Uniswap and Aerodrome liquidity positions with automated rebalancing and leverage.
Risk Intelligence MCP Server for crypto agents — 52 tools, 72B AI model, 560+ signals, derivatives, on-chain, autonomous trading
Cross-chain cryptocurrency swaps via Chainflip. Get quotes, execute swaps, and track progress.
About An MCP server that gives AI agents direct access to Polymarket Crypto prediction markets, enriched with live spot prices. Discover markets, analyze order books, paper trade strategies, track activity, and execute live trades.
Pool data, swap rates, and liquidity info on Curve Finance.
Official deBridge protocol MCP Server. Finds optimal cross-chain swap routes, checks fees and conditions, initiates trades across major blockchain networks
168 MCP tools for blockchain analytics across Base, Tron, Bitcoin, XRP, Kaspa. Token prices, whale tracking, DeFi, wallet profiling, security scoring. x402 pay-per-call.
Prediction market trading server for GuessMarket. Browse markets, buy/sell shares, add/remove liquidity, check portfolios, and build on-chain transactions. 20+ tools.
MCP server for DeFi execution — lets AI agents swap, provide liquidity, lend, bridge, and run yield strategies across 22 chains in a single transaction.
MCP server for Limitless Exchange prediction markets on Base. 34 tools for market access, limit order trading, wallet management, and position tracking.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



