
Polymarket Mcp
io.github.0xChron由 GitHub 账号 0xChron 发布v0.1.1更新于 Oct 24, 2026
Read-only Polymarket prediction market data for AI agents.
概览
只读的 MCP 服务器,为助手提供 Polymarket 预测市场数据:市场搜索、详情、热门事件、持仓者、排行榜和钱包统计。
- 可以做什么
- 按标题或描述搜索市场,并按 slug 或链接获取单个市场的完整详情,以及按成交量、流动性或竞争度排序的热门事件。查询某个市场各结果的前列持仓者。读取按盈亏或成交量排序的交易者排行榜。查看某个钱包的未平仓头寸及其组合价值、盈亏、成交量和排行榜名次。参考资源解释 Polymarket 术语和工具使用流程,提示词可执行市场研究、交易者对比和热门扫描。
- 适用场景
- 适合让助手研究预测市场、对比交易者或钱包、扫描 Polymarket 热门事件,而无需离开对话。不适用于交易或订单簿数据,这些它并不提供。
- 运行要求
- 需要 Python 3.12+ 和 uv(或 Docker);Node.js 仅用于可选的 MCP Inspector。服务器以 streamable HTTP 在 本地运行,必须先启动再让 MCP 客户端连接。无需 API 密钥或钱包签名;需要访问 Polymarket 公开的 Gamma 和 Data API。
安装
在 SourceWeft 中
- 打开 控制台中的 Polymarket Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Polymarket MCP
MCP server that exposes read-only Polymarket prediction market data to AI agents. Tools wrap Polymarket's public Gamma (market discovery) and Data (positions, portfolio, leaderboard) APIs. There is no CLOB integration — this server cannot place trades or read order books.
Tools
All tools return markdown formatted for agent consumption. No API keys or wallet signing are required.
Resources
Static reference context (no API calls). Attach in MCP clients or read via Inspector.
Prompts
User-triggered workflow templates that orchestrate tools:
Requirements
Quick start
This server uses streamable HTTP at http://127.0.0.1:8000/mcp. Start the server first, then connect your MCP client to that URL.
On Windows, use the same commands in PowerShell, Command Prompt, or Git Bash. Leave the terminal open while your MCP client is connected.
Docker
Works the same on all platforms if Docker Desktop is installed:
FASTMCP_HOST=0.0.0.0 lets the server accept connections from outside the container.
Verify the server
Open MCP Inspector in another terminal:
Connect to http://localhost:8000/mcp using the Streamable HTTP transport.
Connect from an MCP client
This server uses the streamable-http transport (not stdio). Start the server first (see Quick start), then add the config below to your MCP client.
Claude Desktop
Go to Claude → Settings → Developer → Edit Config to open claude_desktop_config.json, then include the following:
If you already have other MCP servers configured, add the "polymarket" entry inside your existing mcpServers object instead of replacing the whole file.
Config file location if you prefer to edit it manually:
Save the file and fully quit and restart Claude Desktop. The server must be running in a terminal before you start a new chat.
Cursor
Go to Settings → Tools & MCP → New MCP Server to open ~/.cursor/mcp.json (Windows: %USERPROFILE%\.cursor\mcp.json), then add the same polymarket entry:
Restart Cursor after saving.
Example agent prompts
Once connected, an agent can call tools naturally:
- "Search Polymarket for active markets about Bitcoin ETFs"
- "What are the trending markets right now?"
- "Who are the top holders of the Trump election market?"
- "Show the all-time P&L leaderboard for crypto traders"
- "Get details for https://polymarket.com/event/will-bitcoin-hit-100k"
- "Show open positions for wallet
0x…" - "What is the all-time P&L and leaderboard rank for
0x…?"
In MCP Inspector, try the Prompts tab (e.g. research_market) or read Resources for the glossary and tool guide.
Configuration
Optional environment variables override API endpoints and server settings.
macOS / Linux / Git Bash
Windows (PowerShell)
Development
On macOS/Linux, make run, make test, and similar shortcuts in the Makefile wrap the same commands.
See docs/PROJECT_KNOWLEDGE_BASE.md for architecture, conventions, and how to add new tools.
License
MIT — see LICENSE.
来源:README.md,提交 2471b59
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分