Graph Polymarket MCP logo

Graph Polymarket MCP

by PaulieB14

Query Polymarket markets, trading activity, positions, odds, open interest, and resolution data through MCP.

Install Graph Polymarket MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "paulieb14-graph-polymarket-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graph-polymarket-mcp"
      ],
      "env": {
        "GRAPH_API_KEY": "YOUR_VALUE_HERE",
        "MCP_HTTP_PORT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env GRAPH_API_KEY=YOUR_VALUE_HERE --env MCP_HTTP_PORT=YOUR_VALUE_HERE --transport stdio paulieb14-graph-polymarket-mcp -- npx -y graph-polymarket-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y graph-polymarket-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

PaulieB14/graph-polymarket-mcp MCP server connects AI agents to Polymarket data through The Graph subgraphs and public Gamma and CLOB REST APIs. It provides GraphQL discovery and custom queries alongside tools for markets, trader performance, positions, activity, order books, live prices, open interest, and resolution status. Graph-backed features require a free Graph API key, while the Gamma and CLOB tools use public endpoints without an API key. Use it when an agent needs Polymarket analysis, market discovery, historical data, or current trading conditions.

Use cases

  • Search prediction markets by topic and inspect live odds
  • Analyze trader P&L, positions, fills, and USDC flows
  • Track open interest and historical market activity
  • Review oracle resolutions, disputes, and moderator revisions

Key features

  • GraphQL subgraph discovery and custom queries
  • Polymarket market and event search
  • Live CLOB prices, spreads, and order books
  • Trader P&L, positions, and activity analysis
  • Open interest and resolution monitoring

Tools35

What Graph Polymarket MCP lets your agent do. Expand a tool for its parameters.

Verified live~4.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

27/28 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · graph-polymarket-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads498Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed35Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Graph Polymarket MCP works

What PaulieB14/graph-polymarket-mcp MCP server does

PaulieB14/graph-polymarket-mcp MCP server gives an MCP-compatible agent access to Polymarket prediction-market data from several sources. The Graph-backed tools cover indexed on-chain information, including market conditions, trader P&L, positions, fills, transfers, open interest, oracle resolution, disputes, and moderator revisions. Public Gamma API tools handle market and event discovery, while CLOB tools expose current and historical trading data.

The server is suited to research and monitoring workflows rather than placing trades. Agents can look up a market, obtain its condition or token identifiers, then follow those identifiers into live prices, spreads, order books, price history, open interest, or resolution details.

How it works

The server can run over the default stdio transport or expose an SSE endpoint through HTTP. Its GraphQL utilities let an agent list available subgraphs, inspect a subgraph schema, and submit a custom query. Higher-level tools select the relevant subgraph and return domain-specific results.

Data is split across sources. Main, Beefy P&L, Slimmed P&L, Activity, Orderbook, Open Interest, Resolution, and Traders subgraphs support different parts of the indexed dataset. Gamma supplies market metadata and event groupings; the CLOB API supplies token prices, spreads, order books, last trades, and price history. Some tools cross-reference multiple sources to surface differences such as orderbook-only activity or open interest on resolved markets.

Setup and configuration

Install the package globally with npm or run it directly with npx. Graph-backed queries require GRAPH_API_KEY, obtained from The Graph Studio. The documented free tier includes 100,000 queries per month. Gamma and CLOB tools do not require this key.

For local clients, configure the command as npx -y graph-polymarket-mcp and pass the key as an environment variable. HTTP mode starts SSE on port 3851 by default; MCP_HTTP_PORT changes the port. --http enables stdio and SSE together, while --http-only enables SSE alone. A /health endpoint is available in HTTP mode.

Tools and capabilities

  • Discover subgraphs, inspect schemas, and run custom GraphQL queries.
  • Search markets and browse related Polymarket events.
  • Read market metadata, outcome prices, liquidity, volume, and CLOB token IDs.
  • Retrieve live prices, bid-ask spreads, complete order books, last trades, and historical price points.
  • Analyze P&L, win rate, drawdown, positions, top traders, market holders, and daily platform statistics.
  • Inspect fills, splits, merges, redemptions, USDC flows, open interest, and hourly OI history.
  • Check UMA resolution states, disputes, revisions, and trader profiles.

Limitations and notes

PaulieB14/graph-polymarket-mcp depends on indexed subgraph data, so freshness can vary; the positions tool is documented to fall back when indexers are behind. The CLOB V2 subgraphs represent a separate post-migration era and do not contain pre-migration history. HTTP SSE has no built-in authentication: anyone who can reach the port can invoke tools and consume the configured Graph API quota. For local use, stdio avoids that network exposure; remote deployments should place HTTP behind access controls and TLS.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Graph Polymarket MCP

PaulieB14/graph-polymarket-mcp is an MCP server that connects AI agents to Polymarket through The Graph subgraphs and public Gamma and CLOB APIs. Its main tools query markets, prices, order books, positions, trader P&L, activity, open interest, and resolution status. Graph queries require a Graph API key.

Install it with npm or run it directly with npx. Use `npm install -g graph-polymarket-mcp` for a global installation, or configure `npx -y graph-polymarket-mcp` as the MCP command. Set `GRAPH_API_KEY` for Graph-backed tools.

Yes, it works with Cursor through the stdio transport. Configure Cursor to run `npx graph-polymarket-mcp` and provide `GRAPH_API_KEY` as an environment variable.

Yes, but only the Gamma and CLOB REST API tools are documented as requiring no Graph API key. Tools backed by The Graph require `GRAPH_API_KEY` to query Polymarket subgraphs.

Run it with `--http` or `--http-only` to expose the SSE transport, using port 3851 by default or setting `MCP_HTTP_PORT`. The SSE transport has no authentication, so protect remote deployments with a reverse proxy, TLS, and access controls.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGraph Polymarket MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/paulieb14-graph-polymarket-mcp?style=directory)](https://allmcps.com/mcp/paulieb14-graph-polymarket-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/paulieb14-graph-polymarket-mcp"><img src="https://allmcps.com/api/badge/paulieb14-graph-polymarket-mcp?style=directory" alt="Graph Polymarket MCP on AllMCPs" /></a>