
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 分