About Polymarket MCP Server
Polymarket MCP Server is an MCP server published by caiovicentino in the Blockchain category: 🤖 AI-Powered MCP Server for Polymarket - Enable Claude to trade prediction markets with 45 tools, real-time monitoring, and enterprise-grade safety features. Conduid read 37 tools from its source: analyze_market_opportunity, cancel_all_orders, cancel_market_orders, cancel_order, compare_markets, create_batch_orders and 31 more. No package is published for it, so it installs from a source checkout.
The repository has 764 stars and 151 forks, is licensed MIT, and its last commit was on 25 Nov 2026. The latest release is v0.3.0 (25 Nov 2026): Changes release: v0.3.0 (c81ac99) fix(web): compare the Origin port with the request Host on the dashboard (4c0f628) ci: scan the project's dependencies in the vulnerabi… It follows v0.2.0 (30 Jul 2026), and the 3 most recent releases go back to v0.1.0 (11 Nov 2025). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include ai-trading, autonomous-trading, blockchain, defi, market-analysis and polygon.
Install
git clone https://github.com/caiovicentino/polymarket-mcp-serverTools (37)
analyze_market_opportunityAI-powered market analysis with trading recommendation, risk assessment, and confidence score.| Parameter | Type | Description |
|---|---|---|
| market_id * | string | Market ID to analyze |
cancel_all_ordersCancel all open orders across all markets. Use with caution.cancel_market_ordersCancel all open orders in a specific market.| Parameter | Type | Description |
|---|---|---|
| asset_id | string | Optional asset/token filter |
| market_id * | string | Market condition ID |
cancel_orderCancel a specific open order by ID.| Parameter | Type | Description |
|---|---|---|
| order_id * | string | Order ID to cancel |
compare_marketsCompare multiple markets side-by-side with key metrics (volume, liquidity, etc.).| Parameter | Type | Description |
|---|---|---|
| market_ids * | array | List of market IDs to compare (2-10 markets) |
create_batch_ordersSubmit multiple orders in batch. Each order is validated against safety limits. Returns results for each individual order.| Parameter | Type | Description |
|---|---|---|
| orders * | array | List of orders to submit |
create_limit_orderCreate a limit order on Polymarket. Validates order against safety limits before execution. Supports GTC, GTD, FOK, and FAK order types.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Set true to place an order that requires confirmation. Without it the order is described back to you instead of being placed. |
| expiration | integer | Unix timestamp for GTD orders (optional) |
| market_id * | string | Market condition ID |
| order_type | string | Order type |
| outcome | string | Outcome to trade, e.g. 'Yes', 'No', 'Lakers'. Defaults to 'Yes' on Yes/No markets; required for sports and other multi-outcome markets. |
| price * | number | Limit price (0.01-0.99) |
| side * | string | Order side |
| size * | number | Order size in USD |
create_market_orderExecute market order at best available price using FOK. Provides immediate execution at current market price.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Set true to place an order that requires confirmation. Without it the order is described back to you instead of being placed. |
| market_id * | string | Market condition ID |
| outcome | string | Outcome to trade, e.g. 'Yes', 'No', 'Lakers'. Defaults to 'Yes' on Yes/No markets; required for sports and other multi-outcome markets. |
| side * | string | Order side |
| size * | number | Order size in USD |
execute_smart_tradeAI-powered trade execution with natural language intent. Analyzes market and executes optimal strategy (limit, market, or split orders). Example: 'Buy YES at good price up to $100'| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Set true to place an order that requires confirmation. Without it the order is described back to you instead of being placed. |
| intent * | string | Natural language trading intent |
| market_id * | string | Market condition ID |
| max_budget * | number | Maximum budget in USD |
| outcome | string | Outcome to trade, e.g. 'Yes', 'No', 'Lakers'. Defaults to 'Yes' on Yes/No markets; required for sports and other multi-outcome markets. |
filter_markets_by_categoryFilter markets by category or tag (e.g., Politics, Sports, Crypto). Returns markets in the specified category.| Parameter | Type | Description |
|---|---|---|
| active_only | boolean | Only return active markets (default True) |
| category * | string | Category/tag to filter by |
| limit | integer | Maximum number of results (default 20) |
get_closing_soon_marketsGet markets closing within specified timeframe. Returns markets sorted by closing time.| Parameter | Type | Description |
|---|---|---|
| hours | integer | Number of hours to look ahead (default 24) |
| limit | integer | Maximum number of results (default 20) |
get_crypto_marketsGet cryptocurrency-related markets. Optionally filter by specific crypto symbol.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of results (default 20) |
| symbol | string | Specific crypto symbol (e.g., 'BTC', 'ETH') or None for all |
get_current_priceGet current bid/ask prices for a token. Returns PriceData with bid, ask, and mid prices.| Parameter | Type | Description |
|---|---|---|
| side | string | Price side to fetch (default: BOTH) |
| token_id * | string | Token ID |
get_event_marketsGet all markets for a specific event. Returns all markets belonging to the event.| Parameter | Type | Description |
|---|---|---|
| event_id | string | Event ID (alternative to slug) |
| event_slug | string | Event slug (e.g., 'presidential-election-2024') |
get_featured_marketsGet featured or promoted markets. Returns curated list of important markets.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of markets to return (default 10) |
get_liquidityGet available liquidity in USD for a market.| Parameter | Type | Description |
|---|---|---|
| market_id * | string | Market ID |
get_market_detailsGet complete market information including metadata, tokens, volume, and liquidity.| Parameter | Type | Description |
|---|---|---|
| condition_id | string | Condition ID (alternative identifier) |
| market_id | string | Market ID |
| slug | string | Market slug (alternative identifier) |
get_market_holdersGet top position holders for a market. Note: Requires authenticated access.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of top holders (default 10) |
| market_id * | string | Market ID |
get_market_volumeGet volume statistics for different timeframes (24h, 7d, 30d, all-time).| Parameter | Type | Description |
|---|---|---|
| market_id * | string | Market ID |
| timeframes | array | List of timeframes (default: ['24h', '7d', '30d']) |
get_open_ordersGet all active/open orders, optionally filtered by market.| Parameter | Type | Description |
|---|---|---|
| market_id | string | Optional market filter |
get_order_historyGet historical orders with optional filters for market and date range.| Parameter | Type | Description |
|---|---|---|
| end_date | string | End date (ISO format) |
| limit | integer | Maximum number of orders |
| market_id | string | Optional market filter |
| start_date | string | Start date (ISO format) |
get_order_statusCheck status and fill details of a specific order.| Parameter | Type | Description |
|---|---|---|
| order_id * | string | Order ID to check |
get_orderbookGet complete order book with bids and asks arrays.| Parameter | Type | Description |
|---|---|---|
| depth | integer | Number of price levels per side (default 20) |
| token_id * | string | Token ID |
get_price_historyGet historical price data (OHLC). Note: Limited availability via public API.| Parameter | Type | Description |
|---|---|---|
| end_date | string | End date (ISO format or timestamp) |
| resolution | string | Time resolution (default: 1h) |
| start_date | string | Start date (ISO format or timestamp) |
| token_id * | string | Token ID |
get_realtime_statusGet status of all real-time WebSocket subscriptions. Shows active subscriptions, connection status, event statistics, and errors. Use this to monitor the health of real-time data feeds.get_sports_marketsGet sports betting markets. Optionally filter by specific sport type.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of results (default 20) |
| sport_type | string | Specific sport (e.g., 'NFL', 'NBA', 'Soccer') or None for all |
get_spreadGet current spread (difference between bid and ask prices).| Parameter | Type | Description |
|---|---|---|
| token_id * | string | Token ID |
get_trending_marketsGet markets with highest trading volume in specified timeframe. Returns top markets sorted by volume.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of markets to return (default 10) |
| timeframe | string | Time period for volume calculation |
rebalance_positionAdjust position to target size or close position entirely. Automatically calculates required trades and validates slippage.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Set true to place an order that requires confirmation. Without it the order is described back to you instead of being placed. |
| market_id * | string | Market condition ID |
| max_slippage | number | Maximum acceptable slippage (0.02 = 2%) |
| outcome | string | Outcome to rebalance, e.g. 'Yes', 'No', 'Lakers'. Defaults to 'Yes' on Yes/No markets; required for sports and other multi-outcome markets. |
| target_size | number | Target position size in USD (null to close) |
search_marketsSearch markets by text query, slug, or keywords. Returns markets matching the search criteria.| Parameter | Type | Description |
|---|---|---|
| filters | object | Optional filters (active, closed, tags, etc.) |
| limit | integer | Maximum number of results (default 20). The search endpoint caps results per type at 50; results are flattened from matching events and truncated to this limit. |
| query * | string | Search query (market title, slug, or keywords) |
subscribe_market_pricesSubscribe to real-time price changes for one or more markets. Receives notifications whenever the price changes for subscribed markets. Useful for monitoring market movements and price action.| Parameter | Type | Description |
|---|---|---|
| callback_type | string | How to receive updates: 'notification' (MCP notification) or 'log' (log message) |
| market_ids * | array | List of market condition IDs to monitor |
subscribe_market_resolutionSubscribe to market resolution alerts. Receives notifications when specified markets are resolved (closed with final outcome). Useful for tracking when bets settle and positions can be claimed.| Parameter | Type | Description |
|---|---|---|
| callback_type | string | How to receive updates |
| market_ids * | array | List of market condition IDs to monitor for resolution |
subscribe_orderbook_updatesSubscribe to real-time orderbook updates for one or more tokens. Receives notifications with aggregated bid/ask levels whenever the orderbook changes. Useful for monitoring liquidity and best bid/ask prices.| Parameter | Type | Description |
|---|---|---|
| callback_type | string | How to receive updates |
| depth | integer | Number of price levels to include (default: 10) |
| token_ids * | array | List of token IDs to monitor orderbooks for |
subscribe_user_ordersSubscribe to real-time updates for user's orders. Receives notifications when orders are created, filled, partially filled, or cancelled. Requires CLOB authentication. Optionally filter by specific markets.| Parameter | Type | Description |
|---|---|---|
| callback_type | string | How to receive updates |
| market_ids | array | Optional list of market IDs to filter. If not provided, monitors all markets. |
subscribe_user_tradesSubscribe to real-time updates for user's trades. Receives notifications when orders are matched and trades execute. Requires CLOB authentication. Optionally filter by specific markets.| Parameter | Type | Description |
|---|---|---|
| callback_type | string | How to receive updates |
| market_ids | array | Optional list of market IDs to filter. If not provided, monitors all markets. |
suggest_order_priceAI analyzes orderbook and suggests optimal price for order. Supports aggressive (immediate), passive (patient), and mid strategies.| Parameter | Type | Description |
|---|---|---|
| market_id * | string | Market condition ID |
| outcome | string | Outcome to price, e.g. 'Yes', 'No', 'Lakers'. Defaults to 'Yes' on Yes/No markets; required for sports and other multi-outcome markets. |
| side * | string | Order side |
| size * | number | Order size in USD |
| strategy | string | Pricing strategy |
unsubscribe_realtimeUnsubscribe from a real-time data feed. Removes a subscription by ID (obtained from subscribe_* tools). Stops receiving updates for that subscription.| Parameter | Type | Description |
|---|---|---|
| subscription_id * | string | Subscription ID to remove |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 31 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiosrc/polymarket_mcp/server.py:13
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 24 callssrc/polymarket_mcp/auth/client.py:445, src/polymarket_mcp/tools/market_analysis.py:125, src/polymarket_mcp/tools/market_analysis.py:143
- Writes or deletes files
- 3 callssrc/polymarket_mcp/web/app.py:639, setup_wizard.py:763, setup_wizard.py:822
- Lockfile
- None in the repository
Pattern matches on the source text of 31 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.3K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README