Skip to main content

The simplest MCP server for Polymarket prediction-market data

Project description

Polymarket MCP Server

The simplest way to query Polymarket prediction-market data with AI agents.

Built by Polycool — track & copy top Polymarket traders in one tap.

Install in Cursor PyPI Python 3.10+ License: MIT


What is this?

A lightweight Model Context Protocol (MCP) server that gives any AI agent instant access to Polymarket prediction-market data — search markets, check probabilities, analyse liquidity, track price history, and more.

Built with FastMCP in pure Python. Part of the Polycool ecosystem.

Why does this exist?

AI agents need real-time data feeds to be useful. Prediction markets are one of the best sources of crowd-sourced probability estimates on world events.

This project bridges the gap:

  • No trading. Read-only market data.
  • No wallets. No blockchain signing, no private keys.
  • No complexity. Seven tools, zero configuration.

Just plug it into Claude Desktop, Cursor, or any MCP-compatible client and start asking questions about the future.


Tools

Tool Description
search_markets Full-text search across all markets (e.g. "Bitcoin", "NBA", "election")
trending_markets Top markets ranked by 24-hour volume
new_markets Most recently launched markets
markets_closing_soon Markets resolving within N hours
market_summary Detailed probability, volume, liquidity, spread & metadata
market_orderbook Live orderbook with bids, asks, spread & last trade price
market_price_history Historical price data with min, max, and % change over any time window

Quick Install

One-Click Install for Cursor

Install MCP Server

Click the badge — Cursor prompts you to install. Done. No cloning, no pip install.

Install with uvx

uvx --python 3.11 polymarket-mcp

Downloads the package, installs dependencies in an isolated environment, starts the server. Nothing touches your system Python.

Prerequisite: uv (curl -LsSf https://astral.sh/uv/install.sh | sh)

Install with pip

pip install polymarket-mcp
polymarket-mcp

Setup

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "polymarket": {
      "command": "uvx",
      "args": ["--python", "3.11", "polymarket-mcp"]
    }
  }
}

Claude Desktop

Add to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "polymarket": {
      "command": "uvx",
      "args": ["--python", "3.11", "polymarket-mcp"]
    }
  }
}

Restart Claude Desktop. The Polymarket tools appear in the tool list.


Example Prompts

Once connected, try asking your AI agent:

"Show me the top 10 trending markets on Polymarket"

"Find all markets about Bitcoin"

"Which markets resolve in the next 24 hours?"

"Give me a detailed summary of this market"

"Show me the price history for this market over the last week"

"What does the orderbook look like for this market?"


Example Output

{
  "market_id": "21742",
  "question": "Will Bitcoin exceed $100,000 by June 2026?",
  "probability": 0.72,
  "volume_24h": 245000,
  "volume_total": 8900000,
  "liquidity": 620000,
  "best_bid": 0.71,
  "best_ask": 0.73,
  "spread": 0.02,
  "category": "Crypto",
  "end_date": "2026-06-30T00:00:00Z",
  "active": true
}

APIs Used

API Purpose
Polymarket Gamma API Market data, events, full-text search
Polymarket CLOB API Orderbook, price history, last trade price

Both APIs are public and free. No API key required.


Built by Polycool

This MCP server is built and maintained by the Polycool team.

Polycool lets you track and copy top Polymarket traders — insiders and smart wallets — in one tap.


License

MIT


polymarket api, polymarket mcp server, prediction market api, polymarket data, polymarket analytics, polymarket python, polymarket ai agent, model context protocol, polycool, polymarket copy trading, polymarket telegram bot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polymarket_mcp-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polymarket_mcp-0.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file polymarket_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: polymarket_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for polymarket_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3beafadbadf359d85f4b11cb49e4866aa922d498ed354b37fe6adc8b8ea900c3
MD5 ed4042af18bda6fef412b5e6c9207163
BLAKE2b-256 4235a6908ba822c638b00d5a26d04eec8d887dce9157efe0392cfe3ca0556e93

See more details on using hashes here.

File details

Details for the file polymarket_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: polymarket_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for polymarket_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a04ae04311b273da44d2dd8373a560cd9868735471c23e76d927cc969fd28399
MD5 06d7e63bfcf827297fc2df353522caad
BLAKE2b-256 ac6bf2da2d0a8eae6ce2a90c3cab63ae718cdff3b7802dbca53caeab1a7a93a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page