# MCP server

> Connect Claude, Cursor or any MCP client to Rivo's remote MCP server: sign in or use an API key, setup per client, the limits, and every tool and prompt.

Source: https://rivo.markets/docs/mcp

Connect Claude, Cursor or any MCP client to Rivo and your assistant can read whale trades, look up traders, backtest ideas and run paper bots for you. The server is hosted, so all you need is the endpoint. Sign in with your Rivo account, or use an API key.

Endpoint:

```
https://api.rivo.markets/mcp/v2
```

## Sign in with your Rivo account

Claude and other clients that support OAuth connect by signing in, with no key to copy. Add the endpoint, sign in to Rivo when the client asks, and approve the connection.

- Claude (web, desktop and mobile): open Settings, then Connectors, add a custom connector, and paste the endpoint.
- Claude Code: run `claude mcp add --transport http rivo-markets https://api.rivo.markets/mcp/v2`, then `/mcp` and choose Authenticate.
- A signed-in connection sees every tool, the same as a key with `write`. Paper orders and paper bots only, and no money moves.
- It needs an active Rivo subscription. Without one the connection still opens, and each tool says the subscription isn't active and where to renew.
- To disconnect, remove the connector in your client.

## Connect with an API key

Clients without OAuth, and scripts, send an API key instead. Create one in [Authentication](https://rivo.markets/docs/authentication).

Claude Code:

```bash
claude mcp add --transport http rivo-markets https://api.rivo.markets/mcp/v2 \
  --header "Authorization: Bearer $RIVO_API_KEY"
```

Cursor and JSON clients:

```json
{
  "mcpServers": {
    "rivo": {
      "url": "https://api.rivo.markets/mcp/v2",
      "headers": { "Authorization": "Bearer rivo_live_..." }
    }
  }
}
```

Cursor reads the JSON from `~/.cursor/mcp.json`. Claude Desktop and hosted assistants take the endpoint and the header in their connector settings. To check the connection, ask your client to call `get_positions`. If rows come back, the key works.

## How it works

- Every request carries a sign-in token or an API key in the `Authorization` header. Keys are the same ones the REST API uses. See [Authentication](https://rivo.markets/docs/authentication).
- Every tool returns the same data and refs as its v2 route, so you can move between the API and MCP freely.
- Paper only. Paper orders and bots trade at live prices, and no money moves.
- List tools return 20 rows unless you pass `limit` (up to 200). Pass `cursor` to read the next page.
- A failed call returns the same `code` as REST, plus a `hint` that says what to do next.
- `place_paper_order` takes a `requestId` in place of the Idempotency-Key header. If you retry with the same `requestId`, you get the first order back.
- The server takes one message per request. It refuses JSON-RPC batches.

## Limits

Limits count per account, across REST and MCP together. Trades and traders read through MCP use the same daily allowance as the API. Each call is one request. Each `include`, holdout, breakdown and sweep value costs one more. See [Rate limits](https://rivo.markets/docs/rate-limits).

## Which tools you see

The server lists only the tools your key can use. A `read` key sees 12 tools. A key with `write`, or a signed-in connection, sees all 16. When a model can't see a tool, it never plans a call that would be refused.

## Tools

Each tool mirrors one v2 route. The route's page lists every parameter and field.

| Tool | Route | What it does |
| --- | --- | --- |
| `get_trades` | [GET /v2/trades](https://rivo.markets/docs/reference/list-trades) | Large trades, newest first, reaching back 30 days, with the market, side, price, dollars and the named trader's record. Each row older than an hour counts toward the 5,000 trades a day. With exactly one trader, since reaches back 90 days and include small adds their smaller trades; either counts the trader toward the 100 traders a day. |
| `get_positions` | [GET /v2/positions](https://rivo.markets/docs/reference/list-positions) | What traders with a winning record hold now, biggest first. Each holder counts as one row. |
| `get_moves` | [GET /v2/moves](https://rivo.markets/docs/reference/list-moves) | Sharp moves, favorite flips and whales piling in over the last day. Pass since to read only what is new. |
| `search_markets` | [GET /v2/markets](https://rivo.markets/docs/reference/list-markets) | Markets by name or activity, open, settled or both, with refs for the other tools. |
| `get_market` | [GET /v2/markets/{ref}](https://rivo.markets/docs/reference/get-market) | One market, with optional book, whales, call, history and trades. Each include costs one more request. |
| `search_traders` | [GET /v2/traders](https://rivo.markets/docs/reference/list-traders) | Traders ranked by profit, win rate, return, volume or activity: the top 100 for any ranking. Each call counts toward the 10 trader listings a day. |
| `get_trader` | [GET /v2/traders/{ref}](https://rivo.markets/docs/reference/get-trader) | One trader's record, with optional positions, curve, habits and similar traders. Each different trader counts toward the 100 traders a day. |
| `backtest` | [POST /v2/backtest](https://rivo.markets/docs/reference/backtest) | Score copying a signal or a trader on settled markets, with optional holdout, sweep and breakdown. A trader backtest replays what a paper bot copying them would do, holding each bet or with mirrorExits selling when the trader sells, with optional copy rules and daily limit, and also says what a real-money bot would have made (live). Places nothing. |
| `place_paper_order` (write) | [POST /v2/paper-orders](https://rivo.markets/docs/reference/place-paper-order) | Buy or sell one side on paper at the live price. Pass a requestId so a retry never places it twice. |
| `get_paper_account` | [GET /v2/paper](https://rivo.markets/docs/reference/get-paper-account) | Paper positions placed by hand and by bots, with profit. |
| `list_bots` | [GET /v2/bots](https://rivo.markets/docs/reference/list-bots) | Every bot on the account with its record. Archived bots only when asked for. |
| `get_bot` | [GET /v2/bots/{id}](https://rivo.markets/docs/reference/get-bot) | One bot's settings and record, with optional trades and activity. A live bot reads its real orders. |
| `get_bot_audit` | [GET /v2/bots/{id}/audit.csv](https://rivo.markets/docs/reference/download-bot-trades) | A bot's execution log as CSV: every copy, skip and missed order, with its limit, the book it met and the fill. The last 7 days unless asked. |
| `create_bot` (write) | [POST /v2/bots](https://rivo.markets/docs/reference/create-bot) | Start a paper bot that copies a trader, a signal, or trades one market by a price rule. A trader bot takes copy rules, a daily limit and slippage. |
| `update_bot` (write) | [PATCH /v2/bots/{id}](https://rivo.markets/docs/reference/update-bot) | Change a paper bot's settings (a trader bot's copy rules, daily limit and slippage among them), pause and resume a trader or market bot, or archive and restore any paper bot. |
| `delete_bot` (write) | [DELETE /v2/bots/{id}](https://rivo.markets/docs/reference/delete-bot) | Stop and delete a paper bot. Its record is kept. |

## Prompts

Clients that show prompts list these four. Each one tells the model which tools to call, and in what order.

| Prompt | What it does |
| --- | --- |
| `what_are_whales_buying` | what winning traders hold and the biggest recent buys, grouped by market |
| `look_into_this_market` | prices, who holds each side, their record there, and Rivo's call on one market |
| `find_a_trader_worth_copying` | one ranking, a shortlist, a backtest with holdout, then one recommendation |
| `test_this_idea_on_paper` | turn an idea into a signal, check it on history, then start it as a paper bot |

## The old address

> **Note:** `https://api.rivo.markets/mcp` was switched off with API v1 on November 1, 2026 and now answers 410. Connect to `https://api.rivo.markets/mcp/v2`.
