sharpapi-mcp
OfficialA read-only MCP server that exposes live sports betting data from SharpAPI through 21 tools, so an AI assistant can discover sports, leagues, books, markets and events, then pull comparable odds and betting opportunities.
Discover reference data:
list_sports,get_leagues,list_sportsbooks,get_markets,get_market_typesreturn the valid ids every other tool's arguments expect.Find events:
list_eventsfilters by date, sport, league or live status to get event ids.Read odds:
get_odds(paginated, normalized American/decimal/implied probability),get_best_odds(best price per selection),compare_odds(side-by-side per book),get_event_odds(one event, all books),get_odds_delta(only prices changed since a timestamp).Find opportunities:
get_arbitrage(combined implied probability under 100%),get_ev(+EV bets with de-viggedfair_probability),get_middles(two-sided gaps),find_low_hold(tightest combined margins).Betting splits:
get_splitsgives public bets/handle percentages per side from books or consensus.Closing lines:
get_closing_linesreturns each book's last pre-match prices with no-vig probabilities, for CLV.Futures (Enterprise):
get_futures,get_futures_odds,compare_futures_linescover championship, award and win-total markets.Account check:
get_account_inforeports the key's plan, rate limit and unlocked features so you know which plan-gated tools will work.
All tools are read-only, accept plan-based access (API errors returned unchanged), and large responses are truncated with a truncated note pointing to narrower or paginated alternatives.
Provides tools for querying live sports betting data from SharpAPI: listing covered sports, sportsbooks and events, fetching normalized odds across books (American/decimal/implied probability), finding the best price per selection, and surfacing cross-book arbitrage, +EV bets and middles opportunities.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sharpapi-mcp find arbitrage opportunities in NBA games"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SharpAPI MCP Server
MCP server for SharpAPI. Exposes live sports betting odds, +EV, arbitrage, middles and betting splits as Model Context Protocol tools, for compatible AI applications to query sports betting data.
Documentation · Get a free key · Pricing · Changelog
Built on the official MCP TypeScript SDK v2. It speaks the current MCP revision (2026-07-28) and the 2025-era revisions, over stdio and over Streamable HTTP. Requires Node.js 20 or later.
Two ways to connect
Hosted, nothing to install. SharpAPI runs an MCP server at https://mcp.sharpapi.io/mcp. Add it to your app as a remote server and send your key in an X-API-Key header. The documentation has the setup for each app.
Local, this package. Run npx -y @sharp-api/mcp-server with SHARPAPI_KEY set. The rest of this page is about the package.
Both read the same API with your key, under your plan. Six tools are named differently on the two servers; the list is at the end of Tools.
Related MCP server: MCP Prediction Markets
Install
Install the npm package globally, which puts sharpapi-mcp on your PATH:
npm install -g @sharp-api/mcp-serverOr run it without installing:
npx -y @sharp-api/mcp-serverTo run from source instead, use the GitHub repository:
npx github:Sharp-API/SharpAPI-MCPConfigure
Set SHARPAPI_KEY in the environment. Get a free key at https://sharpapi.io; the free tier serves pre-match odds from DraftKings and FanDuel with a 60-second delay, at 12 requests/min, with no card.
The key is read from the environment only. There is deliberately no way to pass it as a tool argument: tool arguments are model-generated and end up in transcripts and logs.
Claude Code:
claude mcp add SharpAPI -e SHARPAPI_KEY=sk_your_key_here -- npx -y @sharp-api/mcp-serverCodex:
codex mcp add SharpAPI --env SHARPAPI_KEY=sk_your_key_here -- npx -y @sharp-api/mcp-serverClaude Desktop (claude_desktop_config.json) and Cursor (~/.cursor/mcp.json, or .cursor/mcp.json in a project), running the npm package through npx:
{
"mcpServers": {
"SharpAPI": {
"command": "npx",
"args": ["-y", "@sharp-api/mcp-server"],
"env": { "SHARPAPI_KEY": "sk_your_key_here" }
}
}
}With the global install, call the sharpapi-mcp binary directly:
{
"mcpServers": {
"SharpAPI": {
"command": "sharpapi-mcp",
"env": { "SHARPAPI_KEY": "sk_your_key_here" }
}
}
}Try it
Once the server is connected, ask your assistant:
"What sports have live events right now?"
"Show me NBA odds for tonight's games on DraftKings."
"Find arbitrage opportunities in soccer with at least 1% profit."
"Compare the odds for the Chiefs game across all books."
"What plan is my key on, and what can it call?"
Run as a remote (HTTP) server
The same tools can be served over Streamable HTTP for clients that connect by URL. This entry point is a separate script (dist/http.js), not the sharpapi-mcp binary. From a clone:
npm ci && npm run build
SHARPAPI_BASE_URL=https://api.sharpapi.io npm run start:http
# listening on http://127.0.0.1:8787/mcpEach caller sends their own SharpAPI key with every request, in an Authorization: Bearer <key> header or in X-API-Key. The server holds no key of its own and refuses to start if SHARPAPI_KEY is set, so every API call runs under the caller's own plan and rate limits.
variable | meaning | default |
| API base URL the server calls (required) | none |
| Host header names accepted, comma-separated |
|
| Origin host names accepted; a request with any other | none |
| listen address |
|
What it refuses, without calling the API:
a request with no key (401), or with a key in the URL: any query string on
/mcpis rejected (400);an unlisted
HostorOrigin(403), and anything butPOST /mcp(GET /healthzanswers a liveness probe);a key the API rejected in the last minute, and further requests from an address that has sent 10 rejected keys in 5 minutes (429);
more than 4 concurrent requests per key or 64 in total, and request bodies over 64 KiB.
Each tool call makes exactly one API request, with no retries. The server writes one JSON line per request to stdout: time, client address, MCP method, tool name, client name and version, the first 12 characters of the key (never more than half of it), HTTP and API status, latency and result size. It never logs the full key, request headers, the query string, tool arguments or results.
Tools
Reference lists:
tool | what it does | plan |
| Sports covered, with live/upcoming counts. Start here to find valid sport ids. | any |
| League ids with their sport and event counts. Pass | any |
| Book ids for the | any |
| Market ids ( | any |
| The shape of each market type's selections, with stable numeric ids. | any |
| The plan, rate limit and features of the key in use. | any |
Events and odds:
tool | what it does | plan |
| Events with ids, start times, teams. | any |
| Normalized odds across books: American, decimal, implied probability. Paginated: pass | any |
| Only the odds that changed since a timestamp (10 minutes back at most). The list of removed odds is left out unless | any |
| Best price per selection across books. The line-shopping view. | any |
| One event's prices side by side across books, one row per market, selection and line. Pass | any |
| The odds for one event across books, in one call with no pagination. Pass | any |
| Each book's last pre-match prices for an event, with no-vig and fair closing probabilities, for closing-line value (CLV). Pass | Pro+ |
| Public betting splits: share of bets ( | Pro+ |
Opportunities:
tool | what it does | plan |
| Cross-book arbitrage: combined implied probability under 100%. | Hobby+ |
| +EV bets against fair probability. Carries | Pro+ |
| Two-sided gaps where both bets can win. | Pro+ |
| The tightest lines across books: lowest combined margin ( | Pro+ |
Futures:
tool | what it does | plan |
| Season-long markets (championship and division winners, MVP and other awards, win totals) with their ids. | Enterprise |
| Odds on futures, grouped by future. Takes a | Enterprise |
| One future side by side across books. | Enterprise |
The API enforces plan requirements. The server returns API errors unchanged, including details about the required tier.
Answers are compact JSON. Three tools read routes that return everything held for one event, with no page size: get_event_odds, compare_odds and get_closing_lines. For a busy game that is thousands of rows, so an answer over about 100 kB is cut to its first rows and carries a truncated note: which lists were cut, how many rows each kept of how many, and how to ask for less. compare_odds and get_closing_lines narrow by market in this server, matching the id whole against each row's market_type; when nothing matches, the answer lists the ids the event does carry as available_markets. Paginated tools are never cut: use their limit and cursor or offset.
There is no separate no-vig tool. SharpAPI does not expose de-vigged odds as its own endpoint; the fair number arrives as fair_probability on each get_ev opportunity.
The hosted server at https://mcp.sharpapi.io/mcp has 21 tools as well. Fifteen share a name with this package; six are named differently:
list_sportshere isget_sportstherelist_sportsbookshere isget_sportsbookstherelist_eventshere isget_eventsthereget_evhere isfind_ev_opportunitiesthereget_arbitragehere isfind_arbitragethereget_middleshere isfind_middlesthere
Notes
Tool errors are returned with
isErrorso clients can handle rate limits and plan requirements.Diagnostics are written to stderr; in stdio mode stdout is reserved for the MCP protocol.
Support
Questions and bug reports: open an issue or write to support@sharpapi.io. To report a security problem, see SECURITY.md.
License
MIT
Available Tools
21 toolscompare_futures_linesARead-only
Compare one future across sportsbooks, to find the best price on a futures bet: for "best odds on Patrick Mahomes for MVP", pass future_id "nfl__mvp_winner" and selection "Patrick Mahomes". Same data as get_futures_odds, for one future. Requires an Enterprise plan.
Inputs: future_id (required), is_main, team_id, selection, +1 more.
compare_oddsARead-only
Compare prices across sportsbooks for one event: one row per market, selection and line, listing each book's price side by side. Pass market to compare one market, e.g. "moneyline". An event carries thousands of rows across all its markets: an answer over about 100 kB is cut to its first rows and carries a truncated note with the full row count. Use list_events to find the event id.
Inputs: event_id (required), market, market_segment.
find_low_holdARead-only
Find low-hold markets: the tightest lines across sportsbooks, where the combined margin of the best prices on each side (hold_percentage) is lowest. Requires a Pro plan or above.
Inputs: live, limit, sport, league.
get_account_infoARead-only
Get the account behind the API key in use: its plan (tier), rate limit, streaming allowance and the features it unlocks. Use it to check what the key can call before a tool that needs a higher plan.
Inputs: no named parameters.
get_arbitrageBRead-only
Find cross-book arbitrage opportunities: sets of prices whose combined implied probability is under 100%, so backing every outcome locks a margin. Requires a Hobby plan or above.
Inputs: limit, sport, league, min_profit.
get_best_oddsBRead-only
Get the best available price per selection across all covered books. This is the line shopping view: one row per selection rather than one per book.
Inputs: event, limit, sport, league, +1 more.
get_closing_linesARead-only
Get the closing lines captured for an event: each book's last pre-match prices from the moment the event went live, with no-vig and fair closing probabilities. Use it for closing-line value (CLV): was a bet better or worse than the close? Pass sportsbook and market to read one book and one market: an answer over about 100 kB is cut to its first rows and carries a truncated note with the full row count. An event that has not started returns no books. Requires a Pro plan or above.
Inputs: event_id (required), market, sportsbook.
get_evCRead-only
Find positive expected value (+EV) bets: prices that beat the fair probability implied by the wider market. Each opportunity carries a fairProbability field, which is the de-vigged number. Requires a Pro plan or above.
Inputs: limit, sport, league, min_ev, +1 more.
get_event_oddsARead-only
Get the odds for one event across every covered sportsbook, in one call with no pagination. A busy event holds thousands of rows, so pass sportsbook to read one book: an answer over about 100 kB is cut to its first rows and carries a truncated note with the full row count. To read one market, or to page through every row, use get_odds with event, market and cursor. Use list_events to find event ids.
Inputs: event_id (required), sportsbook.
get_futuresARead-only
List futures: season-long markets such as championship, conference and division winners, MVP and other awards, and win totals. Each has an id, e.g. "nfl__super_bowl_winner", to pass to get_futures_odds or compare_futures_lines, and lists the books pricing it. Pass league or sport to scope the list. Requires an Enterprise plan.
Inputs: sport, league, future_id, future_type.
get_futures_oddsARead-only
Get odds on futures, grouped by future: one row per sportsbook, selection, side (selection_line: over/under on win totals, yes/no) and line. Pass future_id (from get_futures), or league for every future in it. One future can hold hundreds of rows, so narrow with team_id, selection or sportsbook, and ask for a few futures at a time with limit. is_main marks each book's main line on a ladder. Paginated by future, 50 per page by default; when pagination.has_more is true, pass pagination.next_offset back as offset. Requires an Enterprise plan.
Inputs: limit, sport, league, offset, +6 more.
get_leaguesARead-only
List leagues with their ids, sport and event counts. Pass sport to list one sport: without it the list covers every sport and runs to several hundred leagues. Use the returned ids for the league argument elsewhere.
Inputs: sport.
get_marketsARead-only
List the markets SharpAPI prices, with their ids (e.g. "moneyline", "point_spread", "player_points"), how many events carry each and which books price it. Pass league or sport to scope the list and its counts. Use the returned ids for the market argument elsewhere. Each row carries market_type_id; see get_market_types.
Inputs: sport, league.
get_market_typesARead-only
List market types: the shape of a market's selections (e.g. moneyline: home/away, total: over/under), each with a stable numeric id. get_markets rows carry that id as market_type_id.
Inputs: no named parameters.
get_middlesBRead-only
Find middle opportunities: two prices on opposite sides with a gap where both bets can win. Sorted by quality unless told otherwise. Requires a Pro plan or above.
Inputs: sort, limit, sport, league, +2 more.
get_oddsARead-only
Get normalized odds across sportsbooks. Returns American and decimal prices plus implied probability, one row per book/market/selection, so prices are directly comparable between books. Results are paginated at 50 rows by default; pass the cursor from pagination.next_cursor to fetch the next page when pagination.has_more is true.
Inputs: live, event, limit, sport, +5 more.
get_odds_deltaARead-only
Get only the odds that changed since a timestamp, plus the odds removed since then: the incremental follow-up to a get_odds call, e.g. "which prices moved on tonight's NBA games in the last 5 minutes?". The API looks back 10 minutes at most. Results are paginated, 50 rows by default; when pagination.has_more is true, pass pagination.next_offset back as offset to fetch the next page. The list of removed odds is left out unless include_removed is true; removed_count says how many there were.
Inputs: since (required), live, limit, sport, +7 more.
get_splitsARead-only
Get public betting splits: the share of bets (bets_pct) and of money (handle_pct) on each side of an event's spread, total and moneyline, per source. sportsbook "consensus" is the deduplicated row most events carry. Results are paginated, 20 rows by default; when pagination.has_more is true, pass pagination.next_offset back as offset to fetch the next page. Requires a Pro plan or above.
Inputs: limit, sport, league, market, +3 more.
list_eventsARead-only
List events (games) with ids, start times and teams. Use this to find an event id before fetching odds for it.
Inputs: date, live, limit, sport, +1 more.
list_sportsARead-only
List the sports SharpAPI covers, with live and upcoming event counts for each. Call this first to discover valid sport ids for the other tools.
Inputs: no named parameters.
list_sportsbooksARead-only
List the sportsbooks SharpAPI normalizes, with their ids. Use the returned ids for the sportsbook argument elsewhere. Which books a key can actually read depends on its plan: the free tier serves DraftKings and FanDuel only.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools target clearly distinct resources (splits, closing lines, arbitrage, EV, middles, account, discovery lists), but the odds family overlaps heavily: get_odds, get_event_odds and compare_odds all return per-book prices for an event, and compare_futures_lines is explicitly documented as 'same data as get_futures_odds, for one future'. The descriptions do include helpful cross-references ('use get_odds with event, market and cursor'), which keeps this from being worse, but an agent still has to reason about response shape and pagination rather than purpose when picking among them.
Every tool is snake_case with a leading verb (list_, get_, compare_, find_), and the verb choice is semantically meaningful: list_ for discovery, get_ for retrieval, compare_ for side-by-side views, find_ for opportunity scans. No camelCase or ad-hoc naming anywhere.
21 tools is on the heavy side, but the surface spans a genuinely broad product: six id-discovery tools, a large odds family, futures, analytics (arb/EV/middles/low-hold), splits, closing lines and account introspection. Each tool maps to a distinct capability rather than being padding, though the odds family could plausibly be consolidated into fewer parameterized tools.
The read-only lifecycle is well covered: discovery of sports/sportsbooks/leagues/markets/market types/events, live odds, best odds, deltas, closing lines, splits, futures and derived analytics, plus account/plan introspection. Minor gaps remain: get_futures_odds takes a team_id but there is no list_teams (or list_players) tool to resolve ids, and no search-by-name lookup, so agents must rely on free-text selection strings.
Maintenance
Related MCP Connectors
Sportsbook and prediction market odds for developers and AI agents. One call returns every book.
Sports odds, player props and source coverage for AI assistants. Connect with your own API key.
Sports prediction markets for AI agents — live prices, quotes, orders, and positions.
Grounded sports predictions plus European soccer and tennis arbitrage data for AI agents.
Related MCP Servers
AlicenseAqualityBmaintenanceLive and pre-match sports odds from 450+ bookmakers across 34 sports, plus Polymarket and Kalshi. Events, odds, fair prices, value bets, arbitrage, historical closing lines and bet settlement for AI assistants.36854 npm3MIT- AlicenseAqualityDmaintenanceProvides search, trending, odds, arbitrage, and category browsing for prediction markets (Polymarket & Kalshi) via the Model Context Protocol, enabling AI agents to access live market data without API keys.51MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with professional-grade tools for expected value calculation, Monte Carlo predictions, historical backtesting, and portfolio risk management in sports betting.-
- AlicenseBqualityDmaintenanceProvides AI agents with live, grounded sports data including model probabilities, track records, and European soccer and tennis arbitrage opportunities, so they answer from real numbers instead of stale guesses.13158 npm1MIT