Finance & commerce / polymarket-agent-mcp

polymarket-agent-mcp

io.github.demwick/polymarket-agent-mcp · v1.7.0

Polymarket trading, market discovery, copy trading and backtesting — 48 MCP tools.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #19 of 300 Finance & commerce servers on Socketlist by score, with 19 GitHub stars and a last code push 24d ago.

Install

npx -y polymarket-agent-mcp

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect polymarket-agent-mcp to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env POLY_PRIVATE_KEY=<poly_private_key> --env POLY_API_KEY=<poly_api_key> --env POLY_API_SECRET=<poly_api_secret> --env POLY_API_PASSPHRASE=<poly_api_passphrase> --transport stdio polymarket-agent-mcp -- npx -y polymarket-agent-mcp

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "polymarket-agent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp"
      ],
      "env": {
        "POLY_PRIVATE_KEY": "${POLY_PRIVATE_KEY}",
        "POLY_API_KEY": "${POLY_API_KEY}",
        "POLY_API_SECRET": "${POLY_API_SECRET}",
        "POLY_API_PASSPHRASE": "${POLY_API_PASSPHRASE}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "polymarket-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp"
      ],
      "env": {
        "POLY_PRIVATE_KEY": "${env:POLY_PRIVATE_KEY}",
        "POLY_API_KEY": "${env:POLY_API_KEY}",
        "POLY_API_SECRET": "${env:POLY_API_SECRET}",
        "POLY_API_PASSPHRASE": "${env:POLY_API_PASSPHRASE}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
COPY_MODENoNoExecution mode: 'preview' simulates trades in a local SQLite DB (default, safe for inspection); 'live' places real orders on Polymarket and requires all POLY_* credentials.
POLY_PRIVATE_KEYNoYesPolygon wallet private key used to sign CLOB orders. Required only when COPY_MODE=live. Never logged, persisted, or transmitted outside signed order bodies.
POLY_API_KEYNoYesPolymarket CLOB API key. Required only when COPY_MODE=live.
POLY_API_SECRETNoYesPolymarket CLOB API secret. Required only when COPY_MODE=live.
POLY_API_PASSPHRASENoYesPolymarket CLOB API passphrase. Required only when COPY_MODE=live.
POLY_FUNDER_ADDRESSNoNoPolymarket funder wallet address (proxy wallet) used for live trading.
DAILY_BUDGETNoNoMaximum USDC the agent may spend per day. Used by BudgetManager to cap copy-trading exposure.
MIN_CONVICTIONNoNoMinimum conviction score (0–100) required before a copy trade is executed.
CHAIN_IDNoNoEVM chain ID for Polymarket (137 = Polygon mainnet).
DB_PATHNoNoOptional override for the SQLite database path. Defaults to a package-local file.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "polymarket-agent-mcp"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars19
npm weekly downloads50
Last push24d ago
LicenceMIT
Open issues4
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-08-07

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers compare all →

eToro Trading MCP

Score 81

197 eToro API tools for agents: market data, watchlists, feeds, demo and real trading.

★ 8↓ 800/wkMITpushed 22d ago
Finance & commerceData & analytics

mcp

Score 76

Crypto MCP: 105 tools across news, market, on-chain, sentiment, indicators, agent generation.

★ 1MITpushed 18d ago
Finance & commerceData & analytics

actually

Score 70

Matches news to Polymarket markets and returns the market's probability. Optional capped trading.

★ 0↓ 79/wkMITpushed 18d ago
Finance & commerce

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free