# Market Spread [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-market-spread  
**GitHub Stars:** 0  
**npm Downloads (last month):** 829  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/market-spread

## Description
market-spread MCP — cross-venue prediction-market landscape scanner.

## Tools
Capabilities this server exposes over MCP:

- **compare_topic** — Cross-venue prediction-market LANDSCAPE scanner: for one topic, show how 5 venues (Polymarket, Kalshi, Manifold, PredictIt, Futuur) are pricing it side by side and flag divergence. Each venue is queried in parallel; a venue that errors or times out is reported as { reachable: false } and never fails the call. Returns each venue's top matches normalized to { venue, title, implied_probability (0-1 for the main/YES outcome, or null), url, n_outcomes }, plus a divergence summary across venues' top matches. HONESTY: this surfaces WHERE TO LOOK for mispricing — it is NOT an executable-arb tool. A high spread_pp usually reflects different bet shapes, resolution criteria, dates, thin liquidity, or each venue's own trading fees (Polymarket and Kalshi both charge a taker fee that varies by category/price — see the polymarket_edges/polymarket_arbitrage tools for the modeled schedule; this scanner does not net any of them out), not a real arbitrage. Divergence is only computed when ≥2 venues' top titles share strong token overlap (Jaccard); otherwise divergence is null with a low-match-quality note telling you to compare manually. Verify the questions resolve identically before trading. For executable poly↔kalshi arbitrage (needs order-book depth AND fees) use the `polymarket_arbitrage` pack.
- **venue_quotes** — Single-venue drill-down: fetch one venue's current top 5 matches for a query, each as { title, implied_probability (0-1 or null), url }. Useful after compare_topic to look closer at one venue. Implied probability is the main/YES outcome where available; multi-outcome markets report the top outcome and note it. Keyless.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "market-spread": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-market-spread"],
    "env": {
      "PIPEWORX_API_KEY": "",
      "PIPEWORX_META_TOOLS": ""
    }
  }
}
```

**Requires environment variables:** `PIPEWORX_API_KEY`, `PIPEWORX_META_TOOLS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Market Spread does

Market Spread helps agents compare how prediction markets price a shared topic across five venues: Polymarket, Kalshi, Manifold, PredictIt, and Futuur. It returns the best matching markets from each venue with the venue name, title, URL, number of outcomes, and an implied probability for the main or YES outcome when available.

The server is intended for market discovery and comparison. A large difference between displayed probabilities is a lead for further investigation, not proof of an executable arbitrage opportunity. Differences can result from distinct contract wording, settlement rules, dates, market depth, or venue fees.

## How it works

`compare_topic` accepts one topic and queries all five venues in parallel. Each venue contributes its top matches, or a `{ reachable: false }` result if that venue errors or times out. The call continues even when an individual venue is unavailable.

The divergence calculation compares the top titles only when at least two venues have sufficiently strong token overlap. If the titles do not match well enough, the response leaves divergence unset and includes a low-match-quality note so the markets can be reviewed manually.

`venue_quotes` narrows the search to one venue and returns its current top five matches for a query. This is useful for examining a result found with `compare_topic`. For multi-outcome markets, the reported probability represents the leading outcome and is identified accordingly.

## Setup and configuration

The hosted streamable MCP endpoint is:

```json
{
  "mcpServers": {
    "market-spread": {
      "url": "https://gateway.pipeworx.io/market-spread/mcp"
    }
  }
}
```

The endpoint can be added to MCP clients such as Claude Desktop, Cursor, and Windsurf. A full Pipeworx gateway connection is also available at `https://gateway.pipeworx.io/mcp`; both endpoints reach the same gateway, while the pack endpoint lists this pack's tools directly.

For a local stdio bridge, configure the npm package with `npx`:

```json
{
  "mcpServers": {
    "market-spread": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-market-spread"]
    }
  }
}
```

The bridge requires network access and has no offline mode. Anonymous use is capped at 50 calls per day. Setting `PIPEWORX_API_KEY` enables an account-backed limit of 200 calls per day. Set `PIPEWORX_META_TOOLS=1` if the local bridge should also list Pipeworx's shared gateway tools.

## Tools and capabilities

- `compare_topic`: Compare related markets across all five supported venues and return normalized matches plus a conditional divergence summary.
- `venue_quotes`: Retrieve the top five current matches for a topic from one selected venue.
- HTTP access: Invoke tools directly through the Pipeworx API, such as `POST https://gateway.pipeworx.io/v1/tools/compare_topic`.
- Natural-language routing: Use the gateway's `ask_pipeworx` tool to ask questions and let the gateway select a tool and populate its arguments.

## Limitations and notes

The server does not place trades or provide executable arbitrage. It does not subtract Polymarket or Kalshi taker fees from the displayed spread, and the scanner does not evaluate order-book depth. Before acting on a difference, check that the contracts have the same question, resolution criteria, timing, and outcome structure.

A venue outage is represented in the response rather than causing the complete comparison to fail. Implied probability can be `null` when it is unavailable. Divergence is also `null` when the returned titles do not meet the matching threshold, so a manual comparison may be necessary.

The integration is an independent, unofficial connection to the supported market data sources and is distributed under the MIT license.

_Full upstream README: https://allmcps.com/mcp/market-spread/readme_

