polymarket-trader-mcp
Polymarket MCP Server
MCP server for trading, analyzing, and automating Polymarket prediction markets through Claude Code or any MCP-compatible client.
Features
Direct Trading — Buy and sell on any Polymarket market with market or limit orders
Market Search — Find markets by keyword, category, or end date
Copy Trading — Watch top traders and automatically copy their trades
Smart Money Flow — Detect when multiple top traders converge on the same market
Backtest — Simulate copying any trader's historical trades before committing capital
Conviction Scoring — 0-100 score based on win rate, consistency, experience, and diversity
Market Quality Filter — Auto-skip illiquid markets based on spread, depth, and price range
Stop-Loss / Take-Profit — Set automated exit rules on any position
Auto-Rebalance — Remove underperforming traders from your watchlist
Price History — Historical price data with sparkline charts
34 MCP Tools — Full control via natural language through Claude Code
Quick Start
Prerequisites
Node.js 18+
Claude Code CLI (or any MCP client)
Installation
npm install -g polymarket-trader-mcpOr add to Claude Code config (~/.claude/settings.json):
{
"mcpServers": {
"polymarket": {
"command": "npx",
"args": ["polymarket-trader-mcp"]
}
}
}Configuration
Copy .env.example to .env and configure:
cp .env.example .envVariable | Required | Default | Description |
| No |
|
|
| No |
| Max daily spend in USDC |
| No |
| Min trade size to copy ($) |
| Live only | - | Polymarket wallet private key |
| Live only | - | CLOB API key |
| Live only | - | CLOB API secret |
| Live only | - | CLOB API passphrase |
| Pro | - | Marketplace license key |
Tools
Discovery
Tool | Description |
| Search markets by keyword (bitcoin, election, UFC...) |
| Find top traders by PnL and volume |
| Find markets by end date and category |
| Find WTA tennis markets with stink bid prices |
| Smart money signals — multiple top traders buying same market |
Trading
Tool | Description |
| Buy shares on any market — direct trading |
| Sell an open position |
| Place limit orders at discount |
| Cancel all open orders |
| Switch from preview to live mode |
Copy Trading
Tool | Description |
| Add/remove traders from watchlist |
| Start copy trading loop |
| Stop copy trading loop |
| Remove underperforming traders |
Analysis
Tool | Description |
| Detailed trader profile with win rate and P&L |
| Conviction score (0-100) across 5 dimensions |
| Simulate copying past trades |
| Market quality check (spread, depth) |
| Live bid/ask/spread prices |
| Historical prices with sparkline (1h-1m) |
Portfolio
Tool | Description |
| Account balance, budget, and P&L summary |
| Multi-wallet overview with P&L per trader |
| Open/closed positions |
| Manually close a position |
| Set stop-loss and take-profit levels |
| Check positions for resolution |
| Market watchlist with price alerts |
Utilities
Tool | Description |
| Terminal-formatted dashboard |
| Trade history with filters |
| Update bot settings |
| Show watched wallets |
| Log agent cycle for dashboard tracking |
Free vs Pro
Feature | Free | Pro |
Search & discover markets | Full | Full |
Buy / sell (preview mode) | Full | Full |
Buy / sell (live mode) | - | Full |
Price & market quality | Full | Full |
Price history | Full | Full |
Discover traders | 1 page | Full |
Watch wallets | 3 max | Unlimited |
Analyze trader (basic) | Full | Full |
Score trader | - | Full |
Backtest trader | - | Full |
Smart money flow | - | Full |
Copy trading monitor | - | Full |
Portfolio overview | - | Full |
Market watchlist & alerts | - | Full |
Stop-loss / take-profit | - | Full |
Rebalance | - | Full |
Trade history | - | Full |
Get a Pro license at mcp-marketplace.io.
Development
git clone https://github.com/demwick/polymarket-trader-mcp.git
cd polymarket-trader-mcp
npm install
npm run build
npm test # 200+ testsLicense
MIT
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/demwick/polymarket-trader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server