Graph Polymarket MCP
Transport note. The default is stdio — no network surface, nothing listening. The
optional --http SSE transport is unauthenticated: anyone who can reach the port can call
every tool and spend your GRAPH_API_KEY quota. Bind it to localhost and front it with TLS and
auth if it must be reachable.
Query Polymarket prediction market data via The Graph subgraphs and Polymarket REST APIs (Gamma + CLOB) — market search, live prices, order books, trader P&L, positions, open interest, resolution status, and trader profiles.
Try it
Polymarket REST API (no API key needed)
- search_markets — Search markets by text query with filters (active, closed, sort by volume/liquidity)
- get_market_info — Get detailed market metadata by slug or condition ID
- list_polymarket_events — Browse events (groups of related markets) with tag/status filters
- get_polymarket_event — Get a single event with all its associated markets
- get_live_prices — Real-time CLOB prices for outcome tokens (buy/sell, single or batch)
- get_live_spread — Bid-ask spread + midpoint for assessing market liquidity
- get_live_orderbook — Full order book (all resting bids and asks) for a token
- get_price_history — Historical price time-series (1m to max interval, configurable fidelity)
- get_last_trade — Last trade price for an outcome token
- get_clob_market — CLOB market details: token IDs, live prices, min order/tick sizes
- search_markets_enriched — Power tool: search + auto-enrich with live CLOB prices AND on-chain resolution status
The Graph Subgraphs (requires GRAPH_API_KEY)
- list_subgraphs — List all available Polymarket subgraphs with descriptions and key entities
- get_subgraph_schema — Get the full GraphQL schema for a specific subgraph
- query_subgraph — Execute a custom GraphQL query against any subgraph
- get_market_data — Get market/condition data with outcomes and resolution status
- get_global_stats — Platform stats: market counts, volume, fees, trades
- get_account_pnl — Trader P&L and performance metrics (winRate, profitFactor, maxDrawdown)
- get_top_traders — Leaderboard ranked by PnL, winRate, volume, or profitFactor
- get_daily_stats — Daily volume, fees, trader counts, and market activity
- get_market_positions — Top holders for a specific outcome token with their P&L
- get_user_positions — A user's current token positions
- get_recent_activity — Recent splits, merges, and redemptions
- get_orderbook_trades — Recent order fills with maker/taker filtering
- get_market_open_interest — Top markets ranked by USDC locked in positions
- get_oi_history — Hourly OI snapshots for a specific market
- get_global_open_interest — Total platform-wide open interest and market count
- get_market_resolution — UMA oracle resolution status with filtering
- get_disputed_markets — Markets disputed during oracle resolution
- get_market_revisions — Moderator interventions and updates on market resolution
- get_trader_profile — Full trader profile: first seen, CTF events, USDC flows
- get_trader_usdc_flows — USDC deposit/withdrawal history with direction filtering
20 tools available
- Runtime: Node.js >= 18 (runs via
npx)
- Environment variables:
GRAPH_API_KEY (required for subgraph tools) — Free API key from The Graph Studio. Free tier: 100K queries/month.
- REST API tools (search, prices, order books) work without any API key.
Install
GRAPH_API_KEY=your-key npx graph-polymarket-mcp
Get a free API key at The Graph Studio (free tier: 100K queries/month).
- Subgraph tools make GraphQL requests to The Graph Gateway (
gateway.thegraph.com) using your API key.
- REST API tools query Polymarket's public endpoints (
gamma-api.polymarket.com and clob.polymarket.com) directly — no authentication needed.
- Eight subgraphs are queried: Main, Beefy P&L, Slimmed P&L, Activity, Orderbook, Open Interest, Resolution, and Traders.
- No local database or persistent storage is used.
- The SSE transport (
--http / --http-only) starts a local HTTP server on port 3851 (configurable via MCP_HTTP_PORT env var).
| Endpoint |
Data sent |
Purpose |
gateway.thegraph.com |
GraphQL queries with your API key |
Queries 8 Polymarket subgraphs |
- Search and discover prediction markets by topic, category, or keyword
- Get real-time prices, order books, and spreads for any market
- Analyze price history and market trends
- Get platform-wide stats, volume, and market rankings
- Analyze trader P&L, performance metrics, and leaderboards
- Track open interest trends and market positions
- Monitor market resolution lifecycle and disputed markets
- Run custom GraphQL queries against 8 specialized Polymarket subgraphs
1---2name: graph-polymarket-mcp3description: Query Polymarket prediction market data via The Graph subgraphs + Polymarket REST APIs (Gamma + CLOB) — 35 tools for market search, live prices, on-chain analytics, trader P&L, open interest, resolution status, and CLOB V2 builder attribution.4---56# Graph Polymarket MCP78> **Transport note.** The default is **stdio** — no network surface, nothing listening. The9> optional `--http` SSE transport is **unauthenticated**: anyone who can reach the port can call10> every tool and spend your `GRAPH_API_KEY` quota. Bind it to localhost and front it with TLS and11> auth if it must be reachable.1213Query Polymarket prediction market data via The Graph subgraphs and Polymarket REST APIs (Gamma + CLOB) — market search, live prices, order books, trader P&L, positions, open interest, resolution status, and trader profiles.1415## Try it1617### Polymarket REST API (no API key needed)1819- **search_markets** — Search markets by text query with filters (active, closed, sort by volume/liquidity)20- **get_market_info** — Get detailed market metadata by slug or condition ID21- **list_polymarket_events** — Browse events (groups of related markets) with tag/status filters22- **get_polymarket_event** — Get a single event with all its associated markets23- **get_live_prices** — Real-time CLOB prices for outcome tokens (buy/sell, single or batch)24- **get_live_spread** — Bid-ask spread + midpoint for assessing market liquidity25- **get_live_orderbook** — Full order book (all resting bids and asks) for a token26- **get_price_history** — Historical price time-series (1m to max interval, configurable fidelity)27- **get_last_trade** — Last trade price for an outcome token28- **get_clob_market** — CLOB market details: token IDs, live prices, min order/tick sizes29- **search_markets_enriched** — Power tool: search + auto-enrich with live CLOB prices AND on-chain resolution status3031### The Graph Subgraphs (requires GRAPH_API_KEY)3233- **list_subgraphs** — List all available Polymarket subgraphs with descriptions and key entities34- **get_subgraph_schema** — Get the full GraphQL schema for a specific subgraph35- **query_subgraph** — Execute a custom GraphQL query against any subgraph36- **get_market_data** — Get market/condition data with outcomes and resolution status37- **get_global_stats** — Platform stats: market counts, volume, fees, trades38- **get_account_pnl** — Trader P&L and performance metrics (winRate, profitFactor, maxDrawdown)39- **get_top_traders** — Leaderboard ranked by PnL, winRate, volume, or profitFactor40- **get_daily_stats** — Daily volume, fees, trader counts, and market activity41- **get_market_positions** — Top holders for a specific outcome token with their P&L42- **get_user_positions** — A user's current token positions43- **get_recent_activity** — Recent splits, merges, and redemptions44- **get_orderbook_trades** — Recent order fills with maker/taker filtering45- **get_market_open_interest** — Top markets ranked by USDC locked in positions46- **get_oi_history** — Hourly OI snapshots for a specific market47- **get_global_open_interest** — Total platform-wide open interest and market count48- **get_market_resolution** — UMA oracle resolution status with filtering49- **get_disputed_markets** — Markets disputed during oracle resolution50- **get_market_revisions** — Moderator interventions and updates on market resolution51- **get_trader_profile** — Full trader profile: first seen, CTF events, USDC flows52- **get_trader_usdc_flows** — USDC deposit/withdrawal history with direction filtering5354## 20 tools available5556- **Runtime:** Node.js >= 18 (runs via `npx`)57- **Environment variables:**58 - `GRAPH_API_KEY` (required for subgraph tools) — Free API key from [The Graph Studio](https://thegraph.com/studio/). Free tier: 100K queries/month.59 - REST API tools (search, prices, order books) work without any API key.6061## Install6263```bash64GRAPH_API_KEY=your-key npx graph-polymarket-mcp65```6667Get a free API key at [The Graph Studio](https://thegraph.com/studio/) (free tier: 100K queries/month).6869- Subgraph tools make GraphQL requests to The Graph Gateway (`gateway.thegraph.com`) using your API key.70- REST API tools query Polymarket's public endpoints (`gamma-api.polymarket.com` and `clob.polymarket.com`) directly — no authentication needed.71- Eight subgraphs are queried: Main, Beefy P&L, Slimmed P&L, Activity, Orderbook, Open Interest, Resolution, and Traders.72- No local database or persistent storage is used.73- The SSE transport (`--http` / `--http-only`) starts a local HTTP server on port 3851 (configurable via `MCP_HTTP_PORT` env var).7475| Endpoint | Data sent | Purpose |76|----------|-----------|---------|77| `gateway.thegraph.com` | GraphQL queries with your API key | Queries 8 Polymarket subgraphs |7879- Search and discover prediction markets by topic, category, or keyword80- Get real-time prices, order books, and spreads for any market81- Analyze price history and market trends82- Get platform-wide stats, volume, and market rankings83- Analyze trader P&L, performance metrics, and leaderboards84- Track open interest trends and market positions85- Monitor market resolution lifecycle and disputed markets86- Run custom GraphQL queries against 8 specialized Polymarket subgraphs