Skip to content
FastballAPI

MCP server

MLB data for AI agents, over MCP

FastballAPI is a hosted MCP server: one URL gives Claude, ChatGPT, Cursor or your own agent 18 read-only baseball data tools. 500 free credits, no card.

Get a free keyTry a call in the browser

Connect in one step

Claude Code

bash
claude mcp add --transport http fastballapi "https://mcp.fastballapi.com/mcp?key=YOUR_API_KEY"

Claude Desktop, Cursor and other clients

json
{
  "mcpServers": {
    "fastballapi": {
      "url": "https://mcp.fastballapi.com/mcp",
      "headers": { "x-api-key": "YOUR_API_KEY" }
    }
  }
}

In ChatGPT, add it as a custom connector (developer mode) with the server URL https://mcp.fastballapi.com/mcp?key=YOUR_API_KEY. Listing tools works without a key; calling one needs it.

Ask it things like

18 tools

Credits per call. The same tools are REST endpoints; see the docs.

Team ids, abbreviations and colours for a season

Find players by name

Games with runs, hits and errors by season, date, range or team

Upcoming games with the median line across sportsbooks

Standings from every final game, with run differential and Pythagorean record

The latest injury report

Our team Elo ratings, ranked

One game: every batting and pitching line, each book's line, win probability

Season batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9)

A player's full batting and pitching game log

Season leaders among qualified batters and pitchers

Runs for and against, team batting and opponents' batting

A pitcher's arsenal: usage, velocity, whiff rate per pitch type

Every sportsbook's moneyline, run line and total for a game (5) or a day (10)

Plate-appearance play-by-play with base-out state, batted ball, win probability, RE24

Pitch-by-pitch: count, type, velocity, location, result

Where a batter or team hits the ball, by trajectory and field

Daily snapshots of each sportsbook's line before first pitch

Questions

What is the FastballAPI MCP server?

A hosted Model Context Protocol server at https://mcp.fastballapi.com/mcp. Add that URL to Claude, ChatGPT, Cursor or any MCP client and the assistant can call 18 read-only baseball data tools directly: no scraping, no local install.

Do I need to run anything locally?

No. It is a remote server over Streamable HTTP. Your client connects to one URL and sends your API key as an x-api-key header or a ?key= parameter.

What does it cost?

Every account starts with 500 free credits and no card. Tools cost 1 to 10 credits a call, a call that returns no data is refunded, and plans start at $19/month for 10,000 credits.

Is it the same data as the REST API?

Yes. Every MCP tool is also a REST endpoint with the same arguments and response, so an agent prototype and production code read identical data.

Which clients work?

Anything that speaks MCP over Streamable HTTP: Claude Code, Claude Desktop, ChatGPT (connectors), Cursor, Cline, Windsurf and agent frameworks with an MCP client. It is also listed on the official MCP Registry, Smithery and Glama.