Skip to main content
Glama
WOOFi Pro MCP Server

WOOFi Pro MCP Server

by DaunteEth

๐Ÿš€ WOOFi Pro MCP Server

License: MIT TypeScript

A Model Context Protocol (MCP) server providing 40 comprehensive trading tools for WOOFi Pro and Orderly Network integration. Built for universal compatibility with Cursor IDE, Claude Desktop, Windsurf, and all MCP-compatible applications.

โœจ Features

  • ๐ŸŽฏ Platform-Specific Configuration: Smithery-style commands for precise MCP client targeting

  • 40 Trading Tools: Complete suite for DeFi and derivatives trading

  • Orderly Network API: Direct integration with institutional-grade infrastructure

  • Universal Compatibility: Works with Cursor, Claude Desktop, Windsurf, and all MCP clients

  • Flexible Setup: Auto-config, .env files, OR direct config - all methods supported

  • CCXT-Style Security: API keys never hardcoded in our repo, always user-provided

  • Automatic Authentication: Seamless ed25519 signature-based auth

  • Multi-Platform Support: Claude Desktop, Cursor IDE, VSCode, and Windsurf

  • Safe Config Management: Creates backups before making any changes

Related MCP server: Trading MCP Server

๐ŸŽฏ Available Tools (40 Total)

Category

Count

Tools

Description

Account

3

get_account_info, get_positions, get_orders

Account information and key details

Orders

18

create_order, batch_create_orders, edit_order, cancel_order, cancel_order_by_client_id, cancel_all_pending_orders, cancel_all_after, get_orders, get_order_by_id, get_order_by_client_id, create_algo_order, edit_algo_order, cancel_algo_order, cancel_algo_order_by_client_id, cancel_all_pending_algo_orders, get_algo_orders, get_algo_order_by_id, get_algo_order_by_client_id

Complete order management and execution

Assets

8

get_asset_history, get_holdings, create_withdraw_request, get_settle_pnl_nonce, request_pnl_settlement, get_pnl_settlement_history, create_internal_transfer, get_internal_transfer_history

Asset operations, PnL settlement, and transfers

Positions

3

get_all_positions, get_position_by_symbol, get_position_history

Position tracking and management

Liquidations

6

get_liquidated_positions, get_liquidations, get_positions_under_liquidation, claim_liquidated_positions, claim_insurance_fund, get_insurance_fund

Liquidation monitoring and claims

Funding

1

get_funding_fee_history

Funding rate data and history

๐Ÿš€ Quick Setup

Choose your platform and configure instantly - Smithery-style commands:

Claude Desktop:

npx -y git+https://github.com/DaunteEth/woofi-pro-mcp woofi-pro \
  --client claude \
  --api-key=your_orderly_api_key_here \
  --secret-key=your_orderly_secret_key_here \
  --account-id=your_account_id_here

Cursor IDE:

npx -y git+https://github.com/DaunteEth/woofi-pro-mcp woofi-pro \
  --client cursor \
  --api-key=your_orderly_api_key_here \
  --secret-key=your_orderly_secret_key_here \
  --account-id=your_account_id_here

VSCode:

npx -y git+https://github.com/DaunteEth/woofi-pro-mcp woofi-pro \
  --client vscode \
  --api-key=your_orderly_api_key_here \
  --secret-key=your_orderly_secret_key_here \
  --account-id=your_account_id_here

Windsurf:

npx -y git+https://github.com/DaunteEth/woofi-pro-mcp.git woofi-pro \
  --client windsurf \
  --api-key=your_orderly_api_key_here \
  --secret-key=your_orderly_secret_key_here \
  --account-id=your_account_id_here

What this does:

  • ๐ŸŽฏ Targets specific platform - Configure exactly what you want

  • ๐Ÿ“‹ Creates backups of existing configurations

  • โš™๏ธ Updates your MCP config with WOOFi Pro server + credentials

  • โœ… Ready to use immediately - just restart your MCP application!

๐ŸŸฆ Option B: .env File Method

Step 1: Create .env file

cp .env.example .env
# Edit .env with your credentials

Step 2: Simple config (any platform)

{
  "mcpServers": {
    "woofi-pro": {
      "command": "npx",
      "args": [
        "-y",
        "git+https://github.com/DaunteEth/woofi-pro-mcp",
        "woofi-pro"
      ]
    }
  }
}

๐ŸŸฉ Option C: Direct Config Method

Add credentials directly to your MCP config:

Claude Desktop (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json)

{
  "mcpServers": {
    "woofi-pro": {
      "command": "npx",
      "args": [
        "-y",
        "git+https://github.com/DaunteEth/woofi-pro-mcp",
        "woofi-pro"
      ],
      "env": {
        "WOOFI_API_KEY": "your_orderly_api_key_here",
        "WOOFI_SECRET_KEY": "your_orderly_secret_key_here",
        "WOOFI_ACCOUNT_ID": "your_account_id_here"
      }
    }
  }
}

Cursor IDE (.cursor/mcp.json)

{
  "mcpServers": {
    "woofi-pro": {
      "command": "npx",
      "args": [
        "-y",
        "git+https://github.com/DaunteEh/execution-agent.git",
        "woofi-pro"
      ],
      "env": {
        "WOOFI_API_KEY": "your_orderly_api_key_here",
        "WOOFI_SECRET_KEY": "your_orderly_secret_key_here",
        "WOOFI_ACCOUNT_ID": "your_account_id_here"
      }
    }
  }
}

๐Ÿ”ง API Credentials Setup

๐Ÿ”‘ Get API Credentials

  1. Visit: WOOFi Pro

  2. Complete KYC: Identity verification required

  3. Generate API Keys: API Management โ†’ Create API keys

  4. Set Permissions: Enable read and trading permissions

  5. Copy Credentials: You'll need 3 values:

    • API Key

    • Secret Key

    • Account ID

๐Ÿ“ .env File Template

# WOOFi Pro API Credentials (Required)
WOOFI_API_KEY=your_orderly_api_key_here
WOOFI_SECRET_KEY=your_orderly_secret_key_here
WOOFI_ACCOUNT_ID=your_account_id_here

๐Ÿ”’ Security Architecture

โœ… Non-Sensitive (Hardcoded)

The following standard values are hardcoded for simplicity and are not sensitive:

  • WOOFI_BASE_ENDPOINT=https://api.orderly.org - Public API endpoint

  • WOOFI_BROKER_ID=woofi_pro - Standard broker identifier

  • WOOFI_CHAIN_ID=42161 - Arbitrum network chain ID

๐Ÿ”‘ Sensitive (User-Provided)

These values must be provided by you and are never hardcoded:

  • WOOFI_API_KEY - Your unique API key

  • WOOFI_SECRET_KEY - Your private secret key

  • WOOFI_ACCOUNT_ID - Your account identifier

๐Ÿ›ก๏ธ Security Features

  • ๐Ÿ”’ Zero hardcoded secrets - Following 2025 MCP security best practices

  • ๐Ÿ“ .env files gitignored - Secrets never committed to version control

  • ๐Ÿ” Automatic .env loading - Server finds .env in working directory

  • โœ… Input validation - All parameters validated with Zod schemas

  • ๐Ÿ—๏ธ Separation of concerns - Public constants separate from private credentials

๐Ÿ’ก Usage Examples

Check Account Status

// Get account information
await get_account_info({});

// View all positions  
await get_all_positions({});

Place Orders

// Market buy order
await create_order({
  symbol: "PERP_BTC_USDC",
  side: "BUY", 
  order_type: "MARKET",
  order_quantity: 0.001
});

// Limit sell order
await create_order({
  symbol: "PERP_ETH_USDC",
  side: "SELL",
  order_type: "LIMIT", 
  order_price: 3500,
  order_quantity: 0.1
});

Advanced Features

// PnL Settlement
await get_settle_pnl_nonce({});
await request_pnl_settlement({
  signature: "0x...",
  userAddress: "0x...",
  // ... EIP-712 signature data
});

// Liquidation Claims  
await claim_liquidated_positions({
  liquidation_id: 12345,
  // ... liquidation claim data
});

๐Ÿ”„ Natural Language Commands

Account & Portfolio

  • "Show me my account balance"

  • "What are my current positions?"

  • "Get my asset transaction history"

  • "Check my PnL settlement history"

Trading

  • "Place a market buy order for 0.001 BTC"

  • "Create a limit sell order for 0.1 ETH at $3500"

  • "Cancel order ID 12345"

  • "Show me my recent orders"

  • "Create a batch of orders"

