# Polymarket MCP Server

> **Polymarket MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Polymarket.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/polymarket
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Access prediction market data, market positions and trading activity on Polymarket. Monitor markets, retrieve information and interact with forecasting-based financial products.

---

## Details

- Server ID: `polymarket`
- Version: 1.0.0
- Tools: 40
- Authentication: API key, held by MewCP
- Calls served: 85
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Polymarket has to be in the toolset
first. In order:

1. Add Polymarket to your toolset at https://mewcp.com/mcp/polymarket
2. Connect your Polymarket account (API key); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If Polymarket isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `polymarket` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (40)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `list_events` _(read)_ — Lists Polymarket events matching optional filters (status, tags, series, categories, liquidity/volume ranges, dates, sports game or team) and returns each…
- `get_event_by_slug` _(read)_ — Retrieves a single Polymarket event by its URL slug and returns the full event record, including its markets, tags, teams, live state and volume stats. Set…
- `get_event_by_id` _(read)_ — Retrieves a single Polymarket event by its numeric event ID and returns the full event record, including its markets, tags, teams, live state and volume stats.…
- `list_markets` _(read)_ — Lists markets, optionally filtered by IDs, slugs, status flags, volume range, start/end dates, categories, market types, tag IDs, game ID or sports market…
- `get_market_by_id` _(read)_ — Retrieves one market by its numeric ID. Returns the market's full details: question, slug, status, dates, sides, best bid/ask quotes, tags, subject, price…
- `get_market_by_slug` _(read)_ — Retrieves one market by its slug. Returns the market's full details: question, ID, status, dates, sides, best bid/ask quotes, tags, subject, price terms and…
- `get_market_bbo` _(read)_ — Retrieves lightweight live market data for one market by slug. Returns best bid and best ask, current and last-trade prices, settlement price, long/short…
- `get_market_book` _(read)_ — Retrieves the order book for one market by slug. Returns bid and offer price levels (price and quantity), the book state, the transaction time and market stats…
- `get_market_settlement` _(read)_ — Retrieves the settlement price of one market by slug. Returns the market slug and its settlement price as a number.
- `get_price_history` _(read)_ — Retrieves book-derived Yes (longPrice, normally from the best ask) and No (shortPrice, normally one minus the best bid) display prices over time for one…
- `get_asset_price_history` _(read)_ — Gets reference price history for crypto, gold and silver price markets as a dense, ascending OHLC candle series per requested asset between `from` and `to`,…
- `list_series` _(read)_ — Lists series (e.g., NFL 2025-26 Season), optionally filtered by slug, active state or recurrence and paged with limit/offset. Returns each series' ID, slug,…
- `get_series_by_id` _(read)_ — Retrieves a single series by its numeric ID. Returns the series' ID, slug, title, subtitle, recurrence, image, active flag and timestamps.
- `list_sports` _(read)_ — Lists all sports. Returns each sport's ID, slug, name, image and tag ID, with its leagues (ID, slug, name, abbreviation, active series ID) nested under it.
- `get_sport_by_slug` _(read)_ — Gets a single sport by its slug. Returns the sport's ID, name, image and tag ID with all of its leagues attached.
- `list_sport_events` _(read)_ — Lists events for a sport by its slug, in either the games ('sport') or 'futures' tab and the 'general' or 'trending' section. Returns the events (with markets,…
- `list_leagues` _(read)_ — Lists leagues across all sports, at most 50 per page. Returns each league's ID, slug, name, abbreviation, parent sport ID and active series ID; page with…
- `get_league_by_slug` _(read)_ — Gets a single league by its slug. Returns the league's ID, name, abbreviation, parent sport ID, tag ID, active series ID and operational status.
- `list_league_events` _(read)_ — Lists events for a league by its slug, taken from the league's active series, in either the games ('sport') or 'futures' tab and the 'general' or 'trending'…
- `list_tags` _(read)_ — Lists tags in ranked order, optionally filtered by slug, tag IDs, parent tag or a case-insensitive label substring. Returns each tag's ID, label, slug, image,…
- `get_tag_by_slug` _(read)_ — Gets a single tag by its slug. Returns the tag's ID, label, image, tradable flag, league and sport details, parent ID and subtags.
- `get_tag_by_id` _(read)_ — Gets a single tag by its numeric ID. Returns the tag's label, slug, image, tradable flag, league and sport details, parent ID and subtags.
- `list_tag_events` _(read)_ — Lists events carrying a given tag slug, sorted by volume descending unless orderBy/orderDirection say otherwise. Returns each event's ID, ticker, slug, title,…
- `search_events_and_markets` _(read)_ — Runs a full-text search across Polymarket events and markets, optionally filtered by series, market type, start/closed time, status or combo-enabled markets.…
- `list_open_orders` _(read)_ — Lists the authenticated account's open orders, optionally limited to specific markets. Returns each order's `id`, market slug, intent, type, price,…
- `get_order` _(read)_ — Gets one order by its exchange-assigned ID (from list_open_orders or create_order). Returns the order's market, intent, type, price, original/filled/remaining…
- `preview_order` _(read)_ — Previews an order without placing it: validates the same parameters create_order accepts and returns the order as it would be entered. Nothing is submitted to…
- `create_order` _(write)_ — Places a real order on the exchange for the authenticated account to buy or sell YES/NO contracts in one market; it can fill immediately and commits account…
- `modify_order` _(write)_ — Modifies an existing open order (ID from list_open_orders) — it can overwrite the price, quantity, time in force, good-till time and maker-only flag; the…
- `cancel_order` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Cancels one open order by its exchange-assigned ID (from list_open_orders), removing its…
- `cancel_all_open_orders` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Cancels ALL open orders of the authenticated account in the markets listed in `slugs`. If…
- `close_position` _(write)_ — Places a market sell order for the ENTIRE position the authenticated account holds in one market (YES or NO contracts), exiting it at the best available price;…
- `create_multiple_orders` _(write)_ — Places 1–20 real orders on the exchange in one request, each taking the same fields as create_order; they can fill immediately and commit account funds, so…
- `cancel_multiple_orders` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Cancels the 1–20 listed open orders in one request, removing their remaining unfilled…
- `modify_multiple_orders` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Modifies the 1–20 listed open orders in one request, overwriting each order's price,…
- `list_positions` _(read)_ — Lists the user's trading positions across all markets, or only the position for one market when `market` is given. Returns a map of market slug to position…
- `list_activities` _(read)_ — Lists the user's account activity history: trades, position resolutions (market settlements) and account balance changes such as deposits, withdrawals,…
- `get_account_balances` _(read)_ — Gets the user's current account balances, one entry per currency. Returns current fiat balance, buying power (capital available to trade after security…
- `list_incentive_programs` _(read)_ — Lists active and historical incentive programs grouped by market. Returns each market's slug, instrument state, category and its time periods (program ID and…
- `list_incentive_earnings` _(read)_ — Lists the authenticated user's incentive rewards, where each entry sums all payouts for one market on one Eastern Time date. Returns reward amount, program…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/polymarket/connect/claude
- ChatGPT: https://mewcp.com/mcp/polymarket/connect/chatgpt
- Grok: https://mewcp.com/mcp/polymarket/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/polymarket/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/polymarket/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/polymarket/connect/vscode
- Cursor: https://mewcp.com/mcp/polymarket/connect/cursor
- Codex: https://mewcp.com/mcp/polymarket/connect/codex
- Claude Code: https://mewcp.com/mcp/polymarket/connect/claude-code
- OpenCode: https://mewcp.com/mcp/polymarket/connect/opencode
- OpenClaw: https://mewcp.com/mcp/polymarket/connect/openclaw
- Antigravity: https://mewcp.com/mcp/polymarket/connect/antigravity
- Hermes: https://mewcp.com/mcp/polymarket/connect/hermes
- Kimi Code: https://mewcp.com/mcp/polymarket/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/polymarket/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/polymarket/connect/devin-desktop
- Zed: https://mewcp.com/mcp/polymarket/connect/zed
- Muse Code: https://mewcp.com/mcp/polymarket/connect/muse-code
- Cline: https://mewcp.com/mcp/polymarket/connect/cline
- Kilo Code: https://mewcp.com/mcp/polymarket/connect/kilo-code
- Kiro: https://mewcp.com/mcp/polymarket/connect/kiro
- Junie: https://mewcp.com/mcp/polymarket/connect/junie
- Amp: https://mewcp.com/mcp/polymarket/connect/amp
- Qwen Code: https://mewcp.com/mcp/polymarket/connect/qwen-code
- Goose: https://mewcp.com/mcp/polymarket/connect/goose
- Python: https://mewcp.com/mcp/polymarket/connect/python
- TypeScript: https://mewcp.com/mcp/polymarket/connect/typescript