Polymarket News Mcp

io.github.mobymedia由 GitHub 账号 mobymedia 发布v0.2.2更新于 Oct 29, 2026

Match news headlines to the Polymarket prediction markets they move - live odds and deep links

已验证STDIO仅桌面网页搜索与抓取金融

概览

AI 生成的概览

把新闻标题匹配到相关的 Polymarket 预测市场,返回实时赔率、匹配置信度与深链;默认只读。

可以做什么
  • 把一条新闻标题或摘要匹配到可能受其影响的预测市场,给出实时赔率、24 小时成交额、命中词与链接
  • 浏览来自主要媒体的近期新闻实时列表,每条都已匹配到对应市场
  • 按自由文本搜索活跃市场、按 24 小时成交额列出最活跃市场,并按 slug 或网址查询单个市场的赔率
  • 可选:安装交易扩展并提供自己的签名密钥后,可查看交易状态、下限价单或市价买单、查看未成交订单与持仓、取消订单
适用场景
适合需要把时事新闻与预测市场赔率联系起来的场景,例如查看某条新闻影响哪些市场、浏览热门市场,或查询单个市场的实时价格。
运行要求
本地 Python 进程,需 Python 3.10 及以上,可通过 uvx 或 pip 安装运行。需要访问 Polymarket 公开 Gamma API 和新闻 RSS 源的网络连接。默认只读工具无需 API 密钥或钱包;交易工具需安装 trading 扩展并设置 POLYMARKET_PRIVATE_KEY 与 POLYMARKET_FUNDER,可选 POLYMARKET_SIGNATURE_TYPE 和 POLYMARKET_MAX_ORDER_USD。冷启动后首次调用约需 10-15 秒建立索引。
安装前请注意
默认只读,但可选的交易工具会下真实订单,并需要把签名密钥放入 POLYMARKET_PRIVATE_KEY;请使用资金有限的专用钱包,并依赖每单支出上限。订单会附带构建者归因代码。Polymarket 会在服务端拒绝受限地区的订单,本工具不构成投资建议。市场数据会缓存在本地,并从 Polymarket 公开 API 获取。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Polymarket News Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

polymarket-news-mcp

Give an AI agent a headline — get the Polymarket markets it moves.

An MCP (Model Context Protocol) server that connects real-world news to prediction markets. Plenty of MCP servers can look up Polymarket prices; this one answers a different question: "this just happened — where can the world's belief about it be read?" Matching is deterministic and explainable — every match reports the exact terms that fired and a confidence score, so your agent can judge the match itself.

Read-only by default — no API keys, no wallet, no custody: live odds and links only. Optional trading tools exist (v0.2.0+) but stay absent unless you install the [trading] extra and set your own signing key — see Trading.

Tools

ToolWhat it does
match_news(text, top_k)The headline tool. News headline/snippet → the markets it could move, with live odds, 24h volume, match score, matched terms, deep links
latest_matched_news(top_k, max_age_hours)Live feed: recent headlines from major outlets (crypto, politics, world, sports), each matched to its markets
search_markets(query, top_k)Lenient free-text search over ~2,000 active markets
trending_markets(top_k)Most active markets right now by 24h volume
get_market(slug_or_url)One market's live odds by URL or slug

Example

match_news("Federal Reserve signals rate hike as inflation stays hot")

json
[  {"question": "Fed rate hike in 2026?", "match_score": 17.2,   "outcomes": {"Yes": 0.47, "No": 0.53}, "volume_24h_usd": 812440,   "matched_terms": ["fed", "hike", "rate", "rate hike"],   "url": "https://polymarket.com/event/fed-rate-hike-in-2026"},  {"question": "Fed Rate Hike by July 2026 Meeting?", "match_score": 17.0,   "outcomes": {"Yes": 0.08, "No": 0.92}, ...}]

Install

Requires Python ≥3.10. With uv (no install needed):

bash
uvx polymarket-news-mcp

Claude Code

bash
claude mcp add polymarket-news -- uvx polymarket-news-mcp

Claude Desktop / any MCP client (claude_desktop_config.json):

json
{  "mcpServers": {    "polymarket-news": {      "command": "uvx",      "args": ["polymarket-news-mcp"]    }  }}

Or classic pip: pip install polymarket-news-mcp then command polymarket-news-mcp.

Trading (opt-in, v0.2.0+)

By default this server is read-only. Trading tools appear only when you provide your own signing key and install the extra:

bash
pip install "polymarket-news-mcp[trading]"export POLYMARKET_PRIVATE_KEY=0x...     # YOUR key. Stays local, signs locally.export POLYMARKET_FUNDER=0x...          # your Polymarket proxy/funds address (browser-wallet accounts)# optional: POLYMARKET_SIGNATURE_TYPE (0 EOA / 1 proxy / 2 Safe / 3 deposit wallet)# optional: POLYMARKET_MAX_ORDER_USD (spend cap per order, default 100)

Tools: trading_status, place_limit_order, place_market_buy, my_open_orders, cancel_order, my_positions. Every order is bounded by the spend cap.

Transparency — builder attribution. Orders placed through this server carry the newsbet builder code (0 bps maker/taker — you pay no extra fees); Polymarket's Builders program attributes routed volume to the project. Forks can override via POLYMARKET_BUILDER_CODE.

Security. Your key never leaves your machine and is never logged. Use a dedicated trading wallet with limited funds. Market SELL is deliberately not offered (ambiguous upstream semantics) — sell via limit orders.

Known upstream caveat (July 2026). Polymarket's py-clob-client-v2 currently cannot sign for NEW "deposit wallet" accounts (#52, #70, #76). Accounts created via the Polymarket website with a browser wallet (signature types 0/1/2) work — set POLYMARKET_FUNDER to your Polymarket profile address.

Jurisdiction. Polymarket's CLOB rejects orders from restricted regions (incl. the US) server-side; using these tools where prohibited is on you. Nothing here is financial advice.

How matching works

IDF-weighted term overlap between your text and market questions/event titles, plus: phrase (bigram) agreement, numeric normalization ($120,000 ≡ 120k), accent folding, a salience gate (every match needs a rare informative anchor — "openai", never "the"), one-best-market-per-event dedupe, and a relative cutoff. Market data comes from Polymarket's public Gamma API (top ~2,000 markets by liquidity, cached 15 minutes at ~/.cache/polymarket-news-mcp/). First call after a cold start takes ~10–15s to build the index; subsequent calls are instant.

Notes & limits

  • Informational only — not financial advice. Polymarket availability depends on your jurisdiction; this server never places orders.
  • News feed sources: CoinDesk, Cointelegraph, Decrypt, The Block, SEC, BBC World & Politics, ESPN (RSS). PRs welcome for more.
  • Match scores ≥15 are high-confidence; 10–15 are related-entity matches.

License

MIT

来源:README.md,提交 eb5de74

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.2.2最新Oct 29, 2026
  2. v0.2.1Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分