Graph Polymarket MCP
Query Polymarket prediction markets via The Graph — 20 tools, 8 subgraphs
Connector by PaulieB14 · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/paulieb14-graph-polymarket-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 34 read · 0 write · 0 delete · 1 not yet classified
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 35
Read from the source code; the running server may list different tools.
Read 34 · Look things up without changing anything.
check_subgraph_freshnessget_account_pnlget_builder_activityget_builder_leaderboardget_clob_marketget_daily_statsget_disputed_marketsget_global_open_interestget_global_statsget_last_tradeget_live_orderbookget_live_prices
Show 22 more tools
get_live_spreadget_market_dataget_market_infoget_market_open_interestget_market_positionsget_market_resolutionget_market_revisionsget_oi_historyget_orderbook_tradesget_polymarket_eventget_price_historyget_recent_activityget_subgraph_schemaget_top_tradersget_trader_profileget_trader_usdc_flowsget_user_positionsget_v2_top_traderslist_polymarket_eventslist_subgraphssearch_marketssearch_markets_enriched
Not yet classified 1 · We could not tell from the name and description.
query_subgraph
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
GRAPH_API_KEY
Network hosts it talks to 6
clob.polymarket.com· found in codegamma-api.polymarket.com· found in codegateway.thegraph.com· found in codegithub.com· found in codeglama.ai· found in codethegraph.com· found in code
Tools (35)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
check_subgraph_freshnessReport how far behind chainhead a subgraph is, by reading its _meta block. Worth calling before trusting any 'current' or 'latest' number, because a lagging subgraph returns stale data rather than an error — it succeeds, it is just answering about the past.
get_account_pnlGet a trader's P&L and performance metrics from the Beefy P&L subgraph
get_builder_activityRecent fills routed by one Polymarket CLOB V2 builder code, with that builder's aggregate totals. Use get_builder_leaderboard first to find a builder id. V2-era only.
get_builder_leaderboardRank Polymarket CLOB V2 builders by routed volume, order count or fees. A 'builder' is the frontend/bot/integrator whose code is attached to a fill — this answers 'who is actually routing the flow', which no V1 subgraph can, because the V1 contracts never emitted it. V2-era only (from block 84902353, migration 2026-04-28).
get_clob_marketGet CLOB market details by condition ID. Returns token IDs (token_id) with live prices, minimum order/tick sizes, and market status. This is the bridge between on-chain condition IDs and CLOB trading data. Use the returned token_id values with get_live_prices, get_live_spread, get_live_orderbook, get_price_history, or get_market_positions.
get_daily_statsGet daily platform statistics from the Beefy P&L subgraph: volume, fees, trader counts, and market activity per day. Use this for trend analysis and historical performance.
get_disputed_marketsGet Polymarket markets that were disputed during the UMA oracle resolution process. Disputes happen when someone challenges a proposed outcome — these are high-signal events.
get_global_open_interestGet the total open interest across all Polymarket markets — the aggregate USDC locked in outstanding positions platform-wide.
get_global_statsGet aggregate Polymarket platform statistics. Combines market counts from the Main subgraph with accurate volume/fee/trade data from the Orderbook subgraph.
get_last_tradeGet the last trade price for a Polymarket outcome token from the CLOB.
get_live_orderbookGet the full real-time order book (bids and asks) for a Polymarket outcome token from the CLOB. Shows all resting limit orders with prices and sizes.
get_live_pricesGet real-time CLOB prices for Polymarket outcome tokens. Returns the current best price for buying or selling. Token IDs come from: clobTokenIds in search_markets/get_market_info, or token_id in get_clob_market.
get_live_spreadGet the real-time bid-ask spread for a Polymarket outcome token. Returns best bid, best ask, and spread. Useful for assessing market liquidity and trading costs.
get_market_dataGet Polymarket market/condition data including outcomes. Defaults to the V2 Main subgraph; pass subgraph: "main" for legacy V1 / pre-2026-04-28 history.
get_market_infoGet detailed Polymarket market info by slug or condition ID. Returns full market metadata from the Gamma API including description, prices, outcomes, and CLOB token IDs. Use the returned conditionId to query get_clob_market for live CLOB data, get_market_open_interest for OI, or get_market_resolution for oracle status.
Show 20 more tools
get_market_open_interestGet the top Polymarket markets ranked by open interest (USDC locked in outstanding positions). This data is unique to the Open Interest subgraph — no other Polymarket subgraph tracks OI.
get_market_positionsGet the top positions for a specific market token from the Beefy P&L subgraph. Shows who holds the largest positions and their P&L.
get_market_resolutionGet the UMA oracle resolution status for Polymarket markets. Shows whether a market is initialized, proposed, disputed, or resolved, plus proposed/final prices and dispute history.
get_market_revisionsGet moderator revisions/updates for Polymarket markets. Shows when and how moderators intervened in market resolution.
get_oi_historyGet hourly open interest snapshots for a specific Polymarket market. Use this to chart OI trends over time. The conditionId can be obtained from get_market_open_interest or the main subgraph.
get_orderbook_tradesGet recent order fills from the Orderbook subgraph
get_polymarket_eventGet a single Polymarket event with all its associated markets. An event groups related prediction markets under one topic.
get_price_historyGet historical price data for a Polymarket outcome token. Returns time-series price points for charting and trend analysis.
get_recent_activityGet recent splits, merges, and redemptions from the Activity subgraph
get_subgraph_schemaGet the full GraphQL schema (introspection) for a Polymarket subgraph
get_top_tradersGet the top Polymarket traders ranked by realized P&L, win rate, or volume from the Beefy P&L subgraph.
get_trader_profileGet a trader's on-chain profile from the Traders subgraph: when they first appeared, their recent CTF events (splits, merges, transfers), and USDC flows.
get_trader_usdc_flowsGet USDC deposit/withdrawal history for a trader. Shows inbound and outbound USDC transfers, useful for tracking when traders fund or withdraw from Polymarket.
get_user_positionsGet a user's current positions from the Slimmed P&L subgraph. Falls back gracefully if indexers are behind.
get_v2_top_tradersTop real traders on Polymarket CLOB V2 by volume or trade count, with the exchange contracts excluded. Use this rather than querying accounts directly: the V2 exchange is itself the `taker` when an order matches the book, so it accumulates an Account row and outranks every human by an order of magnitude. V2-era only (from block 84902353).
list_polymarket_eventsList Polymarket events (groups of related markets). Events bundle multiple Yes/No markets under one topic (e.g. 'US Presidential Election 2024' contains many candidate markets). Uses the Gamma API.
list_subgraphsList all available Polymarket subgraphs with descriptions and key entities
query_subgraphExecute a custom GraphQL query against a Polymarket subgraph
search_marketsSearch Polymarket prediction markets by text query. Returns market metadata including question, prices, volume, liquidity, and CLOB token IDs. Uses the Gamma API for real-time market discovery. Chain with: get_clob_market(conditionId) for live order books, get_live_prices(clobTokenIds) for token-level pricing, get_market_open_interest for capital locked, or get_market_resolution for oracle status.
search_markets_enrichedPower tool: search Polymarket markets then auto-enrich each result with live CLOB prices and on-chain resolution status. Combines Gamma API + CLOB API + The Graph in one call — no need to chain tools manually.
Compare and alternatives
Featured in
Signals
- Stars
- 4
- Forks
- 3
- Open issues
- 0
- Last commit
- Oct 15, 2026 (13 days ago)
- Last release
- Aug 9, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.PaulieB14/graph-polymarket-mcp- Version
- 1.4.0
- Auth
- API key
- Packages
- npm graph-polymarket-mcp
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from PaulieB14
Cite this page
Graph Polymarket MCP. Agent Mart. https://agentmart.dev/connectors/paulieb14-graph-polymarket-mcp (last updated 2026-10-24)