pmq (Polymarket CLOB V2)

Fail-closed Polymarket CLOB V2 data and execution; trading tools gated behind PMQ_MCP_LIVE=1.

stdiocommunityservice

Package Details

Transportstdio
Runtimeuvx

Environment Variables

PMQ_MCP_LIVE

Set to 1 to register the trading tools (fak_buy, fak_sell, cancel_and_reconcile). Unset or any other value keeps the server read-only.

PMQ_MCP_MAX_USD

Per-order hard cap in USD enforced before any live buy (default 10). Only relevant when PMQ_MCP_LIVE=1.

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). Only used when trading tools are enabled.

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_BUILDER_CODE

Optional bytes32 builder attribution code. Defaults to the maintainer's public zero-commission code (disclosed in the README); set your own or leave empty to opt out.