Advanced Operations

  • "Get my settle PnL nonce"

  • "Show me liquidated positions"

  • "Check funding fee history for BTC"

  • "Create an internal transfer"

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


โšก Ready to trade? Follow the quick setup above and start trading with natural language!

Available Tools

38 tools
batch_create_ordersB

Create multiple orders in batch

Inputs: orders (required).

cancel_algo_orderA

Cancel an algo order by order ID

Inputs: symbol (required), order_id (required).

cancel_algo_order_by_client_idB

Cancel an algo order by client order ID

Inputs: symbol (required), client_order_id (required).

cancel_all_afterC

Cancel all orders after a timeout

Inputs: timeout (required).

cancel_all_pending_algo_ordersC

Cancel all pending algo orders

Inputs: symbol.

cancel_all_pending_ordersC

Cancel all pending orders

Inputs: symbol.

cancel_orderB

Cancel an order by order ID

Inputs: order_id (required).

cancel_order_by_client_idB

Cancel an order by client order ID

Inputs: client_order_id (required).

claim_insurance_fundC

Claim insurance fund (POST with EIP-712 signature)

Inputs: message (required), signature (required), userAddress (required), liquidation_id (required), +2 more.

claim_liquidated_positionsB

Claim liquidated positions (POST with EIP-712 signature)

Inputs: symbol (required), message (required), signature (required), mark_price (required), +10 more.

create_algo_orderC

Create an algorithmic order (stop loss, take profit, etc.)

Inputs: symbol (required), algo_type (required), side, type, +9 more.

create_internal_transferC

Create internal transfer between accounts

Inputs: token (required), amount (required), toAccountId (required), fromAccountId (required).

create_orderC

Create a new regular order

Inputs: side (required), symbol (required), order_type (required), level, +9 more.

create_withdraw_requestC

Create a withdrawal request

Inputs: token (required), amount (required), address (required).

edit_algo_orderD

Edit an existing algo order

Inputs: order_id (required), price, quantity, trigger_price.

edit_orderC

Edit an existing order

Inputs: order_id (required), order_price, order_quantity.

get_account_infoA

Fetch account balances and fee tiers

Inputs: no named parameters.

get_algo_order_by_client_idC

Get algo order by client order ID

Inputs: client_order_id (required).

get_algo_order_by_idB

Get algo order by order ID

Inputs: order_id (required).

get_algo_ordersC

Get algo orders with filtering options

Inputs: page, size, symbol, algo_type.

get_all_positionsB

Get all positions

Inputs: no named parameters.

get_asset_historyB

Get asset transaction history

Inputs: no named parameters.

get_funding_fee_historyD

Get funding fee history

Inputs: page, size, end_t, symbol, +1 more.

get_holdingsC

Get asset holdings

Inputs: no named parameters.

get_insurance_fundB

Get insurance fund details

Inputs: no named parameters.

get_internal_transfer_historyC

Get internal transfer history

Inputs: page, size, end_t, symbol, +1 more.

get_liquidated_positionsC

Get public liquidated positions

Inputs: page, size, end_t, symbol, +1 more.

get_liquidationsC

Get user liquidation data

Inputs: page, size, end_t, symbol, +1 more.

get_order_by_client_idC

Get order by client order ID

Inputs: client_order_id (required).

get_order_by_idB

Get order by order ID

Inputs: order_id (required).

get_ordersC

Get orders with filtering options

Inputs: tag, page, side, size, +6 more.

get_pnl_settlement_historyC

Get PnL settlement history

Inputs: page, size, end_t, symbol, +1 more.

get_position_by_symbolB

Get position for specific symbol

Inputs: symbol (required).

get_position_historyC

Get position history

Inputs: limit, symbol.

get_positionsC

List open positions

Inputs: symbol.

get_positions_under_liquidationC

Get positions under liquidation (public)

Inputs: page, size, end_t, symbol, +1 more.

get_settle_pnl_nonceB

Get settle PnL nonce

Inputs: no named parameters.

request_pnl_settlementB

Request PnL settlement with EIP-712 signature

