Swap, transfer, track a portfolio and use Aave V3 on Base, Citrea, HyperEVM and Monad.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
A command-line tool for DeFi operations on Base, Citrea, HyperEVM, and Monad, powered by Fibrous aggregation and Privy Server Wallets.
--simulate previews write operations without broadcasting; gas estimates are included where available--json flag for scripting and pipelinesnpx fibx runs near-instantly| Chain | Native Token | Aave V3 |
|---|---|---|
| Base | ETH | β |
| Citrea | cBTC | β |
| HyperEVM | HYPE | β |
| Monad | MON | β |
Run directly with npx (no install needed):
Or install globally:
Try FibX instantly β no sign-up, no wallet, no keys:
Option A β Email Login (Privy Server Wallet, no keys to manage):
Option B β Import Private Key (use an existing wallet):
That's it. Three steps from zero to first swap.
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-keyon Linux). You can also set theFIBX_SESSION_SECRETenvironment variable for CI/Docker environments.
| Option | Description | Default |
|---|---|---|
-c, --chain <name> | Target chain (base, citrea, hyperevm, monad) | base |
--json | Output results as JSON | false |
Consolidated cross-chain portfolio view with USD valuations:
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.
Get swap prices without authentication:
No wallet or authentication required. Use
quoteto explore prices, thentradeto execute.
Options: --slippage <n> (default: 0.5%), --approve-max, --simulate, --json
Note: The
tradecommand automatically detects Wrap (Native -> Wrapped) and Unwrap (Wrapped -> Native) operations and executes them directly via contract calls, bypassing aggregator routing to save gas.
Note:
supply,repay, andwithdrawsupport automatic ETH <-> WETH wrapping/unwrapping on Base.
Set custom RPC URLs to avoid rate limits on public endpoints:
Hot-reload: Config changes are picked up automatically β no need to restart the CLI or MCP server.
fibx includes a built-in MCP server for AI editors like Cursor, Claude Desktop, and Antigravity. See MCP.md for setup and available tools.
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.
For prompt-based agent integration (Claude Code, Cursor, etc.), see the fibx-skills repository.
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 AES-256-GCM using a per-machine key stored 0600 in the OS config directory. |
Wallet policy limits are configured per deployment β see the fibx-server wallet policy docs.
Note: policies are attached when a wallet is created. Wallets provisioned before policies were introduced keep signing without them until migrated.
This repository is the CLI and MCP server. Three sibling repositories complete the stack:
| Repository | Role |
|---|---|
| fibx (this repo) | CLI + stdio MCP server, shipped as a single dependency-free bundle |
| fibx-server | Hono backend that proxies Privy β holds the app secret so the CLI never does, and owns the wallet signing policy |
| fibx-skills | Prompt-based Agent Skills for Claude Code, Cursor, and other skill-aware agents |
| fibx-telegram-bot | Telegram bot that drives this CLI over MCP, with one process and separate config paths per active user |
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/fibx)<a href="https://allmcps.com/mcp/fibx"><img src="https://allmcps.com/api/badge/fibx?style=directory" alt="FibX on AllMCPs" /></a>