Skip to main content

What it is

@carbon-copy/polymarket-mcp is a production MCP stdio server for Polymarket. It exposes a canonical public tool surface for:
  • market and event discovery
  • batched price, midpoint, spread, and order book retrieval
  • authenticated account and trading workflows
  • relayer and builder-relayer execution flows
  • bridge operations and transaction building
  • prompt-driven analysis and runtime resources for agents
The docs in this section track the canonical MCP surface asserted by the server smoke test on main.

Who it is for

Agent builders

Add a stable Polymarket MCP server to Claude, Cursor, or any stdio-compatible MCP client.

Traders

Research markets, prepare orders, and execute with explicit confirmation gates for mutations.

Researchers

Pull repeatable market snapshots, historical price series, event metadata, and rewards context.

Integrators

Build higher-level workflows on top of canonical wrappers like list_markets, place_order, build_transactions, and relayer_execute.

Major capabilities

  • Public discovery: list_markets, get_market, list_events, get_event, search.
  • Batched market data: get_order_books, get_prices, get_midpoints, get_spreads, get_last_trade_prices, get_price_history.
  • Trading and account: ensure_api_key, prepare_order, place_order, cancel_orders, balances/allowances, and rewards wrappers.
  • Bridge and transaction building: supported assets, bridge status/deposit helpers, and unified build_transactions.
  • Relayer flows: relayer and builder-relayer nonce, payload, execution, deployment, deployed-status, and polling tools.
  • Agent context surfaces: prompts market-analysis, portfolio-review, execution-checklist; resources polymarket://contracts, polymarket://status, polymarket://endpoints; resource template polymarket://markets/{conditionId}.

Safety model and secret handling

Keep signer keys and API credentials in environment variables or a secrets manager. Never paste secrets into prompts or commit them to source control.
The server is designed for agent-safe execution:
  • Mutation guard: state-changing tools require confirm: true, including place_order, cancel_orders, relayer_execute, relayer_deploy_safe, builder_relayer_execute, and builder_relayer_deploy.
  • Split read/write surface: public discovery works without secrets; authenticated tools stay feature-gated behind the required env vars.
  • Redacted runtime status: polymarket://status reports auth/runtime readiness without exposing actual secret values.
  • Wrapper-first design: canonical wrappers replace older fragmented tools so agents can reason over fewer, more explicit entry points.

Quickstart

One-command MCP client setup with npx -y @carbon-copy/polymarket-mcp.

Capabilities Reference

Canonical tool groups, wrapper semantics, prompts, and resources.

Workflow: Market Analysis

A practical agent workflow built on the current pluralized market-data tools.