
Polymarket Agent Mcp
io.github.demwick由 GitHub 帳號 demwick 發布v1.7.0更新於 Oct 24, 2026
Polymarket trading, market discovery, copy trading and backtesting — 48 MCP tools.
概覽
本機 MCP 伺服器,讓助理探索、分析並交易 Polymarket 預測市場,支援跟單交易、回測與投資組合風險分析。
- 可以做什麼
- 搜尋、瀏覽並比較市場、事件與頂尖交易者,包含熱門、精選與聰明資金流向訊號,以及即時價格與歷史價格。為市場與交易者評分,檢查流動性與持倉大戶,並取得買入/賣出/持有建議。下單、批次下單、限價單與取消訂單,並在預覽模式與實盤模式間切換。關注交易者、執行自動跟單監控、調整關注清單並回測交易者過往交易。檢視持倉、餘額、損益、風險與最佳化建議,設定停損停利規則,並掃描套利機會。管理設定、安全限額、交易歷史、關注清單與儀表板。
- 適用情境
- 適合讓助理研究預測市場、評估交易者、模擬跟單策略,或從本機用戶端向 Polymarket 下真實訂單。預覽模式可在不花錢的情況下安全探索。
- 執行需求
- 透過 stdio 在本機執行,通常用 npx 或全域 npm 安裝(需 Node.js),也可使用 Docker 映像。實盤交易需 COPY_MODE=live,以及 Polymarket CLOB 憑證 POLY_API_KEY、POLY_API_PASSPHRASE、POLY_API_SECRET,錢包金鑰 POLY_PRIVATE_KEY 與 POLY_FUNDER_ADDRESS。需連線 Polymarket API 與公開價格 WebSocket,並使用本機 SQLite 資料庫檔案。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Polymarket Agent Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Polymarket Agent MCP Server
[polymarket-agent-mcp MCP server]
[npm version] [CI] [GitHub last commit] [License: MIT] [Node.js] [TypeScript] [MCP SDK] [Tools] [Tests] [SafeSkill 97/100] [Socket Badge] [OpenSSF Scorecard] [OpenSSF Best Practices]
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
Quick Start
npm Install
Docker
Claude Code Config
Add to ~/.claude/settings.json:
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
Analysis
Trading
Copy Trading
Portfolio & Risk
Configuration
Architecture
HTTP Transport & Deployment
The server supports two transport modes:
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
Endpoints
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 <token> 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:
Or build it yourself from the included Dockerfile:
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 and SECURITY.md.
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 — machine-readable version in .well-known/mcp/server-card.json.
WebSocket scope: The WSS connection to Polymarket is inbound-only for public price updates. No wallet, credential, or user identity is transmitted — it carries the same public feed available to any browser client.
Secrets scope: Every secret environment variable is held in memory only, never logged, never persisted, and sent to exactly one host (see SECURITY.md).
Development
License
MIT - see LICENSE
來源:README.md,提交 ebe901c
工具
0版本歷史
1- v1.7.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分