Polymarket MCP Server

Trade, analyze, and manage positions on Polymarket prediction markets through AI assistants with 45 tools for market discovery, analysis, trading, portfolio management, and real-time monitoring.

May 4, 2026
GitHub starsPyPI version

Overview

The Polymarket MCP Server enables AI assistants to trade, analyze, and manage positions on Polymarket prediction markets. With 45 tools across five categories, it provides comprehensive access to market discovery, deep analysis, order execution, portfolio tracking, and real-time WebSocket monitoring — all through natural language.

Community Server:

Developed by Caio Vicentino. 462★, 106 forks, Python-based with real Polymarket API integration.

Key Features

🔍

Market Discovery

Search markets by keywords, browse trending and category-specific markets, find markets closing soon.

📊

Market Analysis

Real-time prices, orderbook depth, liquidity metrics, AI-powered opportunity analysis with BUY/SELL/HOLD recommendations.

💼

Trading

Limit and market orders, batch submissions, AI-suggested pricing, smart trade execution, and position rebalancing.

📈

Portfolio Management

Real-time position tracking, P&L calculation, risk analysis, trade history, and AI-powered portfolio optimization.

Real-time Monitoring

Live price updates via WebSocket, orderbook streaming, trade execution alerts, and market resolution notifications.

🛡️

Safety Controls

Configurable order size limits, exposure caps, liquidity validation, spread tolerance checks, and confirmation flows.

Installation

Quick Start (DEMO mode, no wallet needed)

git clone https://github.com/caiovicentino/polymarket-mcp-server.git
cd polymarket-mcp-server
./quickstart.sh

Full Production Install

git clone https://github.com/caiovicentino/polymarket-mcp-server.git
cd polymarket-mcp-server
python -m venv venv
source venv/bin/activate
pip install -e .

Configure environment:

cp .env.example .env
# Edit .env with your Polygon wallet credentials

Claude Desktop Configuration

{
  "mcpServers": {
    "polymarket": {
      "command": "/path/to/venv/bin/python",
      "args": ["-m", "polymarket_mcp.server"],
      "cwd": "/path/to/polymarket-mcp-server",
      "env": {
        "POLYGON_PRIVATE_KEY": "your_private_key",
        "POLYGON_ADDRESS": "0xYourAddress"
      }
    }
  }
}

DEMO Mode:

No wallet required. Market discovery and analysis work in read-only mode. Trading requires a Polygon wallet with private key.

Common Use Cases

  • Market Discovery: Find trending markets, search by category, browse sports and crypto predictions
  • Trading Execution: Place limit orders, execute market orders, batch submissions, and rebalance positions
  • Portfolio Analysis: Track positions, calculate P&L, analyze risk concentration, and optimize allocations
  • Real-time Monitoring: Subscribe to live price feeds, track order status, and receive market resolution alerts

Sources