SSyncDev

Graph MCP Server

MCP server for querying Polymarket data via The Graph subgraphs

Local serverstdioGo

What is the Graph MCP Server?

MCP server for querying Polymarket data via The Graph subgraphs

What you get

Exposes 31 tools that AI agents (Claude, Cursor, etc.) can use to search markets, get real-time CLOB prices and order books, query on-chain data, trader P&L, positions, activity, open interest, market resolution status, and trader profiles.

Configuration and credentials

You need a free Graph API key (takes ~2 minutes): 1. Go to The Graph Studio 2. Connect your wallet (MetaMask, WalletConnect, etc.) 3. Click "API Keys" in the sidebar and create one 4. Free tier includes 100,000 queries/month

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_subgraphsList all available Polymarket subgraphs with descriptions and key entities
get_subgraph_schemaGet the full GraphQL schema for a specific subgraph
query_subgraphExecute a custom GraphQL query against any subgraph
get_market_dataGet market/condition data with outcomes and resolution status
get_global_statsGet platform stats: market counts + real volume/fees/trades
get_account_pnlGet a trader's P&L and performance metrics (winRate, profitFactor, maxDrawdown)
get_top_tradersLeaderboard ranked by PnL, winRate, volume, or profitFactor. Cross-refs Orderbook to flag rows where OB volume exceeds Beefy-tracked volume and surface OB-only traders absent from the leaderboard.
get_daily_statsDaily volume, fees, trader counts, and market activity (1–90 days)
get_market_positionsTop holders for a specific outcome token with their P&L
get_user_positionsCurrent token positions. Cross-refs Orderbook: flags ⚠ orderbook-only entry when totalBought=0 but OB volume exists, and ⚠ mixed entry when OB volume > 2× split collateral.
get_recent_activityUnified chronological feed interleaving splits, merges, and redemptions with orderbook fills. Supports optional address filter.
get_orderbook_tradesGet recent order fills with maker/taker filtering
get_market_open_interestTop markets ranked by USDC locked in outstanding positions. Cross-refs Main subgraph to flag ⚠ dead money OI on resolved markets (losing-side tokens that will never be redeemed on-chain).
get_oi_historyHourly OI snapshots for a specific market (for charting trends)

How to install the Graph MCP Server

{
  "mcpServers": {
    "graph-polymarket": {
      "command": "npx",
      "args": ["-y", "graph-polymarket-mcp"],
      "env": {
        "GRAPH_API_KEY": "your-api-key-here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

You need a free Graph API key (takes ~2 minutes): 1. Go to The Graph Studio 2. Connect your wallet (MetaMask, WalletConnect, etc.) 3. Click "API Keys" in the sidebar and create one 4. Free tier includes 100,000 queries/month

VariableDescriptionRequired
GRAPH_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Graph to list subgraphs.”
  • “Use Graph to get subgraph schema.”
  • “Use Graph to query subgraph.”

Frequently asked questions

MCP server for querying Polymarket data via The Graph subgraphs Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.