Skip to main content
Glama
polymarket-mcp-server

polymarket-mcp-server

by Birantx

Polymarket MCP Server

npm Node License: MIT TypeScript

A Model Context Protocol (MCP) server that gives Claude — and any MCP client — read-only access to Polymarket, the largest prediction market. Search markets, pull live order books and price history, inspect any wallet's positions, and rank the liquidity-reward markets by where you actually earn the most per dollar quoted.

No API keys. No wallet. No signup. Every tool runs against Polymarket's public APIs, so it works the second you add it to Claude.

"Claude, find me Polymarket markets paying the most liquidity rewards with the least competition."

Why this exists

Most prediction-market tooling stops at "list the markets." This server adds the thing market-makers actually care about: list_reward_markets ranks Polymarket's maker-reward programs by daily reward pool ÷ on-book competition — surfacing where resting liquidity earns the best rate, not just which markets exist.

Built on the official @modelcontextprotocol/sdk, Zod-validated, with graceful error envelopes and a short in-process cache so repeated questions in a single Claude turn stay fast.

Related MCP server: Polymarket MCP Server

60-second quickstart

Claude Code

claude mcp add polymarket -- npx -y polymarket-mcp-server

Claude Desktop

Add this to your claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):

{
  "mcpServers": {
    "polymarket": {
      "command": "npx",
      "args": ["-y", "polymarket-mcp-server"]
    }
  }
}

Restart Claude Desktop, and the tools appear under the 🔌 menu. That's it — no credentials to configure.

Cursor / other MCP clients

Point any MCP client at the stdio command npx -y polymarket-mcp-server.

Tools

Tool

What it does

search_markets

Full-text search across events & markets → questions, prices, liquidity, volume, and token IDs.

get_market

Full detail for one market (by ID or slug), enriched with live midpoint & spread per outcome.

get_orderbook

Live bids/asks for an outcome token, with best bid/ask, midpoint, and spread computed.

get_price_history

Historical probability time series with summary stats; auto-downsampled for long ranges.

list_reward_markets

The differentiator. Markets paying maker rewards, ranked by pool ÷ competition.

get_trader_activity

Any wallet's public positions, recent activity, or total portfolio value (whale-watching).

Example: ranking reward markets

You:    Which Polymarket reward markets have the best pool-to-competition right now?
Claude: (calls list_reward_markets)
        1. "Will Roberto Sánchez Palomino win the 2026 Peruvian presidential election?"
           daily pool $2,000 · max spread 3.5¢ · min size 20 · competition $40.7k · score 0.049
        ...

score = dailyRewardPool / (competitionNotional + 1), where competitionNotional is the notional liquidity (Σ price·size) already resting within the scoring spread on the order book — a proxy for how crowded the reward is.

How it works

Claude / MCP client  ──stdio──▶  polymarket-mcp-server
                                       │
                 ┌─────────────────────┼─────────────────────┐
                 ▼                     ▼                     ▼
          Gamma API            CLOB API              Data API
   (markets, search)   (books, prices, rewards)  (wallet positions)
  • Read-only & credential-free — only public endpoints are called.

  • Zod-validated inputs on every tool; malformed input is rejected cleanly.

  • Graceful errors — upstream failures come back as readable messages, never raw stack traces.

  • Short TTL cache (60s) on hot queries to respect public rate limits.

Local development

git clone https://github.com/Birantx/polymarket-mcp-server.git
cd polymarket-mcp-server
npm install
npm run build
npm test          # end-to-end smoke test against the live public APIs

Run it directly over stdio:

node dist/index.js

Roadmap

  • v0.1 (this release): read-only tools, credential-free.

  • v0.2 (demand-driven): optional authenticated order placement via the CLOB client, gated behind explicit key configuration.

Disclaimer

This is an unofficial, community-built tool and is not affiliated with Polymarket. It is read-only and for informational use. Nothing here is financial advice. Prediction markets may be restricted in your jurisdiction.

License

MIT © 2026 — see LICENSE.


Keywords: Polymarket MCP server, Model Context Protocol, Claude, Anthropic, prediction markets, market making, liquidity rewards, MCP tools, AI trading research.

Available Tools

6 tools
get_marketGet Polymarket market detailA

Fetch full detail for a single market by numeric ID or slug, enriched with a live CLOB midpoint and spread for each outcome token. Use after search_markets when you need depth on one specific market.

Inputs: id (required).

get_orderbookGet Polymarket order bookA

Live bids/asks for one outcome token, with computed best bid, best ask, midpoint, and spread. Bids are returned highest-first and asks lowest-first (the top of book), truncated to depth levels.

Inputs: tokenId (required), depth.

get_price_historyGet Polymarket price historyA

Historical mid-price time series for one outcome token. Returns summary stats (first/last/min/max, change) plus the raw points (Unix seconds t, probability p). Large series are downsampled to keep responses compact.

Inputs: tokenId (required), interval, fidelity.

get_trader_activityGet Polymarket trader activityA

Public, read-only look at any wallet's Polymarket footprint — open positions, recent activity, or total portfolio value. Useful for whale-watching and copy-research. No credentials needed; uses only on-chain/public data.

Inputs: address (required), view, limit, offset.

list_reward_marketsList Polymarket liquidity-reward markets (ranked)A

THE differentiator: lists markets currently paying maker (liquidity) rewards, ranked by daily reward pool ÷ in-band competition — i.e. where you earn the most rewards per dollar of resting liquidity. Each row includes the daily pool, max scoring spread, min order size, and the measured competition (notional resting within the scoring band). Credential-free.

Inputs: limit, measureCompetition.

search_marketsSearch Polymarket marketsA

Full-text search across Polymarket events and their markets. Returns matching events with each market's question, outcome prices, liquidity, and volume. Use this first to discover markets and their token IDs (token IDs feed get_orderbook / get_price_history).

Inputs: query (required), limit, activeOnly.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: market details, order book, price history, trader activity, reward markets, and search. There is no overlap or ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (get_*, list_*, search_*), making it easy to predict and remember.

    Tool Count5/5

    With 6 tools, the server covers all essential read operations for Polymarket data without being overly numerous or too few.

    Completeness5/5

    The tool set provides a comprehensive read-only surface: market discovery, details, order book, price history, reward markets, and trader activity. No obvious gaps for its purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables Claude to autonomously trade, analyze, and manage positions on Polymarket prediction markets with 45 comprehensive tools including market discovery, real-time monitoring, portfolio management, and AI-powered trading recommendations with enterprise-grade safety features.
      25
      745
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to autonomously trade, analyze, and manage positions on Polymarket prediction markets with 45 comprehensive tools covering market discovery, analysis, trading execution, portfolio management, and real-time monitoring with enterprise-grade safety features.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to query Polymarket prediction markets, accessing real-time odds, market data, price history, order books, and trending markets across categories like politics, crypto, and sports through natural language.
      41 npm
      7
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables smart-money whale and market analytics for Polymarket, including leaderboards, wallet profiles, positions, market clusters, and alerts, through Claude Desktop and other MCP clients.
      6
      199 PyPI
      1
      MIT