Alvey Automation
MCP Server · Polymarket

Plug Claude into Polymarket's public APIs.

Read-only MCP server for Polymarket's public Gamma and CLOB APIs. Markets, orderbooks, price history, categories, volume leaders, resolutions — no auth required.

Free · MIT license

Polymarket's public API is great. Wiring it up isn't.

Polymarket exposes a rich public API across two surfaces — Gamma for market discovery, CLOB for order books and price history. The endpoints are clean. The only thing standing between you and "ask Claude about this market" is a few hundred lines of glue.

This package is the glue. Seven read-only tools wrapped around the most useful endpoints, with stable client-side filtering for the bits Gamma doesn't surface natively. Drop into any MCP-aware client and ask in English.

The seven tools

  • polymarket_search_markets — substring match across question, slug, description
  • polymarket_get_market — by numeric ID or slug
  • polymarket_get_orderbook — live order book for any CTF outcome token
  • polymarket_get_price_history — 1m / 5m / 15m / 1h / 6h / 1d intervals
  • polymarket_list_categories — full tag list
  • polymarket_get_volume_leaders — top markets by 24-hour volume, optionally scoped by category
  • polymarket_get_market_resolutions — closed markets, client-side filtered by date window

All seven tools registered, all returning the standard JSON envelope. Runtime deps are mcp + requests only — py-clob-client is wired under an optional [trading] extra for teams that want to build a wallet-authenticated trading layer on top.

Who this is for

This MCP server is for you if:

  • You're researching prediction markets and want Claude to be able to pull live data instead of guessing from training-data snapshots.
  • You're building automation around Polymarket and want a clean starting point for the read layer.
  • You'd rather use a tested wrapper than re-derive the search + resolution-filter logic from scratch.

It's not for you if:

  • You need live trading. That requires wallet auth and is intentionally out of scope.
  • You want WebSocket streaming. Request-response only at v0.1.

FAQ

Is this an official Polymarket project?
No. This is an independent open-source project. It calls Polymarket's public Gamma and CLOB APIs — no auth required, no wallet involvement at v0.1.
Does it trade?
No. v0.1 is read-only. Adding wallet-authenticated trading is a meaningful threat-model change and is intentionally out of scope. The README documents the upgrade path via py-clob-client for teams that want to extend it.
Do I need API keys?
No. The endpoints exposed are public. You can run it with zero configuration.
What MCP clients does it work with?
Anything speaking MCP over stdio: Claude Code, Claude Desktop, Cursor, or any IDE plugin with MCP support.
Why no WebSocket support?
The CLOB exposes a WebSocket feed for live order book updates. It's a poor fit for the request-response MCP tool model today. Worth revisiting if a streaming MCP transport story emerges.
Can I use this for trading research?
Yes — that's the primary use case. Search markets, pull order books, fetch price history at multiple intervals, list categories, find volume leaders. Pair it with Claude for ad-hoc analysis.

Research markets in plain English.

MIT-licensed. No auth, no telemetry, no hosted backend.