← 返回
数据分析 Key 中文

Graph Polymarket MCP

Query Polymarket prediction market data via The Graph subgraphs + Polymarket REST APIs (Gamma + CLOB) — 31 tools for market search, live prices, on-chain ana...
通过The Graph子图和Polymarket REST API(Gamma + CLOB)查询Polymarket预测市场数据 — 包含31个工具,用于市场搜索、实时价格、链上分析等
paulieb14
数据分析 clawhub v2.0.1 2 版本 100000 Key: 需要
★ 0
Stars
📥 663
下载
💾 10
安装
2
版本
#latest

概述

Graph Polymarket MCP

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.

Tools

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

Requirements

  • 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

Network & Data Behavior

  • 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).

Use Cases

  • 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

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-05-03 04:28 安全 安全
  • v1.5.2
    2026-03-19 11:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,666
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,850
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 366 📥 139,955