Give Claude, ChatGPT and any MCP client live access to crash, castle roulette, casino bets, players and sportsbook odds — through a single read-only Streamable HTTP endpoint.
Endpoint:https://api.duelapi.com/mcp
Overview
The server exposes 39 read-only tools generated from the same catalogue as the REST API. Each tool call is forwarded to the corresponding REST route with your API key, so credits, rate limits and key logs behave exactly as they do for a direct API request. No write or delete operations are available.
Authentication: a DuelAPI read key, sent as X-API-Key, Authorization: Bearer, or ?apiKey= on the server URL. Get a free key at the pricing page.
Install in your app
Enter your read key once, then choose a client. The button copies the right URL or config and opens that client's settings page. Your key stays in this browser — it is never sent to DuelAPI by this page.
Privacy note: ChatGPT custom plugins cannot send custom headers. For ChatGPT the button copies a URL containing your key (?apiKey=...) — treat that URL like a password and do not share it. Every other client uses the header form.
One player's lifetime stats, last 50 bets and a summary of those bets.
GET /players/:username
Parameter
Type / rules
Description
username
string · required · min 1
Duel username.
Chat Recent chat_recent
1 credit per 100 rows
Duel.com public chat messages, newest first. Messages are passed through unedited.
GET /chat/recent
Parameter
Type / rules
Description
limit
number · required · default: 50 · min 1, max 1000
page
number · required · default: 0 · min 0
room
string · optional · min 1
user
string · optional · min 1
Rps Recent rps_recent
1 credit per 100 rows
Recent rock-paper-scissors rounds with match details. winner_id is null for a draw.
GET /rps/recent
Parameter
Type / rules
Description
limit
number · required · default: 50 · min 1, max 1000
page
number · required · default: 0 · min 0
Analytics Overview analytics_overview
5 credits
Dashboard summary: crash distribution, castle coin frequencies, last hour of betting, chat activity and feed health. Costs 5 credits.
GET /analytics/overview
Parameter
Type / rules
Description
rounds
number · required · default: 1000 · min 10, max 100000
Data Status data_status
1 credit
Health of the data feed: source reachability, last arrival time and stored counts.
GET /data/status
Parameter
Type / rules
Description
No parameters.
Sports odds
Sports sports
2 credits
Every sport currently offered, with event and live-event counts. Costs 2 credits.
GET /v4/sports
Parameter
Type / rules
Description
No parameters.
Sport Events sport_events
5 credits
Events for a sport, without odds. Live events first, then upcoming by kickoff. Costs 5 credits.
GET /v4/sports/:sport/events
Parameter
Type / rules
Description
sport
string · required · min 1
Sport key, e.g. soccer. Get keys from the sports tool.
live
enum: 0 | 1 · optional
Sport Odds sport_odds
5 credits PER EVENT (default 25 events = 125 credits)
Events with full market books (every market, outcome and price). IMPORTANT: costs 5 credits per event, charged on limit — the default 25 events costs 125 credits. Use a small limit.
GET /v4/sports/:sport/odds
Parameter
Type / rules
Description
sport
string · required · min 1
Sport key, e.g. soccer.
live
enum: 0 | 1 · optional
limit
number · required · default: 25 · min 1, max 100
offset
number · required · default: 0 · min 0
Sport Scores sport_scores
5 credits
Live events for a sport with current status and score. Costs 5 credits.
GET /v4/sports/:sport/scores
Parameter
Type / rules
Description
sport
string · required · min 1
Sport key, e.g. tennis.
Event event
10 credits
One event's full market book. Costs 10 credits.
GET /v4/events/:eventId
Parameter
Type / rules
Description
eventId
string · required · min 1
Event id.
Event History event_history
25 credits
Every recorded price change for one event, oldest first. Kept for 3 days. Costs 25 credits.
GET /v4/events/:eventId/history
Parameter
Type / rules
Description
eventId
string · required · min 1
Event id.
limit
number · required · default: 500 · min 1, max 1000
from
string · optional · min 1
to
string · optional · min 1
after
string · optional · min 1
PvP Arena
Arena Games arena_games
1 credit, paid plan required
All 12 Duel Arena games with metadata. Requires a paid plan or purchased top-up credits. Costs 1 credit.
GET /api/arena/games
Parameter
Type / rules
Description
No parameters.
Arena Resolve arena_resolve
1 credit, paid plan required
Parse a Duel Arena join link or six-character code into session and game metadata. Provide url OR code (plus optional slug). Requires a paid plan.
GET /api/arena/resolve
Parameter
Type / rules
Description
url
string · optional · min 1
code
string · optional · min 1
slug
string · optional · min 1
Arena Lobbies arena_lobbies
1 credit per 100 rows, paid plan required
Live arena lobbies. A waiting lobby can be full — check player_count < max_players. Requires a paid plan.
GET /api/arena/lobbies
Parameter
Type / rules
Description
game
string · optional · min 1
status
enum: live | all | waiting | active | completed | expired | cancelled · optional
sort
enum: recent | high | low · optional
limit
number · required · default: 100 · min 1, max 500
Arena Session arena_session
1 credit, paid plan required
One arena session by six-character code. Requires a paid plan.
GET /api/arena/session
Parameter
Type / rules
Description
code
string · required · min 1
Six-character session code.
Arena Game arena_game
1 credit, paid plan required
Metadata for one arena game. Requires a paid plan.
GET /api/arena/game
Parameter
Type / rules
Description
slug
string · required · min 1
Game slug, e.g. 8ball.
Arena History arena_history
1 credit per 100 rows, paid plan required
Tracked arena lobby history. Requires a paid plan.
GET /api/arena/history
Parameter
Type / rules
Description
game
string · optional · min 1
player
string · optional · min 1
status
enum: live | all | waiting | active | completed | expired | cancelled · optional
limit
number · required · default: 100 · min 1, max 500
offset
number · required · default: 0 · min 0
Arena Players arena_players
1 credit per 100 rows, paid plan required
Tracked arena player statistics. Requires a paid plan.
GET /api/arena/players
Parameter
Type / rules
Description
sort
enum: games | wins | winrate | wagered · optional
q
string · optional · min 1
limit
number · required · default: 100 · min 1, max 500
offset
number · required · default: 0 · min 0
min_games
number · optional · min 0
Arena Player arena_player
1 credit, paid plan required
One arena player's stats, per-game totals, last 40 games and best-effort cross-game data. Requires a paid plan.
GET /api/arena/player
Parameter
Type / rules
Description
name
string · required · min 1
Duel username.
Arena Stats arena_stats
1 credit, paid plan required
Tracked/scored lobby totals, players seen and tracking start time. Requires a paid plan.
GET /api/arena/stats
Parameter
Type / rules
Description
No parameters.
Arena Watched arena_watched
1 credit, paid plan required
Upstream tracked lobbies (shared feed, not account-specific). Requires a paid plan.
GET /api/arena/watched
Parameter
Type / rules
Description
No parameters.
Frequently asked questions
How do I authenticate?
Send your DuelAPI read key on every MCP request as X-API-Key (or Authorization: Bearer). Clients that cannot set custom headers can append ?apiKey=your_key to the server URL.
Does the MCP server cost extra?
No. Tool calls run against the same REST endpoints and charge the same credits. Use the account tool to check your balance.
Is it read-only?
Yes. Every tool is marked readOnlyHint and maps to a GET endpoint. No write or delete operations are exposed.
Which clients are supported?
Any client that speaks Streamable HTTP: Claude, ChatGPT, Claude Code, Cursor, VS Code, OpenAI Codex and the MCP Inspector.
Why did ChatGPT ask me to choose an authentication mode?
ChatGPT custom plugins support OAuth or no authentication, not custom headers. Choose no authentication and paste the URL with your key in the query string. Treat that URL as a secret.