Koskamo

Polymarket Agent MCP

An open-source Model Context Protocol server that enables AI agents to interact with Polymarket prediction markets. It provides 48 tools for searching markets, executing trades, tracking smart money, copy trading, backtesting strategies, and managing portfolio risk and optimization.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Polymarket Agent MCP logo, by demwickCommunity listingLocal stdioSource reviewed; not executedPublished by demwick
You need:npm install -g polymarket-agent-mcp
Vendor documentation

What you can do with it

  • Search for trending or keyword-specific prediction markets
  • Execute buy and sell orders on Polymarket markets
  • Backtest trading strategies using historical market data
  • Track smart money flow and top traders for copy trading

Source and maintenance

Community listingRegistry 1.7.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

polymarket-agent-mcp 1.7.0

npm
polymarket-agent-mcp package definition
{
  "version": "1.7.0",
  "transport": "stdio",
  "identifier": "polymarket-agent-mcp",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "COPY_MODE",
      "format": "string",
      "choices": [
        "preview",
        "live"
      ],
      "default": "preview",
      "description": "Execution mode: 'preview' simulates trades in a local SQLite DB (default, safe for inspection); 'live' places real orders on Polymarket and requires all POLY_* credentials."
    },
    {
      "name": "POLY_PRIVATE_KEY",
      "format": "string",
      "description": "Polygon wallet private key used to sign CLOB orders. Required only when COPY_MODE=live. Never logged, persisted, or transmitted outside signed order bodies."
    },
    {
      "name": "POLY_API_KEY",
      "format": "string",
      "description": "Polymarket CLOB API key. Required only when COPY_MODE=live."
    },
    {
      "name": "POLY_API_SECRET",
      "format": "string",
      "description": "Polymarket CLOB API secret. Required only when COPY_MODE=live."
    },
    {
      "name": "POLY_API_PASSPHRASE",
      "format": "string",
      "description": "Polymarket CLOB API passphrase. Required only when COPY_MODE=live."
    },
    {
      "name": "POLY_FUNDER_ADDRESS",
      "format": "string",
      "description": "Polymarket funder wallet address (proxy wallet) used for live trading."
    },
    {
      "name": "DAILY_BUDGET",
      "format": "number",
      "default": "20",
      "description": "Maximum USDC the agent may spend per day. Used by BudgetManager to cap copy-trading exposure."
    },
    {
      "name": "MIN_CONVICTION",
      "format": "number",
      "default": "3",
      "description": "Minimum conviction score (0–100) required before a copy trade is executed."
    },
    {
      "name": "CHAIN_ID",
      "format": "number",
      "default": "137",
      "description": "EVM chain ID for Polymarket (137 = Polygon mainnet)."
    },
    {
      "name": "DB_PATH",
      "format": "filepath",
      "description": "Optional override for the SQLite database path. Defaults to a package-local file."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "polymarket-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp@1.7.0"
      ],
      "env": {
        "COPY_MODE": "<YOUR_COPY_MODE>",
        "POLY_PRIVATE_KEY": "<YOUR_POLY_PRIVATE_KEY>",
        "POLY_API_KEY": "<YOUR_POLY_API_KEY>",
        "POLY_API_SECRET": "<YOUR_POLY_API_SECRET>",
        "POLY_API_PASSPHRASE": "<YOUR_POLY_API_PASSPHRASE>",
        "POLY_FUNDER_ADDRESS": "<YOUR_POLY_FUNDER_ADDRESS>",
        "DAILY_BUDGET": "<YOUR_DAILY_BUDGET>",
        "MIN_CONVICTION": "<YOUR_MIN_CONVICTION>",
        "CHAIN_ID": "<YOUR_CHAIN_ID>",
        "DB_PATH": "<YOUR_DB_PATH>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "polymarket-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp@1.7.0"
      ],
      "env": {
        "COPY_MODE": "<YOUR_COPY_MODE>",
        "POLY_PRIVATE_KEY": "<YOUR_POLY_PRIVATE_KEY>",
        "POLY_API_KEY": "<YOUR_POLY_API_KEY>",
        "POLY_API_SECRET": "<YOUR_POLY_API_SECRET>",
        "POLY_API_PASSPHRASE": "<YOUR_POLY_API_PASSPHRASE>",
        "POLY_FUNDER_ADDRESS": "<YOUR_POLY_FUNDER_ADDRESS>",
        "DAILY_BUDGET": "<YOUR_DAILY_BUDGET>",
        "MIN_CONVICTION": "<YOUR_MIN_CONVICTION>",
        "CHAIN_ID": "<YOUR_CHAIN_ID>",
        "DB_PATH": "<YOUR_DB_PATH>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "polymarket-agent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp@1.7.0"
      ],
      "env": {
        "COPY_MODE": "<YOUR_COPY_MODE>",
        "POLY_PRIVATE_KEY": "<YOUR_POLY_PRIVATE_KEY>",
        "POLY_API_KEY": "<YOUR_POLY_API_KEY>",
        "POLY_API_SECRET": "<YOUR_POLY_API_SECRET>",
        "POLY_API_PASSPHRASE": "<YOUR_POLY_API_PASSPHRASE>",
        "POLY_FUNDER_ADDRESS": "<YOUR_POLY_FUNDER_ADDRESS>",
        "DAILY_BUDGET": "<YOUR_DAILY_BUDGET>",
        "MIN_CONVICTION": "<YOUR_MIN_CONVICTION>",
        "CHAIN_ID": "<YOUR_CHAIN_ID>",
        "DB_PATH": "<YOUR_DB_PATH>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "polymarket-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp@1.7.0"
      ],
      "env": {
        "COPY_MODE": "<YOUR_COPY_MODE>",
        "POLY_PRIVATE_KEY": "<YOUR_POLY_PRIVATE_KEY>",
        "POLY_API_KEY": "<YOUR_POLY_API_KEY>",
        "POLY_API_SECRET": "<YOUR_POLY_API_SECRET>",
        "POLY_API_PASSPHRASE": "<YOUR_POLY_API_PASSPHRASE>",
        "POLY_FUNDER_ADDRESS": "<YOUR_POLY_FUNDER_ADDRESS>",
        "DAILY_BUDGET": "<YOUR_DAILY_BUDGET>",
        "MIN_CONVICTION": "<YOUR_MIN_CONVICTION>",
        "CHAIN_ID": "<YOUR_CHAIN_ID>",
        "DB_PATH": "<YOUR_DB_PATH>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Polymarket Agent MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.