Matches news to Polymarket markets and returns the market's probability. Optional capped trading.
io.github.Sofiia7/actually MCP Server
The io.github.Sofiia7/actually MCP server matches news to Polymarket markets and returns the corresponding market probability. It also supports optional capped trading, indicating additional functionality beyond probability matching.
🛠️ Key Features
Matches news to Polymarket markets
Returns each market’s probability
Optional capped trading
🚀 Use Cases
Determine a Polymarket market probability based on news content
Use probability output as input to capped trading workflows
⚡ Developer Benefits
Provides a direct mapping from news to Polymarket market probabilities
Supports an optional trading mode with caps
⚠️ Limitations
Limited to Polymarket market probability matching, based on the provided description
A Chrome extension and an MCP server that put prediction-market odds on top of
the news you are already reading.
News tells you that "experts are concerned" or that "odds are rising". It
rarely tells you a number. The number exists - on a prediction market, where
people are betting their own money on the outcome. It just lives in another
tab, and finding it means knowing such a market exists in the first place.
Actually closes that gap. Open an article, click the toolbar icon, and the
extension matches the text against live Polymarket markets and shows the
market's own probability. No account, no wallet, no signup.
What it does
Matches an article to a market. A local embedding model
(Xenova/all-MiniLM-L12-v2, ~33 MB) scores the article text against the
cached market set, boosted by keyword and number overlap - numbers matter
because the encoder is nearly blind to them, and "dip to $57,500" embeds
almost identically to "reach $120,000".
Runs on your device. Model and WASM runtime are bundled at build time -
nothing is fetched from a CDN at install or runtime, and on the default
settings the article text never leaves the machine.
Reads non-English pages. They are translated to English before matching,
using Chrome's own built-in Translator API (local, no network). Every
Polymarket question is written in English, and the local model holds 86
Cyrillic tokens out of 30522 - an untranslated Russian headline embeds to
noise. Translated, the same headline scores 0.53-0.71 against the market it
is actually about, against a 0.35 floor.
Trades, optionally. Connect any WalletConnect v2 wallet for limit and
market orders, selling, cancelling resting orders, and a positions panel with
cost basis and P&L. Keys and funds are never held by us.
Serves agents too. The same capabilities are exposed over the Model
Context Protocol: check_news, get_market, place_order, sell_order,
cancel_order, get_positions.
Using the MCP server
The MCP server is published, so it needs no clone and no build. Add it to any
MCP client (Claude Desktop, Cursor, and anything else that speaks the
protocol):
That gives an agent the signal tools - check_news and get_market - with no
key and no wallet. Ask it "what do markets think about this?" with a headline
and it answers with the market's own price.
Trading tools appear only if you supply a key of your own:
Both caps are enforced server-side against a persisted spend ledger, so an
agent cannot talk its way past them by claiming a different price.
redeem_position needs a further explicit opt-in
(ACTUALLY_ENABLE_REDEEM=true) because it submits a real on-chain transaction
and is still in testing.
Full documentation, including every environment variable and the reasoning
behind the guards: packages/mcp-server/README.md.
Listed in the official MCP registry
as io.github.Sofiia7/actually, on mcpservers.org, and on Glama:
extension/ Chrome MV3 extension (React popup, offscreen document)
extension/worker/ Cloudflare Worker - API proxy, rate limiting, market cache
packages/core/ Matching, pricing and Polymarket API logic, shared by both clients
packages/mcp-server/ MCP server, published to npm as actually-mcp-server
packages/market-cache-builder/ Cron job that precomputes the market embeddings
The heavy work lives in an offscreen document because MV3 service workers
cannot run WASM, hold a WebSocket, or survive long enough to sign an order.
The market cache is 2000 open markets with precomputed embeddings, rebuilt
every two hours. Selection blends three orderings - 24h volume, lifetime
volume, and recency - because ranking by lifetime volume alone is the wrong
shelf for a news tool: a market opened this morning under today's headline has
no history and loses to a year-old election market every time.
The Worker exists so no client has to hold a credential. It proxies
Polymarket's APIs, serves the precomputed cache, and acts as a remote signer
for the relayer, so the builder credential stays on the server and never ships
inside an extension.
Running it
bash
npm install
npm run models:fetch -w extension # bundle the embedding model
npm run build -w extension # type-check + build to extension/dist
Load extension/dist as an unpacked extension in Chrome. Copy
extension/.env.example to .env.local and fill it in first - the build bakes
the Worker URL, the WalletConnect project id and the builder code.
bash
npm test --workspaces # 686 tests across four workspaces
Privacy
Discovery is free and needs no account. There are no content scripts: the page
is read only when you click, and only the active tab. On the default settings
(local embeddings, translation off-device) the article text does not leave your
machine. Telemetry is opt-in and off by default.
The extension is built and passing its release gates; the Chrome Web Store
submission is in progress. actually-mcp-server is published on npm and listed
in the official MCP registry.
Redeeming a resolved position is in testing: builder authentication,
neg-risk contract selection and the zero-balance guard are each verified
against live services, but no redeem has yet been observed collecting funds end
to end.
Trading is unavailable in several jurisdictions (US, GB, FR, BE, AU, SG, TH,
TW, PL, and sanctioned countries), enforced Worker-side. Viewing odds works
everywhere.
Optional. Your own Polygon EOA private key. Enables the trading tools (place_order, sell_order, cancel_order, get_open_orders, get_positions). Omit to run signal-only, which needs no key and no wallet.
ACTUALLY_MAX_ORDER_USD
Optional. Per-order USD cap for the trading tools (default 100). Enforced server-side against the market's own price, so a caller cannot understate an order to slip past it.
ACTUALLY_DAILY_LIMIT_USD
Optional. Rolling UTC-day USD cap shared by place_order and sell_order (default 500). Held in a persisted ledger, so it survives restarts.
ACTUALLY_ENABLE_REDEEM
Optional. Set to exactly 'true' to additionally register redeem_position. A second opt-in beyond the private key, because it submits a real on-chain transaction through Polymarket's relayer and is still in testing.
ACTUALLY_SEARCH_FALLBACK
Optional. Set to exactly 'true' to let check_news fall back to Polymarket's own market search when nothing in the cached set matches. Off by default: the query is built from the caller's text and leaves the machine.
ACTUALLY_SPEND_STATE_PATH
Optional. Where the spend ledger is stored (default ~/.actually-mcp-server/spend-guard.json).
ACTUALLY_WORKER_URL
Optional. Only if you run your own Cloudflare Worker instead of the shared default.
ACTUALLY_WORKER_SECRETsecret
Optional. Shared secret for your own Worker. Not a private credential: the default one ships inside every client by design.