DeFi CLI and MCP server for Base, Citrea, HyperEVM and Monad — powered by Fibrous aggregation
claude mcp add fibx -- npx -y fibx{
"mcpServers": {
"fibx": {
"command": "npx",
"args": ["-y", "fibx"]
}
}
}Resumen de MCP Servers
# FibX A command-line tool for DeFi operations on **Base, Citrea, HyperEVM, and Monad**, powered by [Fibrous](https://fibrous.finance) aggregation and [Privy](https://privy.io) Server Wallets. [](https://badge.fury.io/js/fibx) ## Features - **Multi-Chain Support**: Base, Citrea, HyperEVM, and Monad - **Portfolio**: Cross-chain portfolio overview with USD valuations and DeFi positions - **Token Swaps**: Optimal routing via Fibrous aggregation with auto-slippage - **Transfers**: Send ETH or any ERC-20 token - **Aave V3**: Supply, borrow, repay, withdraw, and browse markets on Base - **MCP Server**: Built-in AI agent integration for Cursor, Claude Desktop, and Antigravity (11 tools, 4 categories) - **Agent Skills**: Prompt-based AI skills via [fibx-skills](https://github.com/Fibrous-Finance/fibx-skills) - **Privy Server Wallets**: Server-side signing — the CLI receives signed transaction payloads or signatures, not Privy app credentials or raw keys - **Policy-Enforced Signing**: Configured chain allowlists and native-value caps are evaluated by Privy at signing time - **Private Key Import**: Use an existing wallet with AES-256-GCM encrypted local storage - **Preflight Checks**: Transaction flows validate or estimate execution where the underlying RPC supports it - **Dry‑Run Mode**: `--simulate` previews write operations without broadcasting; gas estimates are included where available - **JSON Output**: `--json` flag for scripting and pipelines - **Zero-Dependency Install**: Single-file bundle via tsup — `npx fibx` runs near-instantly ## Supported Chains | Chain | Native Token | Aave V3 | | -------- | ------------ | ------- | | Base | ETH | ✅ | | Citrea | cBTC | — | | HyperEVM | HYPE | — | | Monad | MON | — | ## Installation Run directly with `npx` (no install needed): ```bash npx fibx status ``` Or install globally: ```bash npm install -g fibx ``` ## Requirements - Node.js >= 18 - A running [fibx-server](https://github.com/Fibrous-Finance/fibx-server) instance (required for Privy wallet operations; not needed for private key imports) ## Quick Start — First Swap in 3 Minutes ### Step 1: Get a Price Quote (no auth needed) Try FibX instantly — no sign-up, no wallet, no keys: ```bash npx fibx quote 0.01 ETH USDC # Check price on Base npx fibx quote 100 USDC DAI --chain base # Compare pairs npx fibx quote 0.5 MON USDC --chain monad # Check Monad prices ``` ### Step 2: Authenticate (pick one) **Option A — Email Login** (Privy Server Wallet, no keys to manage): ```bash npx fibx auth login you@email.com # Sends OTP to your email npx fibx auth verify you@email.com 123456 # Verify & create wallet ``` **Option B — Import Private Key** (use an existing wallet): ```bash npx fibx auth import # Paste your key (encrypted at rest) ``` ### Step 3: Execute ```bash npx fibx trade 0.01 ETH USDC # Execute the swap npx fibx balance # Check your balances ``` That's it. Three steps from zero to first swap. ## Usage ### Authentication ```bash # Email OTP (uses Privy server wallet) npx fibx auth login user@example.com npx fibx auth verify user@example.com 123456 # Or import a private key (local signing, no server needed) npx fibx auth import # Check session status npx fibx status # Logout npx fibx auth logout ``` > **Security:** When using `auth import`, your private key is encrypted at rest with AES-256-GCM. The encryption key is auto-generated per machine and stored in the OS config directory (e.g. `~/.config/fibx-nodejs/encryption-key` on Linux). You can also set the `FIBX_SESSION_SECRET` environment variable for CI/Docker environments. ### Global Options | Option | Description | Default | | -------------------- | ---------------------------------------------------- | ------- | | `-c, --chain <name>` | Target chain (`base`, `citrea`, `hyperevm`, `monad`) | `base` | | `--json` | Output results as JSON | `false` | ### Balance ```bash npx fibx balance npx fibx balance --chain citrea ``` ### Portfolio Consolidated cross-chain portfolio view with USD valuations: ```bash npx fibx portfolio # Table output across all chains npx fibx portfolio --json # Structured JSON for scripting ``` Shows all token holdings across Base, Citrea, HyperEVM, and Monad with USD values. Includes DeFi positions (Aave V3 collateral/debt) and total portfolio net worth. Token prices are sourced live from Fibrous. ### Send ```bash npx fibx send 0.001 0xRecipient # Send native token on Base (ETH) npx fibx send 10 0xRecipient USDC # Send ERC-20 on Base npx fibx send 1 0xRecipient --chain monad # Send MON on Monad npx fibx send 0.1 0xRecipient --simulate # Preview without sending ``` ### Quote Get swap prices without authentication: ```bash npx fibx quote 0.01 ETH USDC # Price check on Base npx fibx quote 1 MON USDC --chain monad # Check Monad prices npx fibx quote 0.1 ETH USDC --json # JSON output for scripts ``` > **No wallet or authentication required.** Use `quote` to explore prices, then `trade` to execute. ### Swap ```bash npx fibx trade <amount> <from> <to> npx fibx trade 0.0001 ETH USDC npx fibx trade 20 USDC DAI npx fibx trade 1 MON USDC --chain monad npx fibx trade 0.1 ETH USDC --simulate # Preview without broadcasting ``` Options: `--slippage <n>` (default: 0.5%), `--approve-max`, `--simulate`, `--json` > **Note:** The `trade` command automatically detects **Wrap** (Native -> Wrapped) and **Unwrap** (Wrapped -> Native) operations and executes them directly via contract calls, bypassing aggregator routing to save gas. ### Transaction Status ```bash npx fibx tx-status <hash> npx fibx tx-status 0x123...abc --chain monad ``` ### Wallet Info ```bash npx fibx address # Print active wallet address npx fibx wallets # Show active wallet details ``` ### Aave V3 (Base) ```bash npx fibx aave status # Account health npx fibx aave markets # List all active reserves with APY & TVL npx fibx aave supply 1 ETH # Auto-wraps ETH -> WETH and supplies npx fibx aave supply 100 USDC # Supply ERC-20 npx fibx aave borrow 50 USDC # Borrow npx fibx aave repay 50 USDC # Repay npx fibx aave repay max ETH # Auto-wraps ETH and repays full WETH debt npx fibx aave withdraw max ETH # Withdraws WETH and auto-unwraps to ETH npx fibx aave supply 1 ETH --simulate # Preview without broadcasting ``` > **Note:** `supply`, `repay`, and `withdraw` support automatic **ETH <-> WETH** wrapping/unwrapping on Base. ### Configuration Set custom RPC URLs to avoid rate limits on public endpoints: ```bash npx fibx config set-rpc base https://mainnet.base.org npx fibx config get-rpc base npx fibx config reset-rpc base # Reset single chain to default npx fibx config reset-rpc # Reset all chains to default npx fibx config list ``` > **Hot-reload:** Config changes are picked up automatically — no need to restart the CLI or MCP server. ## AI Agent Integration ### MCP Server fibx includes a built-in [MCP](https://modelcontextprotocol.io) server for AI editors like Cursor, Claude Desktop, and Antigravity. See [MCP.md](https://github.com/Fibrous-Finance/fibx/blob/main/MCP.md) for setup and available tools. ```bash npx fibx mcp-start ``` The MCP server exposes **11 tools** across 4 categories (Auth & Config, Wallet & Portfolio, Trading, DeFi). All write operations support a `simulate=true` preview that does not broadcast; gas estimates are returned only where available. ### Agent Skills For prompt-based agent integration (Claude Code, Cursor, etc.), see the [fibx-skills](https://github.com/Fibrous-Finance/fibx-skills) repository. ## Security Letting an AI agent operate a wallet requires controls outside the model. fibx combines signing-layer policies, server-side validation, client hints, and explicit previews. These controls reduce risk, but the server credentials, MCP client configuration, and deployment policy remain part of the trust boundary: | Layer | What it does | | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Privy signing policy | The default policy allowlists configured chains, caps each transaction's native-token `value`, and denies key export. Privy evaluates the policy at signing time; fibx-server credentials and any custom policy remain critical trust boundaries. | | fibx-server schemas | `/sign/*` accepts only the exact transaction shape the CLI produces — unknown fields, contract creation, and unserved chains are rejected before reaching Privy. | | MCP tool annotations | Every transactional tool advertises `destructiveHint: true`; compatible clients may use that hint to request confirmation, depending on client behavior and configuration. | | Simulation | `--simulate` previews write operations without broadcasting. Some paths also return a gas estimate; others return operation metadata only. | | Local key storage | Imported private keys are encrypted at rest with AE
Lo que la gente pregunta sobre fibx
¿Qué es Fibrous-Finance/fibx?
+
Fibrous-Finance/fibx es mcp servers para el ecosistema de Claude AI. DeFi CLI and MCP server for Base, Citrea, HyperEVM and Monad — powered by Fibrous aggregation Tiene 0 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala fibx?
+
Puedes instalar fibx clonando el repositorio (https://github.com/Fibrous-Finance/fibx) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar Fibrous-Finance/fibx?
+
Fibrous-Finance/fibx aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.
¿Quién mantiene Fibrous-Finance/fibx?
+
Fibrous-Finance/fibx es mantenido por Fibrous-Finance. La última actividad registrada en GitHub es de today, con 0 issues abiertos.
¿Hay alternativas a fibx?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega fibx en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/fibrous-finance-fibx)<a href="https://claudewave.com/repo/fibrous-finance-fibx"><img src="https://claudewave.com/api/badge/fibrous-finance-fibx" alt="Featured on ClaudeWave: Fibrous-Finance/fibx" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!