MCP Hub
Back to servers

Polymarket MCP Server

A robust MCP server that enables AI assistants to query Polymarket prediction markets for real-time odds, historical price data, order books, and trending markets across diverse categories like politics and crypto.

Stars
6
Tools
9
Updated
Dec 6, 2025
Validated
Jan 29, 2026

Polymarket MCP Server

MCP License: MIT Node.js

A powerful MCP (Model Context Protocol) server for querying Polymarket prediction markets. Access real-time odds, market data, price history, and order books directly from your AI assistant.

🎯 What is This?

This MCP server enables AI assistants like Claude, Cursor, and other MCP-compatible tools to interact with Polymarket's prediction markets API. Query live market odds, track price movements, analyze order books, and explore markets by category — all through natural language.

✨ Features

ToolDescription
list_marketsList and paginate through all Polymarket prediction markets
search_marketsSearch markets by keyword (questions & descriptions)
get_marketGet detailed information about a specific market by ID
get_eventFetch event details with all sub-markets grouped together
get_events_by_categoryFilter markets by category (politics, crypto, sports, etc.)
list_categoriesList all available market categories
get_trending_marketsDiscover hot markets by volume or price movement
get_price_historyHistorical price/odds data for any market
get_order_bookReal-time order book depth (bids & asks)

📦 Installation

# Clone the repository
git clone https://github.com/yourusername/poly-mcp.git
cd poly-mcp

# Install dependencies
npm install

# Build the project
npm run build

🚀 Usage

Running the Server

# Production mode
npm start

# Development mode (with hot reload)
npm run dev

# MCP Inspector (for testing)
npm run client

Adding to Cursor IDE

Add this to your Cursor MCP settings file (~/.cursor/mcp.json):

{
  "mcpServers": {
    "polymarket": {
      "command": "node",
      "args": ["/absolute/path/to/poly-mcp/dist/index.js"]
    }
  }
}

Adding to Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "polymarket": {
      "command": "node",
      "args": ["/absolute/path/to/poly-mcp/dist/index.js"]
    }
  }
}

🛠️ Tools Reference

list_markets

List prediction markets from Polymarket with pagination support.

ParameterTypeDefaultDescription
limitnumber10Number of markets (1-100)
activeboolean-Filter by active status
closedboolean-Filter by closed status
offsetnumber0Pagination offset

Example: "List 20 active markets on Polymarket"


search_markets

Search for markets by keyword matching questions and descriptions.

ParameterTypeDefaultDescription
querystringrequiredSearch query
limitnumber10Number of results (1-50)
activeboolean-Filter by active status
closedboolean-Filter by closed status

Example: "Search for Bitcoin prediction markets"


get_market

Get detailed information about a specific market.

ParameterTypeDescription
market_idstringThe market ID to fetch

Example: "Get details for market ID 0x..."


get_event

Fetch an event with all its sub-markets. Events group related markets together.

ParameterTypeDescription
slugstringEvent slug (e.g., presidential-election-winner-2024)
event_idstringEvent ID
list_eventsbooleanList available events instead
limitnumberNumber of events to list (default: 10)

Example: "Show me the presidential election event on Polymarket"


get_events_by_category

Filter prediction markets by category for focused exploration.

ParameterTypeDefaultDescription
categoryenumrequiredCategory filter (see below)
limitnumber10Number of events (1-50)
activebooleantrueFilter by active status
closedbooleanfalseFilter by closed status

Available Categories:

  • politics — Elections, government, political events
  • crypto — Cryptocurrency, blockchain, DeFi
  • sports — NFL, NBA, Soccer, and more
  • world — International relations, geopolitics
  • entertainment — Music, TV, celebrities
  • economy — GDP, markets, business
  • science — Technology, AI, space, climate
  • legal — Court cases, laws
  • racing — F1, NASCAR, motorsports

Example: "Show me politics markets on Polymarket"


list_categories

List all available categories for filtering markets.

Example: "What categories are available on Polymarket?"


get_trending_markets

Discover trending markets sorted by activity metrics.

ParameterTypeDefaultDescription
sort_byenumvolume24hrSort metric
limitnumber10Number of markets (1-50)

Sort Options:

  • volume24hr — 24-hour trading volume
  • volume1wk — Weekly trading volume
  • oneDayPriceChange — 24-hour price movement
  • oneWeekPriceChange — Weekly price movement

Example: "Show me the hottest markets by 24h volume"


get_price_history

Get historical price/odds data for market analysis.

ParameterTypeDefaultDescription
market_idstringrequiredMarket ID
outcome_indexnumber0Outcome index (0 = Yes)
intervalenum1mTime range

Intervals: 1d, 1w, 1m, 3m, 1y, max

Example: "Show price history for market 0x... over the past month"


get_order_book

Get real-time order book depth showing current bids and asks.

ParameterTypeDefaultDescription
market_idstringrequiredMarket ID
outcome_indexnumber0Outcome index (0 = Yes)

Example: "Show me the order book for market 0x..."

💡 Example Queries

Once configured, you can ask your AI assistant:

  • "Show me politics markets with more than 50% odds for Yes"
  • "What are the trending crypto markets right now?"
  • "Search for Trump prediction markets"
  • "Get the price history for the Bitcoin $100k market"
  • "List all sports betting markets"
  • "What's the order book depth for the presidential election market?"

Prompt Templates

Quick prompts to try with your AI assistant:

# Quick market check
What does Polymarket say about [TOPIC]? Show me the odds.

# Cross-source validation
News reports say [EVENT]. Check Polymarket and tell me if the
smart money agrees.

# Find opportunities
Find markets closing in the next 24 hours with 90%+ odds on one side.

🔧 Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build

# Test with MCP Inspector
npm run client

📄 API Sources

This server uses the following Polymarket APIs:

  • Gamma API (gamma-api.polymarket.com) — Market and event data
  • CLOB API (clob.polymarket.com) — Order books and price history

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📜 License

MIT License - see LICENSE for details.

🔗 Links


Keywords: Polymarket, MCP, Model Context Protocol, prediction markets, AI assistant, Claude, Cursor, betting odds, crypto markets, political betting, sports betting, market analysis, order book, price history

Reviews

No reviews yet

Sign in to write a review