Skip to main content
Glama

Polymarket MCP Server

VISUAL_INSTALL_GUIDE.mdβ€’25 kB
# πŸ“– Polymarket MCP Server - Visual Installation Guide Complete step-by-step installation guide with diagrams and troubleshooting. --- ## πŸ“‹ Table of Contents 1. [Prerequisites](#prerequisites) 2. [Installation Methods](#installation-methods) 3. [Method 1: GUI Wizard (Easiest)](#method-1-gui-wizard-easiest) 4. [Method 2: Automated Script](#method-2-automated-script) 5. [Method 3: Docker](#method-3-docker) 6. [Method 4: Manual Installation](#method-4-manual-installation) 7. [Wallet Setup Guide](#wallet-setup-guide) 8. [Claude Desktop Integration](#claude-desktop-integration) 9. [Testing Your Setup](#testing-your-setup) 10. [Troubleshooting](#troubleshooting) --- ## Prerequisites ### Required Software ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ REQUIREMENTS β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ βœ“ Python 3.10 or higher β”‚ β”‚ Download: https://python.org/downloads β”‚ β”‚ β”‚ β”‚ βœ“ Claude Desktop β”‚ β”‚ Download: https://claude.ai/download β”‚ β”‚ β”‚ β”‚ βœ“ Git (optional, for cloning) β”‚ β”‚ Download: https://git-scm.com/downloads β”‚ β”‚ β”‚ β”‚ βœ“ Polygon Wallet (for trading) β”‚ β”‚ - MetaMask or similar β”‚ β”‚ - Must have USDC on Polygon network β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### System Requirements - Operating System: macOS, Windows 10+, or Linux - RAM: 2GB minimum - Disk Space: 500MB for installation - Internet connection --- ## Installation Methods ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ CHOOSE YOUR INSTALLATION METHOD β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ 1. GUI Wizard (RECOMMENDED) β”‚ β”‚ ⏱️ 5 minutes β”‚ ⭐ Easiest β”‚ 🎯 Best for beginners β”‚ β”‚ β”‚ β”‚ 2. Automated Script β”‚ β”‚ ⏱️ 3 minutes β”‚ ⭐ Easy β”‚ 🎯 For terminal users β”‚ β”‚ β”‚ β”‚ 3. Docker β”‚ β”‚ ⏱️ 2 minutes β”‚ ⭐ Medium β”‚ 🎯 For Docker users β”‚ β”‚ β”‚ β”‚ 4. Manual Installation β”‚ β”‚ ⏱️ 10 minutes β”‚ ⭐ Advanced β”‚ 🎯 For customization β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## Method 1: GUI Wizard (Easiest) ### Step 1: Download the Project ```bash # Clone the repository git clone https://github.com/caiovicentino/polymarket-mcp-server.git cd polymarket-mcp-server ``` Or download ZIP from GitHub and extract. ### Step 2: Install Dependencies ```bash # Create virtual environment python -m venv venv # Activate it source venv/bin/activate # macOS/Linux # OR venv\Scripts\activate # Windows # Install the package pip install -e . ``` ### Step 3: Run Setup Wizard ```bash python setup_wizard.py ``` ### Step 4: Follow the Wizard ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ SETUP WIZARD FLOW β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Welcome β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Choose Mode β”‚ ◄─── Demo or Full? β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Wallet β”‚ ◄─── Full mode only β”‚ Config β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Safety β”‚ ◄─── Set limits β”‚ Limits β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Claude β”‚ ◄─── Auto-configure β”‚ Desktop β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Finish! β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### Screenshots (Placeholders) **Welcome Screen:** ``` [Screenshot: Welcome screen with project logo and start button] ``` **Wallet Configuration:** ``` [Screenshot: Wallet config screen with masked private key input] ``` **Safety Limits:** ``` [Screenshot: Sliders for configuring risk limits] ``` **Success:** ``` [Screenshot: Completion screen with restart reminder] ``` --- ## Method 2: Automated Script ### For macOS/Linux: ```bash # Clone repository git clone https://github.com/caiovicentino/polymarket-mcp-server.git cd polymarket-mcp-server # Run install script chmod +x install.sh ./install.sh ``` The script will: 1. Check Python version 2. Create virtual environment 3. Install dependencies 4. Guide you through configuration 5. Set up Claude Desktop integration ### For Windows: ```powershell # Clone repository git clone https://github.com/caiovicentino/polymarket-mcp-server.git cd polymarket-mcp-server # Run install script .\install.ps1 ``` --- ## Method 3: Docker ### Quick Start with Docker Compose ```bash # Clone repository git clone https://github.com/caiovicentino/polymarket-mcp-server.git cd polymarket-mcp-server # Copy environment template cp .env.example .env # Edit .env with your credentials nano .env # or use any text editor # Start with Docker Compose docker-compose up -d ``` ### Docker Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ DOCKER SETUP β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Claude β”‚ β”‚ Polymarket β”‚ β”‚ β”‚ β”‚ Desktop │◄───────── MCP β”‚ β”‚ β”‚ β”‚ β”‚ stdio β”‚ Container β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β–Ό β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Polymarket β”‚ β”‚ β”‚ β”‚ API β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## Method 4: Manual Installation ### Step 1: Clone Repository ```bash git clone https://github.com/caiovicentino/polymarket-mcp-server.git cd polymarket-mcp-server ``` ### Step 2: Create Virtual Environment ```bash python -m venv venv source venv/bin/activate # macOS/Linux # OR venv\Scripts\activate # Windows ``` ### Step 3: Install Dependencies ```bash pip install -e . ``` ### Step 4: Configure Environment ```bash # Copy template cp .env.example .env # Edit with your values nano .env ``` **Required variables:** ```env POLYGON_PRIVATE_KEY=your_key_here_without_0x POLYGON_ADDRESS=0xYourAddressHere ``` **Optional (recommended):** ```env MAX_ORDER_SIZE_USD=1000 MAX_TOTAL_EXPOSURE_USD=5000 MAX_POSITION_SIZE_PER_MARKET=2000 ``` ### Step 5: Configure Claude Desktop Edit Claude Desktop config file: **macOS:** ```bash nano ~/Library/Application\ Support/Claude/claude_desktop_config.json ``` **Windows:** ```powershell notepad %APPDATA%\Claude\claude_desktop_config.json ``` **Linux:** ```bash nano ~/.config/Claude/claude_desktop_config.json ``` Add configuration: ```json { "mcpServers": { "polymarket": { "command": "/path/to/your/venv/bin/python", "args": ["-m", "polymarket_mcp.server"], "cwd": "/path/to/polymarket-mcp-server", "env": { "POLYGON_PRIVATE_KEY": "your_key", "POLYGON_ADDRESS": "0xYourAddress" } } } } ``` ### Step 6: Restart Claude Desktop Close and reopen Claude Desktop to load the MCP server. --- ## Wallet Setup Guide ### Option 1: MetaMask ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ METAMASK WALLET SETUP β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ 1. Install MetaMask β”‚ β”‚ https://metamask.io β”‚ β”‚ β”‚ β”‚ 2. Create or Import Wallet β”‚ β”‚ β”‚ β”‚ 3. Switch to Polygon Network β”‚ β”‚ Network Name: Polygon Mainnet β”‚ β”‚ RPC URL: https://polygon-rpc.com β”‚ β”‚ Chain ID: 137 β”‚ β”‚ Symbol: MATIC β”‚ β”‚ β”‚ β”‚ 4. Add USDC Token β”‚ β”‚ Contract: 0x2791Bca1f2de4661ED88A30C99A... β”‚ β”‚ β”‚ β”‚ 5. Get USDC on Polygon β”‚ β”‚ - Bridge from Ethereum β”‚ β”‚ - Buy on exchange (Binance, Coinbase) β”‚ β”‚ - Use fiat on-ramp β”‚ β”‚ β”‚ β”‚ 6. Export Private Key β”‚ β”‚ ⚠️ Keep this SAFE and PRIVATE! β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### Exporting Private Key from MetaMask ``` Step 1: Click on account icon (top right) Step 2: Account Details Step 3: Export Private Key Step 4: Enter password Step 5: Copy the key (without 0x prefix) ``` **Security Warning:** ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ ⚠️ CRITICAL SECURITY WARNINGS β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ βœ— NEVER share your private key β”‚ β”‚ βœ— NEVER commit it to Git β”‚ β”‚ βœ— NEVER store it in cloud storage β”‚ β”‚ βœ— NEVER send it in messages β”‚ β”‚ β”‚ β”‚ βœ“ Store in .env file (gitignored) β”‚ β”‚ βœ“ Use environment variables β”‚ β”‚ βœ“ Consider using a dedicated wallet β”‚ β”‚ βœ“ Start with small amounts β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## Claude Desktop Integration ### Configuration File Locations ``` Operating System β”‚ Config File Location ─────────────────┼────────────────────────────────────────────── macOS β”‚ ~/Library/Application Support/Claude/ β”‚ claude_desktop_config.json ─────────────────┼────────────────────────────────────────────── Windows β”‚ %APPDATA%\Claude\ β”‚ claude_desktop_config.json ─────────────────┼────────────────────────────────────────────── Linux β”‚ ~/.config/Claude/ β”‚ claude_desktop_config.json ``` ### Configuration Example ```json { "mcpServers": { "polymarket": { "command": "/Users/you/polymarket-mcp/venv/bin/python", "args": ["-m", "polymarket_mcp.server"], "cwd": "/Users/you/polymarket-mcp", "env": { "POLYGON_PRIVATE_KEY": "abc123...", "POLYGON_ADDRESS": "0x123...", "MAX_ORDER_SIZE_USD": "1000", "MAX_TOTAL_EXPOSURE_USD": "5000" } } } } ``` ### Integration Flow ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ CLAUDE DESKTOP INTEGRATION β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Claude β”‚ β”‚ Desktop β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ Loads config.json β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ MCP Server β”‚ β”‚ (Python) β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ Connects to β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Polymarket β”‚ β”‚ API β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## Testing Your Setup ### Quick Test Open Claude Desktop and try: ``` "Show me the top 5 trending markets on Polymarket" ``` Expected response: ``` βœ“ Server connected βœ“ API accessible βœ“ Returns market data ``` ### Full Test Suite ```bash # Activate virtual environment source venv/bin/activate # Run tests pytest tests/ -v # Run demo python demo_mcp_tools.py ``` ### Test Checklist ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ TEST CHECKLIST β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ β–‘ Python version 3.10+ β”‚ β”‚ β–‘ Virtual environment activated β”‚ β”‚ β–‘ Dependencies installed β”‚ β”‚ β–‘ .env file configured β”‚ β”‚ β–‘ Claude Desktop config updated β”‚ β”‚ β–‘ Claude Desktop restarted β”‚ β”‚ β–‘ MCP server appears in Claude β”‚ β”‚ β–‘ Can fetch market data β”‚ β”‚ β–‘ (Full mode) Wallet validated β”‚ β”‚ β–‘ (Full mode) Can create test order β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## Troubleshooting ### Common Errors and Solutions #### Error: "ModuleNotFoundError: No module named 'polymarket_mcp'" **Solution:** ```bash # Make sure you installed the package pip install -e . # Verify installation pip list | grep polymarket ``` --- #### Error: "POLYGON_PRIVATE_KEY is required" **Solution:** ```bash # Check .env file exists ls -la .env # Check it has the key cat .env | grep POLYGON_PRIVATE_KEY # Make sure no spaces around = POLYGON_PRIVATE_KEY=abc123 # βœ“ Correct POLYGON_PRIVATE_KEY = abc123 # βœ— Wrong ``` --- #### Error: "Private key must be 64 hex characters" **Solution:** ``` 1. Remove 0x prefix if present Wrong: 0xabc123... Right: abc123... 2. Check length is exactly 64 characters 3. Check only hex characters (0-9, a-f) ``` --- #### Error: "Claude Desktop not detecting MCP server" **Solution Flowchart:** ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Server not detected? β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Is config.json valid? β”‚ β”‚ Use JSONLint.com β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ Yes β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Is Python path correct? β”‚ β”‚ Check with: which pythonβ”‚ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ Yes β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Did you restart Claude? β”‚ β”‚ Restart = Quit + Open β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ Yes β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Check Claude logs β”‚ β”‚ See log locations below β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` **Claude Desktop Log Locations:** - macOS: `~/Library/Logs/Claude/` - Windows: `%APPDATA%\Claude\logs\` - Linux: `~/.config/Claude/logs/` --- #### Error: "Rate limit exceeded" **Solution:** ``` The server has built-in rate limiting that respects Polymarket's API limits. If you see this error: 1. Wait 60 seconds 2. Reduce request frequency 3. Check if you're making parallel requests ``` --- #### Error: "Insufficient funds" **Solution:** ``` 1. Check USDC balance on Polygon: https://polygonscan.com/address/YOUR_ADDRESS 2. Get more USDC: - Bridge from Ethereum - Buy on exchange - Use fiat on-ramp 3. Check you're on Polygon network (Chain ID 137) ``` --- ### Installation Decision Tree ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ INSTALLATION TROUBLESHOOTER β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Start here β”‚ β–Ό Are you on macOS/Linux/Windows? β”‚ β”œβ”€ macOS/Linux ──► Use install.sh β”‚ OR GUI wizard β”‚ └─ Windows ──────► Use install.ps1 OR GUI wizard β”‚ β–Ό Do you have Python 3.10+? β”‚ β”œβ”€ Yes ──────────► Continue β”‚ └─ No ───────────► Install Python https://python.org β”‚ β–Ό Do you have a Polygon wallet? β”‚ β”œβ”€ Yes ──────────► Full installation β”‚ └─ No ───────────► Demo mode OR Create wallet first β”‚ β–Ό Are you comfortable with terminal? β”‚ β”œβ”€ Yes ──────────► Use automated script β”‚ └─ No ───────────► Use GUI wizard β”‚ β–Ό Installation complete! ``` --- ## Video Tutorials ### Coming Soon - πŸŽ₯ Complete installation walkthrough (10 minutes) - πŸŽ₯ Wallet setup guide (5 minutes) - πŸŽ₯ First trade tutorial (8 minutes) - πŸŽ₯ Safety configuration best practices (6 minutes) **Subscribe for updates:** - YouTube: [Placeholder] - Twitter: @caiovicentino --- ## Getting Help ### Support Channels ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ GET HELP β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ πŸ“– Documentation β”‚ β”‚ - README.md β”‚ β”‚ - FAQ.md β”‚ β”‚ - TOOLS_REFERENCE.md β”‚ β”‚ β”‚ β”‚ πŸ’¬ Community β”‚ β”‚ - GitHub Discussions β”‚ β”‚ - Telegram (Renda Cripto) β”‚ β”‚ - Discord (Yield Hacker) β”‚ β”‚ β”‚ β”‚ πŸ› Bug Reports β”‚ β”‚ - GitHub Issues β”‚ β”‚ - Include: OS, Python version, error log β”‚ β”‚ β”‚ β”‚ βœ‰οΈ Direct Support β”‚ β”‚ - GitHub: @caiovicentino β”‚ β”‚ - Email: support@example.com β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## Next Steps After successful installation: 1. **Read the FAQ** - Common questions answered 2. **Review TOOLS_REFERENCE.md** - Learn all 45 tools 3. **Check USAGE_EXAMPLES.py** - See example code 4. **Join the community** - Connect with other users 5. **Start small** - Test with small amounts first 6. **Provide feedback** - Help us improve! --- ## Quick Reference ### Essential Commands ```bash # Start virtual environment source venv/bin/activate # Update package pip install -e . --upgrade # Run tests pytest # Check configuration python -c "from polymarket_mcp.config import load_config; print(load_config().to_dict())" # View logs tail -f ~/.config/Claude/logs/mcp*.log ``` ### Important Files ``` polymarket-mcp/ β”œβ”€β”€ .env # Your configuration β”œβ”€β”€ setup_wizard.py # GUI setup tool β”œβ”€β”€ README.md # Main documentation β”œβ”€β”€ FAQ.md # Common questions β”œβ”€β”€ VISUAL_INSTALL_GUIDE.md # This file └── src/ └── polymarket_mcp/ β”œβ”€β”€ server.py # MCP server └── config.py # Configuration ``` --- **Made with ❀️ by [Caio Vicentino](https://github.com/caiovicentino)** *Ready to trade prediction markets with AI!* πŸš€

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/caiovicentino/polymarket-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server