原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Polymarket Agent MCP

作者:demwick版本 1.7.0i★ –i在你的电脑上运行
注册名称io.github.demwick/polymarket-agent-mcp

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 会计、财务与税务
  • 你需要填写:POLY_PRIVATE_KEY, POLY_API_KEY, POLY_API_SECRET, POLY_API_PASSPHRASE

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: COPY_MODE, POLY_PRIVATE_KEY, POLY_API_KEY, POLY_API_SECRET, POLY_API_PASSPHRASE, POLY_FUNDER_ADDRESS, DAILY_BUDGET, MIN_CONVICTION, CHAIN_ID, DB_PATH

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "polymarket-agent": {
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp"
      ],
      "env": {
        "COPY_MODE": "your-value",
        "POLY_PRIVATE_KEY": "your-value",
        "POLY_API_KEY": "your-value",
        "POLY_API_SECRET": "your-value",
        "POLY_API_PASSPHRASE": "your-value",
        "POLY_FUNDER_ADDRESS": "your-value",
        "DAILY_BUDGET": "your-value",
        "MIN_CONVICTION": "your-value",
        "CHAIN_ID": "your-value",
        "DB_PATH": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add polymarket-agent --env COPY_MODE=your-value --env POLY_PRIVATE_KEY=your-value --env POLY_API_KEY=your-value --env POLY_API_SECRET=your-value --env POLY_API_PASSPHRASE=your-value --env POLY_FUNDER_ADDRESS=your-value --env DAILY_BUDGET=your-value --env MIN_CONVICTION=your-value --env CHAIN_ID=your-value --env DB_PATH=your-value -- npx -y polymarket-agent-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "polymarket-agent": {
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp"
      ],
      "env": {
        "COPY_MODE": "your-value",
        "POLY_PRIVATE_KEY": "your-value",
        "POLY_API_KEY": "your-value",
        "POLY_API_SECRET": "your-value",
        "POLY_API_PASSPHRASE": "your-value",
        "POLY_FUNDER_ADDRESS": "your-value",
        "DAILY_BUDGET": "your-value",
        "MIN_CONVICTION": "your-value",
        "CHAIN_ID": "your-value",
        "DB_PATH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "polymarket-agent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp"
      ],
      "env": {
        "COPY_MODE": "your-value",
        "POLY_PRIVATE_KEY": "your-value",
        "POLY_API_KEY": "your-value",
        "POLY_API_SECRET": "your-value",
        "POLY_API_PASSPHRASE": "your-value",
        "POLY_FUNDER_ADDRESS": "your-value",
        "DAILY_BUDGET": "your-value",
        "MIN_CONVICTION": "your-value",
        "CHAIN_ID": "your-value",
        "DB_PATH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • COPY_MODE env
    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.
  • POLY_PRIVATE_KEY 机密 env
    Polygon 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_KEY 机密 env
    Polymarket CLOB API key. Required only when COPY_MODE=live.
  • POLY_API_SECRET 机密 env
    Polymarket CLOB API secret. Required only when COPY_MODE=live.
  • POLY_API_PASSPHRASE 机密 env
    Polymarket CLOB API passphrase. Required only when COPY_MODE=live.
  • POLY_FUNDER_ADDRESS env
    Polymarket funder wallet address (proxy wallet) used for live trading.
  • DAILY_BUDGET env
    Maximum USDC the agent may spend per day. Used by BudgetManager to cap copy-trading exposure.
  • MIN_CONVICTION env
    Minimum conviction score (0–100) required before a copy trade is executed.
  • CHAIN_ID env
    EVM chain ID for Polymarket (137 = Polygon mainnet).
  • DB_PATH env
    Optional override for the SQLite database path. Defaults to a package-local file.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 demwick 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“会计、财务与税务”中的其他服务器比较i

  • 星标数多于此分类中其他 1734 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1734 个服务器的 30% 更新
  • 基础检查结果等于或优于此分类中其他 1734 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Polymarket Agent MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:POLY_PRIVATE_KEY, POLY_API_KEY, POLY_API_SECRET, POLY_API_PASSPHRASE

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.7.0)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Finance Toolkit, SolidInvoice, Korea Tax Calculator

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Finance Toolkit

作者:JerBouma

500+ transparent financial methods calculated from raw statements, not third-party endpoints.

电脑或云端★ 5,496MIT昨天更新
安装

SolidInvoice

作者:SolidInvoice

Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.

在云端运行★ 981MIT8天前更新
安装

Korea Tax Calculator

作者:UpstageAI

Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.

在你的电脑上运行★ 97MIT昨天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Polymarket Agent MCP Server

Trade, analyze, and automate Polymarket prediction markets through AI.

The most comprehensive MCP server for Polymarket — 48 tools spanning direct trading, market discovery, smart money tracking, copy trading, backtesting, risk management, and portfolio optimization. Works with Claude Code, Cursor, or any MCP-compatible client.


Tool Overview

CategoryCountHighlights
Discovery9Search, trending, featured, events, related markets, smart money flow
Analysis8AI opportunity scoring, conviction rating, price history, market quality, top holders, comparison
Trading8Buy, sell, batch orders, limit orders, order management, safety limits
Copy Trading5Watch traders, auto-monitor, auto-rebalance, backtest
Portfolio10Positions, P&L, balance, risk assessment, SL/TP, optimization, market alerts
Utilities8Dashboard, config, trade history, watchlists, agent logging

Quick Start

npm Install
npm install -g polymarket-agent-mcp
Docker
docker compose up
Claude Code Config

Add to ~/.claude/settings.json:

{

"mcpServers": { "polymarket": { "command": "npx", "args": ["polymarket-agent-mcp"] } } }


Usage Examples

Just talk naturally to your AI assistant:

"What are the trending markets today?"

"Search for bitcoin prediction markets"

"Buy $5 on this market"

"Score this trader — should I copy them?"

"Backtest this trader with $10 per trade"

"Show smart money flow — what are the top traders buying?"

"Set stop-loss at 0.30 on my BTC position"

"Optimize my portfolio with a balanced strategy"

"Scan for arbitrage opportunities"

"Compare these two markets side by side"


All 48 Tools

Discovery
ToolDescription
markets.searchSearch markets by keyword (bitcoin, election, UFC...)
traders.discoverFind top traders by PnL and volume
markets.discoverFind markets by end date and category
markets.trendingTop markets by 24h/7d/30d volume
markets.featuredMost liquid markets by category (politics, sports, crypto...)
wta.discoverWTA tennis markets with stink bid prices
flow.discoverSmart money signals — multiple top traders buying same market
markets.relatedFind markets related to a topic or market
markets.eventsBrowse all markets under an event
Analysis
ToolDescription
markets.analyzeAI-powered BUY/SELL/HOLD recommendation
traders.analyzeDetailed trader profile, win rate, P&L
traders.scoreConviction score (0-100) across 5 dimensions
markets.checkMarket quality — spread, depth, price range
markets.priceLive bid/ask/spread prices
markets.price_historyHistorical prices with sparkline (1h to 1m)
markets.holdersBiggest position holders in a market
markets.compareSide-by-side comparison of 2-5 markets
Trading
ToolDescription
orders.buyBuy shares on any market
orders.sellSell an open position
orders.batchExecute up to 10 orders at once
wta.bidPlace limit orders at discount
orders.cancelCancel all open orders
orders.listView pending limit orders
orders.statusCheck status of a specific order
config.go_liveSwitch from preview to live mode
Copy Trading
ToolDescription
watchlist.addAdd/remove traders from watchlist
monitor.startStart automatic copy trading loop
monitor.stopStop monitoring
watchlist.rebalanceRemove underperforming traders
traders.backtestSimulate copying a trader's past trades
Portfolio & Risk
ToolDescription
portfolio.balanceAccount balance, budget, and P&L
portfolio.getMulti-wallet overview with P&L per trader
positions.listOpen/closed positions
positions.closeManually close a position
positions.set_exit_rulesSet stop-loss and take-profit levels
positions.check_exitsCheck positions for resolution
portfolio.riskPortfolio risk scoring and warnings
portfolio.optimizeAI-powered optimization (conservative/balanced/aggressive)
markets.watchMarket watchlist with price alerts
markets.watch_priceLive WebSocket price subscriptions
markets.arbitrageFind YES+NO price discrepancies
Configuration
ToolDescription
config.setUpdate bot settings
config.safety_limitsMax order size, exposure cap, spread tolerance
dashboard.getTerminal-formatted dashboard
trades.historyTrade history with filters
watchlist.listShow watched wallets
agent.log_cycleLog agent cycle for dashboard
traders.positionsView a trader's open positions

Architecture

Claude Code / Cursor / AI Client

| | MCP Protocol (stdio) v +------------------+ | MCP Server | 48 tools registered | (index.ts) | +--------+---------+ | +----+----+ | | Tools Services | | v v +-------+ +------------+ | Zod | | Backtester | | Input | | Scorer | | Valid. | | SmartFlow | +-------+ | Filter | | Tracker | | Executor | +-----+------+ | +-------+-------+ | | | Data Gamma CLOB API API API


HTTP Transport & Deployment

The server supports two transport modes:

ModeActivationUse case
stdio (default)npx polymarket-agent-mcpClaude Code, Cursor, local MCP clients
HTTP--http flag or PORT env varSelf-hosted Docker, private VPS, single-user remote
Deployment model — read this first

This server is designed for single-tenant use. Each client runs its own instance with its own SQLite database (copytrader.db), watchlist, daily budget, trade history, and monitor loop. The stdio mode is the recommended path for most users — npx polymarket-agent-mcp or the Claude Code config above gives you a fully isolated, local-only instance.

⚠️ Do not expose an HTTP instance publicly. The server has no per-user isolation: watchlist, positions, budget, and the background monitor loop are shared across every client that connects. A public HTTP deployment is effectively a shared workspace, not a multi-tenant SaaS. If you enable live trading, a public endpoint can drain your Polymarket wallet from any caller. Always configure the HTTP bearer-token env var (see PERMISSIONS.md) and keep the endpoint behind a firewall, VPN, or auth proxy.

Starting in HTTP mode
# Flag

node dist/index.js --http

Or set PORT (defaults to 3000)

PORT=8080 node dist/index.js

Endpoints
PathMethodDescription
/mcpPOSTMCP protocol endpoint (Streamable HTTP transport)
/healthGETHealth check — returns { status, version, db }
/.well-known/mcp/server-card.jsonGETMCP discovery card (tools, permissions, data handling)
/GETServer info with version and endpoint list
Authentication

The HTTP transport accepts an optional bearer token gated by an environment variable — the exact name is documented in PERMISSIONS.md. When set, clients must send Authorization: Bearer on requests to /mcp; when unset the endpoint is open (suitable only for local or private networks).

Docker deployment

A prebuilt multi-arch image is published to GHCR on every release:

docker pull ghcr.io/demwick/polymarket-agent-mcp:1.7.0

Or build it yourself from the included Dockerfile:

docker build -t polymarket-mcp .

docker run -p 3000:3000 -v mcp-data:/app/data \ -e DAILY_BUDGET=50 \ polymarket-mcp

To require bearer-token auth on /mcp, also pass the HTTP bearer env var

listed in PERMISSIONS.md (e.g. -e =my-secret-key).

DB_PATH (default /app/data/copytrader.db) controls where SQLite data is persisted — mount a volume to keep it across restarts.


Configuration

All secrets stay in memory for the lifetime of the process — they are never written to the database, logs, or disk, and are only transmitted to their designated Polymarket API endpoint over HTTPS. The complete authoritative env var list, with per-variable sensitivity and scope, lives in [PERMISSIONS.md](PERMISSIONS.md) and [SECURITY.md](SECURITY.md).

VariableRequiredDefaultDescription
COPY_MODENopreviewpreview (simulated) or live (real orders)
DAILY_BUDGETNo20Max daily spend in USDC
MIN_CONVICTIONNo3Min trade size to copy ($)
Wallet signing keyLive only-Locally signs CLOB order payloads, never persisted (see PERMISSIONS.md for exact env var name)
CLOB API credentialsLive only-API key / secret / passphrase — sent only to clob.polymarket.com (see PERMISSIONS.md for exact names)

Safety Features

  • Configurable order size limits
  • Total exposure caps
  • Per-market position limits
  • Minimum liquidity requirements
  • Maximum spread tolerance
  • Stop-loss / take-profit automation
  • Preview mode (default) — no real money

Permissions & Capabilities

This package has a transparent, minimal footprint. Full disclosure: [PERMISSIONS.md](PERMISSIONS.md) — machine-readable version in .well-known/mcp/server-card.json.

CategoryScope
Network (outbound)3 Polymarket HTTPS APIs + 1 inbound-only WSS public price stream (ws-subscriptions-clob.polymarket.com)
FilesystemSingle SQLite database file + .env read at startup — nothing else

| Environment | API credentials (live mode only,

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx