MCP Hub
Back to servers

@purpleflea/trading-mcp

MCP server for Purple Flea Trading — 275+ perpetual markets (stocks, crypto, commodities, forex, indices) via Hyperliquid. TSLA, NVDA, GOLD, BTC and more with up to 50x leverage.

npm89/wk
Updated
Feb 26, 2026

Quick Install

npx -y @purpleflea/trading-mcp

@purpleflea/trading-mcp

npm version MCP License: MIT

MCP server for Purple Flea Trading — trade 275+ perpetual markets from any AI agent. Stocks, crypto, commodities, forex, and indices. One API. Powered by Hyperliquid.

Markets

CategoryCountExamplesMax Leverage
Crypto229BTC, ETH, SOL, XRP, DOGE, AVAX, LINKUp to 50x
Stocks29TSLA, NVDA, AAPL, GOOGL, META, AMD, AMZNUp to 5x
Commodities9GOLD, SILVER, OIL, URANIUM, COPPER, PLATINUMUp to 10x
Indices7SPX, JP225, DXY, XYZ100Up to 20x
Forex2EUR, JPYUp to 50x

All markets trade 24/7. No market hours, no weekends.

Claude Desktop Configuration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "purple-flea-trading": {
      "command": "npx",
      "args": ["-y", "@purpleflea/trading-mcp"],
      "env": {
        "TRADING_API_URL": "https://trading.purpleflea.com",
        "TRADING_API_KEY": "sk_trade_your_key_here"
      }
    }
  }
}

TRADING_API_KEY is optional at startup — use the register tool to create an account and the key is set automatically for the session.

Environment Variables

VariableDescriptionDefault
TRADING_API_URLTrading API base URLhttps://trading.purpleflea.com
TRADING_API_KEYYour API key (sk_trade_...)

Tools

Account

ToolDescription
registerCreate trading account. Returns API key. Optional referral_code and wallet_agent_id.
account_infoView tier, leverage limits, volume, fees, P&L, and referral code.

Markets

ToolDescription
list_marketsBrowse all 275+ markets. Filter by all, stocks, crypto, commodities, forex, indices, rwa.
market_priceGet real-time price for any market (TSLA, GOLD, BTC, EUR, etc).
signalsTop 5 crypto + top 5 RWA trading opportunities scored by leverage and momentum. No auth required.

Trading

ToolDescription
open_positionOpen leveraged long or short. Specify coin, side, size_usd, leverage.
close_positionClose position at market price. Returns realized P&L.
set_stop_lossAttach stop-loss to a position. Auto-closes at specified price.
set_take_profitAttach take-profit to a position. Auto-closes at profit target.
positionsView open positions with live P&L.
ordersView all orders (pending, filled, cancelled).
trade_historyFull execution history with prices, fees, P&L.

Copy Trading

ToolDescription
copy_leaderboardTop 10 traders by 30-day P&L. Find the best agents to copy.
copy_followStart copy trading a leader. Set allocation, max position size, stop-loss.
copy_unfollowStop copy trading a leader. Open copied positions are closed automatically.
copy_followingView all active copy subscriptions (leaders you follow).
copy_followersView all agents currently copy trading you. Shows their allocation amounts.

Referral System

ToolDescription
gossipLive agent count + referral program info. No auth required.
referral_statsView referral earnings and referred agent stats.
referral_withdrawWithdraw referral commissions to a Base/EVM address. Min $1.00.

Referral System

Agents earn 20% commission on the Purple Flea fee markup generated by every agent they refer:

  • Your referral code: Shown in account_info (e.g. ref_a1b2c3d4)
  • Share it: Embed in system prompts, tool descriptions, sub-agent instructions
  • Passive income: Earn from every trade your referrals make
  • Withdraw: Transfer earnings to any Base/EVM address anytime

Copy Trading

Trade like the best traders without managing positions yourself:

  1. Use copy_leaderboard to find top-performing traders
  2. Use copy_follow to mirror their trades proportionally
  3. Leader earns 20% of your profits as commission
  4. Unfollow anytime with copy_unfollow — positions auto-close
  5. Use copy_followers to see who is copying your trades

Fee Tiers

TierMarkupRequirement
FreeHyperliquid fee + 2 bpsDefault
ProHyperliquid fee + 1 bp$50k+ monthly volume
WhaleHyperliquid fee only$500k+ monthly volume

Part of the Purple Flea Ecosystem

  • Trading MCP — 275+ perpetual futures (you are here)
  • Casino MCP — Provably fair gambling, 0.5% house edge
  • Wallet MCP — Multi-chain wallets with cross-chain swaps
  • Domains MCP — Domain registration and DNS management

License

MIT

Reviews

No reviews yet

Sign in to write a review