PluginBench
MCP Server
Active
MIT

pmq (Polymarket CLOB V2) MCP Server

io.github.crp4222/pmq

What is the pmq (Polymarket CLOB V2) MCP server?

Production-proven Polymarket CLOB V2 trading and data. Fail-closed fills; keys stay local.

How to install pmq (Polymarket CLOB V2)

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • PMQ_MCP_LIVE

    Set to 1 to register the LIVE trading tools (fak_buy, fak_sell, cancel_and_reconcile). Overridden by PMQ_MCP_PAPER=1; with neither set the server is read-only.

  • PMQ_MCP_PAPER

    Set to 1 for paper trading: trading tools simulate displayed top-of-book fills against real books. No keys or exchange orders. Wins over PMQ_MCP_LIVE.

  • PMQ_MCP_PAPER_USD

    Initial paper balance in USD when a new state file is created (default 1000). Only relevant when PMQ_MCP_PAPER=1.

  • PMQ_MCP_MAX_USD

    Per-order hard cap in USD enforced before any buy, live and paper alike (default 10).

  • PMQ_MCP_DAILY_USD

    Durable cumulative BUY budget per UTC day (off when unset). Unknown live results retain the requested reservation through that UTC day.

  • PMQ_MCP_STATE_FILE

    Local durable paper-ledger and daily-budget file. Defaults to $XDG_STATE_HOME/pmq or ~/.local/state/pmq; it contains no key material.

  • POLY_PRIVATE_KEY
    secret

    EOA private key used only to sign orders locally when trading tools are enabled. Never printed or transmitted. Not needed for the read-only tools.

  • POLY_FUNDER

    Funder wallet address. Required with signature_type > 0 (deposit wallets); also an optional default for public account_portfolio reads.

  • POLY_SIG_TYPE

    Polymarket signature type: 0 EOA, 1 POLY_PROXY, 2 POLY_GNOSIS_SAFE, 3 POLY_1271 (app deposit wallet). Run pmq-doctor if unsure.

  • POLY_ORDER_LOG

    Append-only file of this server's own order ids. Enables order attribution when several senders share one wallet: account totals then count only orders placed through this server. Optional; without it behavior is unchanged.

  • POLY_FOREIGN_ORDER_LOGS

    Colon-separated registry files of the wallet's other order-senders. Reconciliation claims trades unknown to every registry. Sound only if every sender on the wallet keeps a registry.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "pmq": {
      "command": "uvx",
      "args": [
        "pmquant"
      ],
      "env": {
        "PMQ_MCP_LIVE": "<YOUR_PMQ_MCP_LIVE>",
        "PMQ_MCP_PAPER": "<YOUR_PMQ_MCP_PAPER>",
        "PMQ_MCP_PAPER_USD": "<YOUR_PMQ_MCP_PAPER_USD>",
        "PMQ_MCP_MAX_USD": "<YOUR_PMQ_MCP_MAX_USD>",
        "PMQ_MCP_DAILY_USD": "<YOUR_PMQ_MCP_DAILY_USD>",
        "PMQ_MCP_STATE_FILE": "<YOUR_PMQ_MCP_STATE_FILE>",
        "POLY_PRIVATE_KEY": "<YOUR_POLY_PRIVATE_KEY>",
        "POLY_FUNDER": "<YOUR_POLY_FUNDER>",
        "POLY_SIG_TYPE": "<YOUR_POLY_SIG_TYPE>",
        "POLY_ORDER_LOG": "<YOUR_POLY_ORDER_LOG>",
        "POLY_FOREIGN_ORDER_LOGS": "<YOUR_POLY_FOREIGN_ORDER_LOGS>"
      }
    }
  }
}

Related MCP servers

Secure MCP server for Cloudflare DNS, Transform Rules, and Page Rules

0
Python
AGPL-3.0
View repository →

RSS/Atom feed reader MCP server with SQLite backend

0
Python
AGPL-3.0
View repository →
MCMCP Gemini logo

MCP server for Google Gemini AI - text, image, video, research, and more

0
Python
AGPL-3.0
View repository →
MCMCP Gitlab logo

Secure MCP server for GitLab projects, merge requests, issues, and pipelines

1
Python
AGPL-3.0
View repository →

Secure MCP server for Google Search Console analytics, sitemaps, and URL inspection

0
Python
AGPL-3.0
View repository →

Secure MCP server for MediaWiki wikis — search, pages, categories, and more

0
Python
AGPL-3.0
View repository →