Xpersona
G

graph-polymarket-mcp

CLAWHUB · Unverified

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.

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179kend24a91k7vj5e7dqsjfx83e31s:graph-polymarket-mcp
  1. Install using `clawhub skill install s179kend24a91k7vj5e7dqsjfx83e31s:graph-polymarket-mcp` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/paulieb14/graph-polymarket-mcp before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-paulieb14-graph-polymarket-mcp/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,531 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: graph-polymarket-mcp
version: 2.1.2
description: 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.
metadata:
  clawdbot:
    emoji: "🔮"
    requires:
      bins: ["node"]
      env: ["GRAPH_API_KEY"]
    primaryEnv: "GRAPH_API_KEY"
    # Declared explicitly rather than left implicit: this server reads one env var and
    # talks to three hosts, and nothing else. Anything outside this list is a bug.
    capabilities:
      env:
        - name: GRAPH_API_KEY
          purpose: "Authenticates subgraph queries to The Graph gateway. Sent only to gateway.thegraph.com; never logged, never forwarded to Polymarket or any other host."
          required: false
      network:
        - host: gateway.thegraph.com
          purpose: "Subgraph queries. Receives GRAPH_API_KEY."
        - host: gamma-api.polymarket.com
          purpose: "Public market metadata. No credentials sent."
        - host: clob.polymarket.com
          purpose: "Public prices and order books. No credentials sent."
      filesystem: none
      transports: ["stdio (default)", "sse (opt-in, --http)"]
---

# 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 Polymarke

README.md

# graph-polymarket-mcp

<div align="center">

[![npm version](https://img.shields.io/npm/v/graph-polymarket-mcp)](https://www.npmjs.com/package/graph-polymarket-mcp)
[![MCP Registry](https://img.shields.io/badge/MCP%20Registry-published-blue)](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.PaulieB14/graph-polymarket-mcp)
[![smithery badge](https://smithery.ai/badge/paulieb14/graph-polymarket-mcp)](https://smithery.ai/servers/paulieb14/graph-polymarket-mcp)

<a href="https://glama.ai/mcp/servers/@PaulieB14/graph-polymarket-mcp">
  <img width="380" height="200" src="https://glama.ai/mcp/servers/@PaulieB14/graph-polymarket-mcp/badge" />
</a>

**MCP server for querying [Polymarket](https://polymarket.com/) prediction market data via [The Graph](https://thegraph.com/) subgraphs and Polymarket REST APIs.**

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.

**v2.0.0** — adds 10 new tools powered by Polymarket's Gamma and CLOB APIs (inspired by [polymarket-cli](https://github.com/Polymarket/polymarket-cli)): market search, event browsing, live prices, spreads, order books, price history, and more. No API key needed for these tools — they hit Polymarket's public REST endpoints directly.

</div>

> Published to the [MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.PaulieB14/graph-polymarket-mcp) as `io.github.PaulieB14/graph-polymarket-mcp`

## Prerequisites

You need a **free** Graph API key (takes ~2 minutes):

1. Go to [The Graph Studio](https://thegraph.com/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

## Installation

```bash
npm install -g graph-polymarket-mcp
```

Or use directly with npx:

```bash
npx graph-polymarket-mcp
```

## Configuration

### Claude Desktop

Add to your `claude_desktop_config.json`:

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

### Claude Code

```bash
claude mcp add graph-polymarket -- npx -y graph-polymarket-mcp
```

Set the environment variable `GRAPH_API_KEY` before running.

### Cursor / Other MCP Clients

Use the stdio transport with `npx graph-polymarket-mcp` as the command, passing `GRAPH_API_KEY` as an environment variable.

### OpenClaw / Remote Agents (SSE)

> **The SSE transport has no authentication.** Anyone who can reach the port can call every tool,
> and those calls spend *your* `GRAPH_API_KEY` quota. `--http` binds `0.0.0.0` inside a container,
> so publish it to `127.0.0.1` on the host and put a reverse proxy with TLS and auth in front of
> anything reachable off-box. For local agents

_meta.json

{
  "ownerId": "kn7ep45hbzy18628bqpwfwcxa582smkj",
  "slug": "graph-polymarket-mcp",
  "version": "2.1.2",
  "publishedAt": 1786289751840
}

skill-card.md

## Description:

Query Polymarket prediction market data via The Graph subgraphs and Polymarket REST APIs for market search, live prices, order books, on-chain analytics, trader P&L, open interest, resolution status, and CLOB V2 builder attribution.

This skill is ready for commercial/non-commercial use.

## Publisher:

[paulieb14](https://clawhub.ai/user/paulieb14)

### License/Terms of Use:

MIT

## Use Case:

Developers and agent operators use this MCP server to let agents inspect Polymarket prediction markets, live CLOB data, trader analytics, open interest, and market resolution data. Subgraph tools require a Graph API key; REST market and price tools use public Polymarket endpoints without an API key.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The optional HTTP/SSE transport can expose unauthenticated tools to reachable clients.

Mitigation: Prefer stdio/local use. If HTTP/SSE is required, bind or firewall it to trusted clients and place authentication and TLS in front of any reachable endpoint.

Risk: Remote callers that can reach HTTP/SSE endpoints can consume the configured Graph API quota.

Mitigation: Limit network exposure, monitor usage, and use a pinned package version in client configuration.

Risk: The server uses a Graph API key for subgraph queries.

Mitigation: Provide GRAPH_API_KEY only in trusted runtime environments and avoid forwarding it outside gateway.thegraph.com.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/paulieb14/skills/graph-polymarket-mcp)
- [ClawHub publisher profile](https://clawhub.ai/user/paulieb14)
- [npm package](https://www.npmjs.com/package/graph-polymarket-mcp)
- [MCP Registry entry](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.PaulieB14/graph-polymarket-mcp)
- [Smithery server page](https://smithery.ai/servers/paulieb14/graph-polymarket-mcp)
- [Glama server page](https://glama.ai/mcp/servers/@PaulieB14/graph-polymarket-mcp)
- [The Graph Studio](https://thegraph.com/studio/)
- [Polymarket](https://polymarket.com/)
- [The Graph](https://thegraph.com/)

## Skill Output:

**Output Type(s):** [text, markdown, configuration, guidance]

**Output Format:** [Markdown and structured MCP tool responses]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires Node.js >= 18. GRAPH_API_KEY is required for The Graph subgraph tools; public Polymarket REST tools do not require credentials.]

## Skill Version(s):

2.1.2 (source: SKILL.md frontmatter, package.json, ClawHub release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

glama.json

{
  "$schema": "https://glama.ai/mcp/schemas/server.json",
  "maintainers": ["PaulieB14"]
}

Sponsored

Ads related to graph-polymarket-mcp and adjacent AI workflows.