Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itOne address for any MCP client. No sign-in needed on this server.
23 read
Grouped by tool name. At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
The baseball data API. Pitch-by-pitch data with pitch type, velocity and location, every plate appearance with base-out state and the batted ball, box scores, standings, our own ratings and run values, sportsbook lines by book and MLB player prop lines. MLB since 2015 plus the NCAA Division I games we cover. REST API and MCP server. 500 free credits every month, no card.
Website: https://fastballapi.com?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp · Docs: https://fastballapi.com/docs?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp · Get a key: https://fastballapi.com/signup?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp
You: "What is Gerrit Cole's whiff rate by pitch type this season?"
Claude: [calls get_pitch_mix]
You: "How often did Aaron Judge homer on a 3-2 count in 2025?"
Claude: [calls get_plate_appearances]
You: "How often has Shohei Ohtani gone over his total bases line since 2023?"
Claude: [calls get_prop_history]
Most clients connect to https://mcp.fastballapi.com/mcp directly. For a client that launches a local process instead:
git clone https://github.com/noahowsh/fastballapi-mcp.git && cd fastballapi-mcp && npm install
FASTBALLAPI_API_KEY=your_key node index.js
{ "mcpServers": { "fastballapi": { "command": "node", "args": ["/path/to/fastballapi-mcp/index.js"], "env": { "FASTBALLAPI_API_KEY": "your_key" } } } }
It forwards to the hosted server with your key, so every tool and credit cost is the same.
This repo also ships 16 free Claude skills in skills/ that turn Claude into a baseball analyst: pitch mix and whiff rate, run value, spray charts, Pythagorean record, game previews, odds analysis, prop modeling (pitcher strikeouts, hits, total bases), edge detection and backtesting. Each skill names the FastballAPI tools it calls and what they cost.
git clone https://github.com/noahowsh/fastballapi-mcp.git
Or install them as a Claude Code plugin:
/plugin marketplace add noahowsh/fastballapi-mcp
/plugin install fastballapi-skills@fastballapi
Or with the skills CLI: npx skills add noahowsh/fastballapi-mcp.
Point Claude at the skills/ folder, connect the MCP server below, and ask. The dispatch skill routes a request to the right two or three skills. Full list: skills/README.md.
The official Python client is on PyPI: fastballapi.
pip install fastballapi
export FASTBALLAPI_API_KEY=sk_live_...
from fastballapi import Client, to_dataframe
client = Client()
props = client.get_player_props(
game_id="401815991",
market="batter_home_runs",
)
df = to_dataframe(props, key="props")
print(df[["player_name", "bookmaker", "line", "over_odds", "under_odds"]].head(10))
Typed errors for a bad key, no credits left, not found and rate limits, automatic retries, and to_dataframe for pandas.
This is a hosted (remote) MCP server over Streamable HTTP. There is nothing to install.
Claude Code
claude mcp add --transport http fastballapi "https://mcp.fastballapi.com/mcp?key=YOUR_API_KEY"
Claude Desktop, Cursor and other clients
{
"mcpServers": {
"fastballapi": {
"url": "https://mcp.fastballapi.com/mcp?key=YOUR_API_KEY"
}
}
}
The key can also be sent as an x-api-key header or Authorization: Bearer. Connecting and listing tools works without a key; calling a tool needs one.
REST
curl -X POST https://mcp.fastballapi.com/v1/list_teams -H "x-api-key: YOUR_API_KEY"
Every tool is POST /v1/{tool} with a JSON body.
Runnable Python (standard library only) and Node 18+ (no dependencies) examples live in examples/:
examples/python/quickstart.py and examples/node/quickstart.mjs: schedule plus a headline call.examples/python/mlb_pitch_mix_and_props.py: A pitcher's arsenal (usage, velocity, whiff rate and ball rate per pitch type) followed by his strikeout prop lines against what he actually threw, game by game.export FASTBALLAPI_API_KEY=your_key
python3 examples/python/quickstart.py
node examples/node/quickstart.mjs
See examples/README.md for details. Get a free key (500 credits a month, no card) at https://fastballapi.com/signup?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp.
https://mcp.fastballapi.com/mcp as a remote MCP server. Step-by-step for each: https://fastballapi.com/mcp?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcpgemini extensions install https://github.com/noahowsh/fastballapi-mcp=SDHQ("fastballapi","list_teams") fills a live table: https://sportsdatahq.com/sheets?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcpPOST https://mcp.fastballapi.com/v1/<tool> with an x-api-key header: https://fastballapi.com/docs?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp| Tool | What it returns |
|---|---|
list_teams | Team ids, abbreviations and colours for a season |
search_players | Find players by name |
get_games | Games with runs, hits and errors by season, date, range or team |
get_schedule | Upcoming games with the median line across sportsbooks |
get_standings | Standings from every final game, with run differential and Pythagorean record |
get_injuries | The latest injury report |
get_ratings | Our team Elo ratings, ranked |
get_game | One game: every batting and pitching line, each book's line, win probability |
get_player | Season batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9) |
get_player_games | A player's full batting and pitching game log |
get_leaders | Season leaders among qualified batters and pitchers |
get_team_stats | Runs for and against, team batting and opponents' batting |
get_pitch_mix | A pitcher's arsenal: usage, velocity, whiff rate per pitch type |
get_odds | Every sportsbook's moneyline, run line and total for a game (5) or a day (10) |
get_plate_appearances | Plate-appearance play-by-play with base-out state, batted ball, win probability, RE24 |
get_pitches | Pitch-by-pitch: count, type, velocity, location, result |
get_spray_chart | Where a batter or team hits the ball, by trajectory and field |
get_line_movement | Snapshots of each sportsbook's line before first pitch |
get_player_props | Player prop lines by sportsbook: the closing line (one pre-game capture per line before October 2026) |
get_prop_history | A player's prop lines against the result, game by game |
get_prop_movement | How one player's prop line moved before a game, every capture by sportsbook |
get_market_odds | Opening and closing lines by sportsbook for the first-5-innings and first-inning markets (history from May 2023) |
get_alt_lines | Alternate run lines and totals by sportsbook: every point on each book's ladder, opening and closing, from 2023 |
Leagues: mlb (default), ncaabase (NCAA Division I games we cover; pitch tools, spray charts and injuries are not offered for college).
get_player_props, get_prop_history); none for collegeCoverage by season, read live from the database: https://fastballapi.com/docs?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp
500 free credits every month, no card. Plans: Starter $19/mo (10,000 credits), Pro $49/mo (30,000), Scale $149/mo (125,000). Wallet top-ups from $5, never expire. https://fastballapi.com/pricing?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp
Ratings and run values are ours. Not affiliated with MLB, the NCAA or any team.
MIT for the contents of this repository. Data terms as above.
Add this repo as a Codex plugin marketplace, then install the plugin:
codex plugin marketplace add noahowsh/fastballapi-mcp
Then open the plugin directory in Codex and install fastballapi-skills from the fastballapi marketplace. The plugin bundles the skills in skills/ and the FastballAPI MCP server (https://mcp.fastballapi.com/mcp). Set your key first (free at https://fastballapi.com/signup?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp):
export FASTBALLAPI_API_KEY=your_key
Codex sends it as a bearer token.
export FASTBALLAPI_API_KEY=your_key
gemini extensions install https://github.com/noahowsh/fastballapi-mcp
The extension adds the FastballAPI MCP server (https://mcp.fastballapi.com/mcp) and sends the key in the x-api-key header. Get a free key (500 credits a month) at https://fastballapi.com/signup?utm_source=github&utm_medium=readme&utm_campaign=fastballapi-mcp.