nephyr-risk
AI-powered prediction market risk management.
What it can do
- Calculate Kelly Size: Calculate the optimal position size for a prediction market trade using the Kelly criterion (quarter-Kelly by default). Returns the recommended dollar amount to risk, the raw Kel
- Calculate Ev: Calculate the expected value of a YES contract after platform fees. Returns EV, edge (model prob − market price), fee per leg, round-trip fee, and whether EV is positive. Supports Polyma
- Calculate Fee: Calculate the fee per leg for a given platform and contract price. Polymarket: flat 2% of price. Kalshi: 7% × P × (1−P).
What data it sees
Do you need an account
No: the server works without sign-in
AI-powered prediction market risk management. Calculate optimal position sizes with Kelly criterion, evaluate expected value, estimate platform fees, monitor real-time risk status, validate trades before execution, analyze portfolio exposure, and simulate drawdown scenarios. Built for AI agents and traders who need data-driven risk decisions.
How to connect
How to connect nephyr-risk to Claude
The server address to paste into Claude settings:
https://nephyr-risk--clm-studios.run.tools
- Open Claude (claude.ai or the desktop app).
- Go to Settings → Connectors.
- Click Add custom connector.
- Paste the server address copied below into Remote MCP server URL and click Add.
- In a chat, click + → Connectors and switch the new connector on.
Custom connectors are available on Free, Pro, Max, Team and Enterprise plans (Free is limited to one). On Team and Enterprise an organization Owner adds the connector first under Organization settings → Connectors.
Authorization
After you click Add, a sign-in window for the service opens. Sign in with your own account and approve access. Claude never sees your password.
How to connect nephyr-risk to ChatGPT
The server address to paste into ChatGPT settings:
https://nephyr-risk--clm-studios.run.tools
- Open ChatGPT in a browser (chatgpt.com). A Plus, Pro, Business, Enterprise or Edu plan is required.
- Turn on developer mode once: Settings → Apps → Advanced settings → Developer mode.
- Open Settings → Connectors and click Create.
- Fill in the form: Name (anything), Description (one line about what the service does), MCP server URL (copy it below).
- Under Authentication choose OAuth if the service requires sign-in, otherwise None. Click Create.
- In a new chat open + → Apps/Connectors and enable the connector.
OpenAI has renamed this section before (Connectors → Apps/Plugins). If the label differs, search settings for "developer mode". On Business/Enterprise workspaces an admin must allow custom connectors first.
Authorization
On first use ChatGPT opens the service's sign-in window. Sign in and approve access.
How to connect nephyr-risk to Cursor
The server address to paste into Cursor settings:
https://nephyr-risk--clm-studios.run.tools
Fastest: click Open in Cursor below and confirm the prompt.
Manually:
- In Cursor open Settings → Cursor Settings → MCP and click Add new global MCP server.
- Paste the JSON copied below into
~/.cursor/mcp.json(per project:.cursor/mcp.jsonin the repo root). - Save the file. The server appears in the MCP list; authorize it there if asked.
Authorization
If the service needs sign-in, an authorize button appears next to the server in the MCP list.
Server tool list (7)
Raw names from tools/list. Only developers need these.
| calculate_kelly_size | Calculate the optimal position size for a prediction market trade using the Kelly criterion (quarter-Kelly by default). Returns the recommended dollar amount to risk, the raw Kelly fraction, and whether the size was capped by the bankroll-percentage limit. |
| calculate_ev | Calculate the expected value of a YES contract after platform fees. Returns EV, edge (model prob − market price), fee per leg, round-trip fee, and whether EV is positive. Supports Polymarket (2% flat) and Kalshi (7% × P × (1−P)) fee models. |
| calculate_fee | Calculate the fee per leg for a given platform and contract price. Polymarket: flat 2% of price. Kalshi: 7% × P × (1−P). |
| check_risk_status | Check current risk management status. Returns ACTIVE (safe to trade), PAUSED (daily loss limit hit — resume tomorrow), or SHUTDOWN (max drawdown exceeded — manual review required). Also returns warnings when approaching limits. |
| validate_trade | Pre-trade risk check. Projects the worst case (total loss of proposed_size) and checks whether it would breach daily loss or drawdown limits. Returns approved/rejected with a reason and projected percentages. |
| get_exposure | Summarise portfolio exposure relative to bankroll. Returns total exposure %, largest position %, number of positions, and a concentration risk flag (triggered when any single position exceeds 10% of bankroll). |
| simulate_drawdown | Simulate a hypothetical sequence of losses against a starting bankroll. Shows when daily loss and drawdown limits would trigger, and reports the maximum drawdown percentage reached. |