Futuur MCP
Official# Futuur MCP server
A [Model Context Protocol](https://modelcontextprotocol.io) server for [Futuur](https://futuur.com) prediction markets. It lets Claude and other MCP clients browse events and prices, simulate and place orders, and track positions through the Futuur public API (`https://api.futuur.com/v2.0/`).
- Built on the official MCP TypeScript SDK v2 (`@modelcontextprotocol/server`), which implements the 2026-07-28 specification and still serves older clients.
- Every tool has a title, typed arguments, structured results and read-only / destructive annotations, so clients can ask for confirmation before anything that moves money.
- Browsing works without credentials. Account and trading tools need your Futuur API keys.
## Requirements
- Node.js 20 or newer
- Futuur API keys for account and trading tools: futuur.com → Settings → API keys
## Setup
**Cursor**
[](https://cursor.com/en/install-mcp?name=futuur&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBmdXR1dXIvZnV0dXVyLW1jcCJdLCJlbnYiOnsiRlVUVVVSX1BVQkxJQ19LRVkiOiIiLCJGVVRVVVJfUFJJVkFURV9LRVkiOiIifX0%3D)
The button adds the server with empty keys; fill them in under Cursor Settings → MCP to use account and trading tools.
**Claude Desktop**
Download `futuur.mcpb` from the [latest release](https://github.com/futuur/Futuur-MCP/releases/latest) and open it: Claude Desktop installs it as an extension and asks for your API keys (optional).
**Claude Code**
```bash
claude mcp add futuur -e FUTUUR_PUBLIC_KEY=your_public_key -e FUTUUR_PRIVATE_KEY=your_private_key -- npx -y @futuur/futuur-mcp
```
**Any other MCP client** (VS Code, Windsurf, Cline, ...), in its `mcpServers` configuration:
```json
{
"futuur": {
"command": "npx",
"args": ["-y", "@futuur/futuur-mcp"],
"env": {
"FUTUUR_PUBLIC_KEY": "your_public_key",
"FUTUUR_PRIVATE_KEY": "your_private_key"
}
}
}
```
The server is listed in the [official MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.futuur/futuur-mcp`.
| Variable | Purpose |
|---|---|
| `FUTUUR_PUBLIC_KEY`, `FUTUUR_PRIVATE_KEY` | API key pair. Optional for browsing, required for account and trading tools. |
| `FUTUUR_API_BASE_URL` | Override the API base URL (default `https://api.futuur.com/v2.0/`). |
Your keys stay on your machine: the server runs locally over stdio and only talks to the Futuur API.
## Tools
Market data (no keys needed):
| Tool | What it does |
|---|---|
| `get_markets` | List and search events, with category, tag, status, date and ordering filters |
| `get_market_details` | One event with all of its markets (outcomes) |
| `get_price_history` | Price history of an event's markets |
| `get_order_book` | Bids and asks for one market |
| `get_categories`, `get_category_details` | Browse categories |
| `get_exchange_rates`, `convert_to_usd`, `convert_from_usd` | Currency rates and indicative conversions |
Account and positions (keys required):
| Tool | What it does |
|---|---|
| `get_user_profile`, `get_balances`, `get_user_ranking` | Profile, balances per currency, leaderboard position |
| `get_user_bets`, `get_wager_details` | Positions and their purchase/sale history |
| `get_partial_sell_amount` | Estimate what a position would sell for |
Trading (keys required; these change your balance):
| Tool | What it does |
|---|---|
| `get_bet_simulation` | Preview a buy or sell against the live order book. Places nothing. |
| `place_bet` | Place a limit or market order |
| `sell_bet` | Sell all or part of a position |
| `list_orders` | Your open and past orders |
| `cancel_order`, `cancel_all_orders` | Cancel resting orders |
Vocabulary: an *event* is a question; its *markets* are the outcomes, each priced between 0 and 1. `bid` buys and `ask` sells; `long` is the Yes side of a market and `short` is the No side. `OOM` is play money; `USDC`, `USDT` and `USD` are real money. Real-money trading through the API has to be enabled for your account.
## Development
```bash
npm install
npm run build
npm test
node scripts/smoke.mjs --live
```
`npm test` runs the unit tests with a mocked API. The smoke script starts the built server over stdio, checks the handshake and tool metadata, and with `--live` makes a few read-only calls to the production API. `npm run mcpb` builds the Claude Desktop extension into `dist/futuur.mcpb`. See [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) for common problems.
## Releasing
1. Bump `version` in `package.json`, `server.json` (twice) and `manifest.json`; `npm test` fails if they disagree.
2. Merge, then push a tag: `git tag v2.0.2 && git push origin v2.0.2`.
The Release workflow publishes to npm (when an `NPM_TOKEN` secret is set; otherwise run `npm publish` first), to the MCP Registry, and attaches `futuur.mcpb` to a GitHub release. [docs/MARKETPLACES.md](docs/MARKETPLACES.md) tracks the other directories.
## License
ISC
TDQS
Scored across 21 tools
Most tools have clearly distinct resource/action targets, but there is some overlap around selling: place_bet can place sell orders while sell_bet sells wager positions, and get_bet_simulation overlaps with get_partial_sell_amount for simulating sales. get_balances also overlaps slightly with the wallet snapshot in get_user_profile. Descriptions resolve most confusion, so boundaries are mostly clear.
All tool names use a consistent snake_case verb_noun pattern: get_, list_, place_, cancel_, sell_, convert_. The predictable prefixes make the surface easy to scan. The only confusing aspect is domain terminology around 'market' versus 'event', not the naming convention itself.
At 21 tools the surface is somewhat heavy and slightly above the ideal range, but each tool maps to a meaningful operation for a prediction-market trading platform. Some consolidation is possible, such as pairing convert_to_usd/convert_from_usd or folding get_balances into profile, but the count is reasonable overall.
The surface covers the core lifecycle well: market/category discovery, event details, price history, order book, buy/sell simulation, order placement, order listing/cancellation, wager inspection, selling, balances, profile, ranking, and FX conversion. Minor gaps remain, such as no direct get_order_by_id, no modify-order operation beyond cancel/replace, and no funding/deposit workflows.