Skip to content
VS Code

polymarket agent mcp for VS Code

io.github.demwick/polymarket-agent-mcp

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

client:VS Code transport:stdio runtime:npm

Install polymarket agent mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "copy-mode",
      "description": "COPY_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "poly-private-key",
      "description": "POLY_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "poly-api-key",
      "description": "POLY_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "poly-api-secret",
      "description": "POLY_API_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "poly-api-passphrase",
      "description": "POLY_API_PASSPHRASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "poly-funder-address",
      "description": "POLY_FUNDER_ADDRESS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "daily-budget",
      "description": "DAILY_BUDGET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "min-conviction",
      "description": "MIN_CONVICTION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "chain-id",
      "description": "CHAIN_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "db-path",
      "description": "DB_PATH",
      "password": true
    }
  ],
  "servers": {
    "polymarket-agent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp"
      ],
      "env": {
        "COPY_MODE": "${input:copy-mode}",
        "POLY_PRIVATE_KEY": "${input:poly-private-key}",
        "POLY_API_KEY": "${input:poly-api-key}",
        "POLY_API_SECRET": "${input:poly-api-secret}",
        "POLY_API_PASSPHRASE": "${input:poly-api-passphrase}",
        "POLY_FUNDER_ADDRESS": "${input:poly-funder-address}",
        "DAILY_BUDGET": "${input:daily-budget}",
        "MIN_CONVICTION": "${input:min-conviction}",
        "CHAIN_ID": "${input:chain-id}",
        "DB_PATH": "${input:db-path}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

polymarket agent mcp in other clients