MCP Hub
Back to servers

polymarket-trader-mcp

Trade, analyze, and automate Polymarket prediction markets via AI. 34 tools for direct trading, smart money flow, copy trading, backtest, and portfolio management.

glama
Stars
1
Forks
1
Updated
Apr 9, 2026
Validated
May 11, 2026

Polymarket Trader MCP Server

MCP Marketplace Node.js TypeScript MCP Protocol License: MIT Tests Tools polymarket-trader-mcp MCP server

Trade, analyze, and automate Polymarket prediction markets through AI.

The most comprehensive MCP server for Polymarket — 48 tools spanning direct trading, market discovery, smart money tracking, copy trading, backtesting, risk management, and portfolio optimization. Works with Claude Code, Cursor, or any MCP-compatible client.


Tool Overview

CategoryCountHighlights
Discovery9Search, trending, featured, events, related markets, smart money flow
Analysis8AI opportunity scoring, conviction rating, price history, market quality, top holders, comparison
Trading8Buy, sell, batch orders, limit orders, order management, safety limits
Copy Trading5Watch traders, auto-monitor, auto-rebalance, backtest
Portfolio10Positions, P&L, balance, risk assessment, SL/TP, optimization, market alerts
Utilities8Dashboard, config, trade history, watchlists, agent logging

Quick Start

One-Line Install

curl -fsSL https://raw.githubusercontent.com/demwick/polymarket-trader-mcp/main/install.sh | bash

npm Install

npm install -g polymarket-trader-mcp

Docker

docker compose up

Claude Code Config

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "polymarket": {
      "command": "npx",
      "args": ["polymarket-trader-mcp"]
    }
  }
}

Usage Examples

Just talk naturally to your AI assistant:

"What are the trending markets today?"

"Search for bitcoin prediction markets"

"Buy $5 on this market"

"Score this trader — should I copy them?"

"Backtest this trader with $10 per trade"

"Show smart money flow — what are the top traders buying?"

"Set stop-loss at 0.30 on my BTC position"

"Optimize my portfolio with a balanced strategy"

"Scan for arbitrage opportunities"

"Compare these two markets side by side"


All 48 Tools

Discovery

ToolDescription
search_marketsSearch markets by keyword (bitcoin, election, UFC...)
discover_tradersFind top traders by PnL and volume
discover_marketsFind markets by end date and category
trending_marketsTop markets by 24h/7d/30d volume
featured_marketsMost liquid markets by category (politics, sports, crypto...)
discover_wtaWTA tennis markets with stink bid prices
discover_flowSmart money signals — multiple top traders buying same market
find_relatedFind markets related to a topic or market
get_market_eventsBrowse all markets under an event

Analysis

ToolDescription
analyze_opportunityAI-powered BUY/SELL/HOLD recommendation
analyze_traderDetailed trader profile, win rate, P&L
score_traderConviction score (0-100) across 5 dimensions
check_marketMarket quality — spread, depth, price range
get_priceLive bid/ask/spread prices
get_price_historyHistorical prices with sparkline (1h to 1m)
get_top_holdersBiggest position holders in a market
compare_marketsSide-by-side comparison of 2-5 markets

Trading

ToolDescription
buyBuy shares on any market
sellSell an open position
batch_orderExecute up to 10 orders at once
place_stink_bidPlace limit orders at discount
cancel_ordersCancel all open orders
get_open_ordersView pending limit orders
get_order_statusCheck status of a specific order
go_liveSwitch from preview to live mode

Copy Trading

ToolDescription
watch_walletAdd/remove traders from watchlist
start_monitorStart automatic copy trading loop
stop_monitorStop monitoring
rebalanceRemove underperforming traders
backtest_traderSimulate copying a trader's past trades

Portfolio & Risk

ToolDescription
get_balanceAccount balance, budget, and P&L
get_portfolioMulti-wallet overview with P&L per trader
get_positionsOpen/closed positions
close_positionManually close a position
set_exit_rulesSet stop-loss and take-profit levels
check_exitsCheck positions for resolution
assess_riskPortfolio risk scoring and warnings
optimize_portfolioAI-powered optimization (conservative/balanced/aggressive)
watch_marketMarket watchlist with price alerts
detect_arbitrageFind YES+NO price discrepancies

Configuration

ToolDescription
set_configUpdate bot settings
set_safety_limitsMax order size, exposure cap, spread tolerance
get_dashboardTerminal-formatted dashboard
get_trade_historyTrade history with filters
list_watchlistShow watched wallets
log_cycleLog agent cycle for dashboard
get_trader_positionsView a trader's open positions
discover_wtaWTA tennis market discovery

Architecture

Claude Code / Cursor / AI Client
        |
        | MCP Protocol (stdio)
        v
+------------------+
|  MCP Server      |  48 tools registered
|  (index.ts)      |
+--------+---------+
         |
    +----+----+
    |         |
 Tools    Services
    |         |
    v         v
+-------+ +------------+
| Zod   | | Backtester |
| Input | | Scorer     |
| Valid. | | SmartFlow  |
+-------+ | Filter     |
          | Tracker    |
          | Executor   |
          +-----+------+
                |
        +-------+-------+
        |       |       |
     Data    Gamma    CLOB
     API      API     API

Configuration

VariableRequiredDefaultDescription
COPY_MODENopreviewpreview (simulated) or live (real orders)
DAILY_BUDGETNo20Max daily spend in USDC
MIN_CONVICTIONNo3Min trade size to copy ($)
POLY_PRIVATE_KEYLive only-Polymarket wallet private key
POLY_API_KEYLive only-CLOB API key
POLY_API_SECRETLive only-CLOB API secret
POLY_API_PASSPHRASELive only-CLOB API passphrase

Safety Features

  • Configurable order size limits
  • Total exposure caps
  • Per-market position limits
  • Minimum liquidity requirements
  • Maximum spread tolerance
  • Stop-loss / take-profit automation
  • Preview mode (default) — no real money

Development

git clone https://github.com/demwick/polymarket-trader-mcp.git
cd polymarket-trader-mcp
npm install
npm run build
npm test         # 200+ tests

License

MIT - see LICENSE

Reviews

No reviews yet

Sign in to write a review