Skip to main content

MCP server that matches news headlines to the Polymarket prediction markets they could move — live odds, deep links, explainable matching

Project description

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 design: no API keys, no wallet, no trading. Live odds and links only.

Tools

Tool What 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")

[
  {"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):

uvx --from git+https://github.com/mobymedia/polymarket-news-mcp polymarket-news-mcp

Claude Code

claude mcp add polymarket-news -- uvx --from git+https://github.com/mobymedia/polymarket-news-mcp polymarket-news-mcp

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

{
  "mcpServers": {
    "polymarket-news": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/mobymedia/polymarket-news-mcp",
               "polymarket-news-mcp"]
    }
  }
}

Or classic pip: pip install git+https://github.com/mobymedia/polymarket-news-mcp then command polymarket-news-mcp.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polymarket_news_mcp-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polymarket_news_mcp-0.1.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file polymarket_news_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: polymarket_news_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polymarket_news_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3cdbbd9936f18709f13769fa3562c26e88fc729d04c6c24a9303fc309768c44
MD5 f90e37bfeb490d35fa0eab6c46031acd
BLAKE2b-256 c808663f79aa4a3ee70c701bd8b5157dfe320ccc2dabfb2b11f01b98bb36696a

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymarket_news_mcp-0.1.0.tar.gz:

Publisher: publish.yml on mobymedia/polymarket-news-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polymarket_news_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for polymarket_news_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9e78300c66c54084e7b12ebad3472ac18dd01ea70ae014dd6b782b5a5b6b09c
MD5 d70c1ca7883b42ddca852621add134bc
BLAKE2b-256 683f95adcadcdfc64e790cd9cfbd746edb88f8c07218de949c514302c705e1ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymarket_news_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on mobymedia/polymarket-news-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page