Polyforge MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Polyforge MCP Serverlist my active strategies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Polyforge MCP Server
MCP (Model Context Protocol) server that lets AI assistants interact with the Polyforge prediction market trading platform.
Implements the open MCP 1.0 stdio standard — compatible with Claude Desktop, Claude Code, Cursor, Windsurf, Zed, Continue, and any MCP-compliant host.
Quick Start
npx @polyforge/mcp-serverSetup
1. Get an API Key
Generate an API key in the Polyforge web app: Settings > API Keys > Create Key.
Claude Desktop
Add to claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"polyforge": {
"command": "npx",
"args": ["@polyforge/mcp-server"],
"env": {
"POLYFORGE_API_KEY": "pf_live_your_key"
}
}
}
}Claude Code (CLI)
claude mcp add polyforge -- npx @polyforge/mcp-server
export POLYFORGE_API_KEY=pf_live_your_keyCursor
Open Cursor Settings → MCP → Add Server, or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"polyforge": {
"command": "npx",
"args": ["@polyforge/mcp-server"],
"env": {
"POLYFORGE_API_KEY": "pf_live_your_key"
}
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"polyforge": {
"command": "npx",
"args": ["@polyforge/mcp-server"],
"env": {
"POLYFORGE_API_KEY": "pf_live_your_key"
}
}
}
}Zed
Add to settings.json under context_servers:
{
"context_servers": {
"polyforge": {
"command": {
"path": "npx",
"args": ["@polyforge/mcp-server"],
"env": {
"POLYFORGE_API_KEY": "pf_live_your_key"
}
}
}
}
}Continue.dev
Add to ~/.continue/config.json under mcpServers:
{
"mcpServers": [
{
"name": "polyforge",
"command": "npx",
"args": ["@polyforge/mcp-server"],
"env": {
"POLYFORGE_API_KEY": "pf_live_your_key"
}
}
]
}Custom / Any MCP Client
Install globally and spawn:
npm install -g @polyforge/mcp-server
POLYFORGE_API_KEY=pf_live_your_key polyforge-mcpAvailable Tools (136)
Markets & Price Data (9)
Tool | Description |
| Browse prediction markets with search, category filter, pagination |
| Get market details including tokens, prices, order book depth |
| Search prediction markets by keyword |
| Historical price candles (1m/1h/1d) with optional date range |
| Minimum tick size (price increment) for a token on the CLOB |
| Current bid-ask spread for a market token |
| Current midpoint price for a market token |
| Full CLOB order book (bids and asks) for a token |
| Historical CLOB prices with configurable interval and fidelity |
Strategies (16)
Tool | Description |
| List your strategies with status filter, sorting, pagination |
| Get full strategy details including blocks, configuration, run history |
| Create a new strategy with blocks, execution mode, visibility, tags |
| Update a strategy's blocks, execution mode, visibility, tags |
| AI-generate a strategy from natural language |
| Start in live or paper (simulated) mode |
| Stop a running strategy |
| Pause a running strategy (keeps state, can resume) |
| Resume a previously paused strategy |
| Fork a strategy to create a new editable copy |
| Permanently delete a stopped strategy |
| Import a strategy from a .polyforge JSON export |
| Export strategy as a portable .polyforge JSON file |
| List available strategy templates |
| List saved version history of a strategy |
| Roll back a strategy to a previous version |
Strategy Monitoring (2)
Tool | Description |
| Poll recent execution events (cursor-based live feed) |
| Persistent audit log (execution history, parameter changes, starts/stops) |
Strategy Social (6)
Tool | Description |
| Like a public strategy |
| List comments on a public strategy |
| Post a comment on a public strategy |
| Delete one of your own comments |
| List strategies forked from a given strategy |
| Report a strategy for violating community guidelines |
Discovery & Leaderboard (3)
Tool | Description |
| Platform action catalog — all API endpoints with method, path, and parameters for runtime discovery |
| Browse public community strategies with sort and search |
| Top trader leaderboard ranked by P&L (7d/30d/allTime) |
Marketplace (8)
Tool | Description |
| Browse the Strategy Marketplace (sort, tag filter, pagination) |
| Full listing details including reviews and performance stats |
| Purchase a marketplace strategy (creates a private fork) |
| Publish your strategy to the marketplace |
| Update title, priceUsdc, description, tags, or status of your listing |
| Rate and review a purchased strategy (1–5 stars) |
| List your published marketplace strategies with sales count |
| List marketplace strategies you have purchased |
Orders & Execution (13)
Tool | Description |
| Place a buy/sell order (GTC/FOK/GTD/FAK/POST_ONLY) |
| Cancel a pending or live order |
| List recent orders with status, strategy, market, date filters |
| Advanced execution: TWAP, DCA, BRACKET, or OCO |
| List smart orders with execution progress |
| Cancel a smart order and all child orders |
| Place 1–15 orders in a single batch |
| Cancel 1–3000 orders in bulk |
| List take-profit, stop-loss, trailing stop orders |
| Create a conditional order (TP/SL/trailing/limit/pegged) |
| Get details of a specific conditional order |
| Cancel a pending conditional order |
| Scan markets for merge arbitrage (YES+NO < $1.00) |
Portfolio & Positions (10)
Tool | Description |
| Current positions, unrealized P&L, account summary |
| P&L chart data and win-rate for a time period |
| AI-generated portfolio review and optimization suggestions |
| Close an open position at market price |
| Split USDC.e collateral into YES and NO tokens |
| Merge YES and NO tokens back into USDC.e |
| Redeem winning shares after market resolution |
| Polymarket-native portfolio (positions, balances, exposure) |
| Polymarket-native earnings (realized PnL, redeemed winnings) |
| Polymarket-native activity feed (trades, redemptions) |
Copy Trading (8)
Tool | Description |
| List your copy trading configurations |
| Create a new config to mirror trades from a target wallet |
| Get details of a specific copy config |
| Update sizing mode, risk limits, or price offset |
| Pause — no new trades copied until resumed |
| Resume a paused copy config |
| Permanently delete a copy config |
| List all trades executed under a copy config |
Whale Intelligence (6)
Tool | Description |
| Recent large trades (whale activity) |
| Top whales ranked by volume, P&L, win rate, or trade count |
| Full trading profile for a specific whale wallet |
| Follow a whale to receive their trades in your feed |
| Unfollow a whale wallet |
| List all whale wallets you are following |
News & Signals (4)
Tool | Description |
| AI-generated trading signals derived from news |
| Aggregated news sentiment (BULLISH/BEARISH/NEUTRAL) |
| List recent news articles relevant to prediction markets |
| Get full content of a specific news article |
Scoring & Badges (7)
Tool | Description |
| Your trader edge score, rank, and badges |
| Prediction accuracy (Brier score, calibration, win rate) |
| Accuracy leaderboard ranked by win-rate |
| Top user scores leaderboard |
| Badges earned by you |
| Score and trading stats for a specific user |
| Badges earned by a specific user |
Backtesting (4)
Tool | Description |
| List historical backtests with status filter |
| Full results and candle data for a specific backtest |
| Start a new backtest over a historical date range |
| Simulated order log from a completed backtest |
Alerts (3)
Tool | Description |
| List your configured price alerts |
| Create a price alert (triggers when price crosses threshold) |
| Delete an existing price alert |
Watchlist (4)
Tool | Description |
| List watched markets with prices, volume, and price delta |
| Add a market to your watchlist |
| Remove a market from your watchlist |
| Check if a specific market is on your watchlist |
Webhooks (4)
Tool | Description |
| List your registered webhook endpoints |
| Register a webhook for real-time event notifications |
| Delete a registered webhook |
| Send a test event payload to verify delivery |
Rewards & Rebates (10)
Tool | Description |
| List markets eligible for liquidity rewards |
| Reward details for a specific market |
| Liquidity reward data for a market (reward rate, total, remaining, max spread, min size) |
| Polymarket deep-link URL for sponsoring a market's liquidity rewards |
| Markets you have sponsored for liquidity rewards |
| Your accrued liquidity rewards |
| Total accumulated rewards with date breakdown |
| Reward allocation percentages across markets |
| Rewards broken down by individual market |
| Your trading rebates |
Paper Trading (2)
Tool | Description |
| Paper trading account summary (virtual balance, P&L, positions) |
| Reset paper account to initial virtual balance |
Risk Management (3)
Tool | Description |
| Current drawdown circuit-breaker settings |
| Update drawdown threshold, lookback window, enable/disable |
| Reset tripped circuit breaker to allow new orders |
API Keys (3)
Tool | Description |
| List all API keys associated with your account |
| Create a new API key with scoped permissions |
| Permanently revoke an API key |
Liquidity (1)
Tool | Description |
| Provide liquidity by depositing USDC.e on a market token |
AI (1)
Tool | Description |
| Natural language questions about your account, strategies, or markets |
Batch (1)
Tool | Description |
| Execute multiple API requests in a single call (max 10) |
Sports Markets (9)
Tool | Description |
| List sports categories with series tickers and live counts |
| Browse sports prediction markets with category, series, event, live-only, and sort filters |
| List sports events filtered by category, series, or status ( |
| Get a single sports event with its associated markets |
| List in-game milestones with optional event-ticker and status filters |
| Get live data payload (score, clock, situational data) for a milestone |
| List combo (parlay) collections with optional series-ticker filter |
| Fetch a combo collection by ticker (server currently ignores ticker — wrapped as-is) |
| Look up the combo market matching a set of selected outcomes within a collection |
Strategy Execution Watching
get_strategy_events lets Claude poll execution events from a running strategy. MCP tools are request-response only, so this uses a cursor-based approach:
# First call — get the latest events
get_strategy_events(id="strat-uuid", after_timestamp=0, limit=20)
→ { events: [...], nextAfterTimestamp: 1711720500000 }
# Follow-up call — only events newer than the cursor
get_strategy_events(id="strat-uuid", after_timestamp=1711720500000, limit=20)
→ { events: [...], nextAfterTimestamp: 1711720510000 }For continuous streaming, use the TypeScript, Python, or Rust SDK's watchStrategy/watch_strategy method instead.
Environment Variables
Variable | Required | Default | Description |
| No |
| Polyforge API base URL |
| Yes | — | API key from Settings > API Keys |
Example Usage
Once configured, you can ask Claude:
"Show me the top prediction markets about crypto"
"Create a strategy that buys YES on markets where the price drops below 30 cents"
"What's my portfolio P&L this week?"
"Start my momentum strategy in paper mode"
"Show me whale trades over $50,000"
"What events have fired on my running strategy in the last minute?"
"Buy 10 YES shares on this market at 0.65"
"Set up a DCA smart order to buy $500 over 5 slices every hour"
"Show me arbitrage opportunities with at least 2% margin"
"Copy trades from this whale wallet with a $100 fixed amount per trade"
"Run a backtest on my momentum strategy from Jan to March"
"What are my liquidity rewards this month?"
"Show the full order book for this token"
Development
git clone https://github.com/F4CTE/polyforge-mcp.git
cd polyforge-mcp
pnpm install
pnpm buildTest locally:
POLYFORGE_API_KEY=pf_test_key pnpm startLicense
Apache 2.0 — see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/F4CTE/polyforge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server