Live Elon Musk & Ted Cruz tweet feed + real-time tweet counters for Polymarket's tweet-count markets. Hosted MCP server (free tier keyless), Python/TS clients, Claude Desktop config.
Polymarket Tweet Count API — Examples
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Code examples for the Polystrike API: live
tweet counters for Polymarket's Elon Musk and Ted Cruz tweet-count markets.
The free tier needs no key (100 requests/hour). One call gets you three counters per
active market — Polystrike's independent 60-second count, the official XTracker
settlement count, and the count shown on Polymarket's UI — plus the deltas between them:
Examples
| Example | What it does |
|---|---|
| python/poll_counters.py | Poll both accounts, print counters + deltas (stdlib only) |
| typescript/pollCounters.ts | Same in TypeScript / Node 18+ |
| mcp/claude_desktop_config.json | Connect Claude Desktop to the hosted MCP server |
| mcp-server/server.js | Local MCP server over the public REST API (Node 20+) |
Local MCP server
mcp-server/server.js is a stdio MCP server that wraps the
public REST API — the same tools as the hosted server, runnable locally:
Free-tier tools need no key; free counters are delayed 30 minutes (every response says so in
freshness_delay_sec). Set POLYSTRIKE_API_KEY to a Data key ($29/month, USDC on Polygon or
Base, see https://polystrike.xyz/#pricing) for live counters, the WebSocket feed, full post
archive, counter and price history, and bulk parquet.
Endpoints used
- GET /api/v1/meta/elon — Elon Musk markets (free)
- GET /api/v1/meta/cruz — Ted Cruz markets (free)
- GET /api/v1/meta/{account}/tweets — recent tweet stream (free: last 15)
Full reference: API docs ·
OpenAPI spec ·
MCP setup guide
Notes on the data
- The **XTracker oracle** is the settlement authority — Polymarket pays out on its
number. Polystrike measures it faster (60s vs ~5min) but does not replace it.
- **Deleted tweets** stay in Polystrike's count if captured before deletion; a
settlement_delta driven by a deletion is not a real edge.
- These are measurement tools, not a promise of profit.