Inputs: message (required), signature (required), userAddress (required), verifyingContract (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    C2.8/5.0

    Scored across 38 tools

    Disambiguation4/5

    Most tools target distinct actions and resources, but `get_liquidated_positions` and `get_positions_under_liquidation` are very similar, causing potential confusion. Overall, the tool purposes are clear.

    Naming Consistency5/5

    All tools follow a consistent `verb_noun` pattern in snake_case, with minor variations like `batch_create_orders` and `create_withdraw_request` not breaking the overall predictability.

    Tool Count2/5

    With 38 tools, the count exceeds the recommended range for coherence. While each tool has a specific purpose, the sheer number can overwhelm agents, and several duplicate-like patterns (e.g., multiple cancel and get order tools) inflate the count.

    Completeness4/5

    The tool set covers the core lifecycle of orders (create, read, cancel, edit), positions (list, detail, history), transfers, withdrawals, liquidations, and PnL settlement. Minor gaps like missing deposit or trade history exist but are acceptable for the server's focus.

    Related MCP Connectors

    • Warden MCP lets AI agents find tokens, quote swaps and trade onchain on Base, BNB Chain, Robinhood Chain, Arc and Solana, within limits you set. Market tools need no credential: list_chains, search_tokens, trending_tokens, price_history, quote_swap and swap_status. Search by name, ticker or contract address, read USD price candles, and price a swap before committing to it, including cross-chain swaps. Wallet tools act for the wallet whose owner connected the agent, by OAuth sign-in or a wk_ key. agent_permissions shows what the agent may do and its daily limits. prepare_swap builds a trade and hands the owner a review link to sign. With request_session the owner turns on hands-free trading in one tap, and execute_swap then trades within the limits they set. swap_status tracks gasless and cross-chain trades. get_wallet shows holdings on every chain. Gasless trading is available on Base, BNB Chain and Robinhood Chain. Built by Warden Protocol, the team behind Warden Token Terminal.

    • OpenFinance gives any AI agent easy trading across every major market through one hosted MCP server. Trade crypto spot and perpetuals on Hyperliquid with market, limit and TWAP orders, leverage and margin control. Trade stocks, indices, commodities, forex and pre-IPO names as Hyperliquid HIP-3 perps. Trade Polymarket prediction markets with odds, order books, positions, PnL and trader leaderboards. Swap and bridge across 40+ EVM chains and Solana with Relay and Jupiter, find memecoins across 200+ chains, launch tokens on Robinhood Chain and Solana, and buy crypto with card, bank or UPI. Write actions are designed to ask for your confirmation first. Connect with OAuth (sign in to OpenFinance and approve) or an API key. Works with Claude, ChatGPT, Cursor, VS Code, Codex and any MCP client. No install. Home: https://openfinance.tech/agents ยท Docs: https://docs.openfinance.tech ยท GitHub: https://github.com/openfinance-tech/mcp

    • Trade Papertrade BTC and ETH perps from Claude, ChatGPT, Codex, Cursor and any MCP client.

    • > TradingMCP puts a market analyst inside your AI assistant. Paste one URL into Claude, ChatGPT, Cursor, VS Code or any MCP client and ask in plain language: screen for breakouts, run a multi-timeframe analysis, backtest a strategy with walk-forward validation, scan for smart-money and volume signals, or get a one-prompt morning market brief. In clients that support MCP Apps, price charts and the Markets panel are drawn right in the chat. > 40+ tools covering crypto (real-time), stocks, ETFs, FX, futures and commodities across major global exchanges. > Hosted, nothing to install: Pro $9/month (2,500 tool calls) or Pro+ $29/month (10,000). Paid upfront with a 14-day money-back guarantee; your API key arrives right after checkout. > Built on the open-source tradingview-mcp core (MIT, ~5k GitHub stars): self-host it free, or use the hosted version with zero ops. > For research and education, not financial advice. Not affiliated with TradingView

      https://mcp.cryptosieve.com/mcp

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform cryptocurrency trading analysis and execution with 38+ tools including real-time market data, technical indicators, risk management, and support for both paper trading and live execution on Hyperliquid.
      7
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides a comprehensive suite of 20 tools for cryptocurrency trading and technical analysis across 100+ exchanges like Binance and MEXC via CCXT. It enables users to execute orders, track positions, and scan for market opportunities through Claude Desktop using natural language.
      20
      37 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to securely trade on Hyperliquid perpetual exchange, including order placement, position management, market data retrieval, and vault operations via natural language.
      23 PyPI
      24
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Provides 32 trading analysis tools for AI-powered market analysis, including real-time data, technical indicators, options Greeks, scanners, and Interactive Brokers portfolio management, all accessible via natural language in Claude Desktop.
      36
      406
      MIT