MCP Hub
Back to servers

Arcadia Finance

Manage Uniswap and Aerodrome liquidity positions with automated rebalancing and leverage.

Registryglama
Stars
1
Forks
1
Updated
Mar 5, 2026

Quick Install

npx -y @arcadia-finance/mcp-server

Arcadia Finance MCP Server

npm npm downloads smithery badge License: BUSL-1.1 TypeScript MCP

MCP server for Arcadia Finance, a platform to manage Uniswap and Aerodrome concentrated liquidity positions with built-in leverage, automated rebalancing, and yield optimization. Read protocol data and build unsigned transactions for LP management, borrowing, deposits, and more.

Designed for AI agents (Claude, Cursor, etc.) to interact with Arcadia onchain.

Install

Install in VS Code Install in Cursor

Tools

Read Tools

ToolDescription
get_account_infoAccount overview: health factor, collateral, debt, positions, liquidation price. Pass account_address or wallet_address.
get_account_historyHistorical account value over time.
get_account_pnlPnL and yield data for an account.
get_assetsSupported collateral assets with addresses, types, decimals. Optional USD price lookup.
get_wallet_balancesOn-chain ERC20 balances and native ETH for a wallet address.
get_allowanceCheck ERC20 token allowances for a spender. Use before build_approve_tx to avoid redundant approvals.
get_pointsPoints balance for a wallet, or leaderboard.
get_lending_poolsPool data: TVL, APY, utilization, liquidity. Optional single-pool detail with APY history.
get_strategiesLP strategies with APY, underlyings, pool info. Optional detail or featured filter.
get_recommendationRebalancing recommendation for an account.
get_guideReference guides: automation setup, strategy selection, strategy templates.

Write Tools

Direct calldata encoding via viem. Each returns { to, data, value, chainId }.

ToolDescription
build_approve_txApprove an ERC20 token for spending. Required before depositing into an account. Call get_allowance first to check if already approved.
build_create_account_txCreate a new Arcadia account via Factory.
build_deposit_txDeposit ERC20 tokens into an account.
build_withdraw_txWithdraw assets from an account.
build_borrow_txBorrow from a lending pool.
build_repay_txRepay debt to a lending pool.
build_set_asset_manager_txGrant or revoke an asset manager contract's permission on a V3/V4 account. For full setup with config, use build_configure_asset_manager_tx.
build_configure_asset_manager_txEnable AND configure an asset manager in one tx for V3/V4 accounts: sets initiator, fee limits, and strategy parameters (trigger thresholds, compound mode, recipients).

Dev Tools

Always registered but requires PK env var to function.

ToolDescription
sign_and_send_txSign and broadcast an unsigned transaction using a local private key (PK env var). Not for production — use a dedicated wallet MCP server instead.

Advanced Tools

Proxied via backend API. Handles swap routing, Tenderly simulation, optimal ratios.

ToolDescription
build_add_liquidity_txFlash-action: deposit + swap + mint LP + optional leverage, atomically.
build_remove_liquidity_txRemove/decrease LP position liquidity.
build_swap_txSwap assets within an account (backend-routed).
build_repay_with_collateral_txRepay debt by selling collateral (swap + repay in one tx).
build_close_position_txAtomic close: burn LP + swap + repay debt in one tx.
build_position_action_txStake, unstake, or claim rewards for LP positions.

Transaction Signing

All write and advanced tools return unsigned transactions as { to, data, value, chainId }. This server does NOT sign or broadcast — your agent or application is responsible for that.

Options

Wallet infrastructure (recommended for production): Use your existing wallet setup — MPC wallets (Fireblocks, Dfns, Turnkey), smart accounts (Safe, Biconomy), or embedded wallets (Privy, Dynamic). Pass the unsigned tx object to your provider's signing method.

viem/ethers in your agent:

import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0x...");
const client = createWalletClient({ account, chain: base, transport: http() });

// tx = result from any build_*_tx tool
const hash = await client.sendTransaction(tx);

Built-in sign_and_send_tx tool (development only): The server includes a dev-only signing tool that reads a private key from the PK environment variable. Set PK via a .env file or your MCP client config:

# .env in the server directory (never commit — already gitignored)
PK=0xYourPrivateKeyHex
RPC_URL_BASE=https://base-mainnet.g.alchemy.com/v2/your-key

The server loads .env automatically on startup. Works with any MCP client (Claude Desktop, Claude Code, VSCode, Cursor). MCP client env block settings take precedence if both are set.

Not for production — use a dedicated wallet MCP server (Fireblocks, Turnkey, Safe) instead.

Setup

Prerequisites: Node.js >= 22

yarn install
yarn build

Environment variables:

VariableRequiredDescription
RPC_URL_BASENoRPC URL for Base (8453). Falls back to public RPC if not set.
RPC_URL_OPTIMISMNoRPC URL for Optimism (10). Falls back to public RPC if not set.
RPC_URL_UNICHAINNoRPC URL for Unichain (130). Falls back to public RPC if not set.
PKNoPrivate key (hex) for dev-only sign_and_send_tx tool.

Supported chains: Base (8453), Optimism (10), Unichain (130)

MCP Client Configuration

Via npx (recommended):

{
  "mcpServers": {
    "arcadia-finance": {
      "command": "npx",
      "args": ["-y", "@arcadia-finance/mcp-server"],
      "env": {
        "RPC_URL_BASE": "https://base-mainnet.g.alchemy.com/v2/your-key"
      }
    }
  }
}

Claude Code:

claude mcp add arcadia-finance -- npx -y @arcadia-finance/mcp-server

From source (local development):

{
  "mcpServers": {
    "arcadia-finance": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server/dist/index.js"],
      "env": {
        "RPC_URL_BASE": "https://base-mainnet.g.alchemy.com/v2/your-key"
      }
    }
  }
}

Skills

The skills/ directory contains Claude Code skills that teach AI agents how to use this MCP server effectively. To install a skill, symlink it into your Claude skills directory:

ln -s /path/to/mcp-server/skills/clamm-liquidity ~/.claude/skills/clamm-liquidity

Available skills:

SkillDescription
clamm-liquidityConcentrated liquidity management: concepts, asset managers (rebalancers, compounders), and step-by-step workflows.

Reporting Issues

Found a bug, missing feature, or unclear documentation while using this server? Open an issue: https://github.com/arcadia-finance/mcp-server/issues

For AI agents: If you hit a gap during task execution, open an issue with:

  • Tool name and parameters you used
  • What you expected vs what happened
  • The strategy or goal you were trying to execute

Pull requests for documentation fixes are welcome from agents and humans alike. All PRs require human review before merging.

Where to Find Us

Development

yarn dev          # Run with tsx (hot reload)
yarn build        # Compile TypeScript
yarn test         # Run tests
yarn lint         # Lint with ESLint
yarn format       # Check formatting with Prettier

Reviews

No reviews yet

Sign in to write a review