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 23 read-only baseball data tools. 500 free credits every month, no card.

Get a free keyTry a call in the browser

Connect in one step

Claude and ChatGPT: no key needed

Add a custom connector with this URL. The first time a tool runs, you sign in to your FastballAPI account and press Allow; new users can create a free account from the same screen. In Claude: Settings, Connectors, Add custom connector. In ChatGPT: follow the ChatGPT steps below.

url
https://mcp.fastballapi.com/mcp

Claude Code

bash
claude mcp add --transport http fastballapi https://mcp.fastballapi.com/mcp

Then run /mcp in Claude Code and sign in. To use an API key instead, add ?key=YOUR_API_KEY to the URL.

Claude Desktop, Cursor and other clients

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

Listing tools works without signing in; calling one needs your account or an API key, and uses its credits.

Use it in ChatGPT

ChatGPT adds outside MCP servers through developer mode. OpenAI currently offers it on workspace plans (Business, Enterprise and Edu), where an admin may need to turn it on, and it moves its menus often. Its developer mode guide has the current location of each setting.

  1. Turn on developer mode in ChatGPT's settings (or ask your workspace admin to).
  2. Create a custom MCP app or connector. Name it FastballAPI, paste the server URL below, and choose OAuth as the authentication.
    url
    https://mcp.fastballapi.com/mcp
  3. ChatGPT opens a FastballAPI sign-in page. Sign in, or create a free account on the same page, and press Allow. There is no API key to copy, so none ends up in a chat.
  4. Start a new chat, add FastballAPI from the tools menu, and ask something like “Who led MLB in RE24 last season among qualified hitters, and how does that list compare with OPS?”

No developer mode on your plan? Use Claude (steps above), or call the REST API from your own computer: your key stays on your machine and the responses save straight to files. See save the raw JSON in the docs.

Other assistants and editors

The same URL works anywhere that takes a remote MCP server. Where the app signs you in, use your FastballAPI account; where it asks for headers, send your key as x-api-key.

Gemini CLI

bash
gemini extensions install https://github.com/noahowsh/fastballapi-mcp

Then set FASTBALLAPI_API_KEY to your key before starting Gemini CLI.

VS Code

json
// .vscode/mcp.json
{
  "servers": {
    "fastballapi": { "type": "http", "url": "https://mcp.fastballapi.com/mcp" }
  }
}

Zed

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

Or leave out headers and Zed signs you in to FastballAPI instead.

Google Sheets

Copy the template sheet, add your key under Extensions, then type =SDHQ("fastballapi","get_standings") for a live table.

Grok

At grok.com/connectors choose New connector, then Custom, paste the server URL and sign in to FastballAPI.

Perplexity and Le Chat

Both take a custom remote connector: Perplexity on Pro, Max and Enterprise plans, Le Chat from the account owner's connector settings. Paste the server URL and sign in, or add your key as an API key.

Ask it things like

23 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

Snapshots of each sportsbook's line before first pitch

Player prop lines by sportsbook: the closing line (one pre-game capture per line before October 2026)

A player's prop lines against the result, game by game

How one player's prop line moved before a game, every capture by sportsbook

Opening and closing lines by sportsbook for the first-5-innings and first-inning markets (history from May 2023)

Alternate run lines and totals by sportsbook: every point on each book's ladder, opening and closing, from 2023

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 23 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 at one URL. Claude and ChatGPT connect with no key: they ask you to sign in to your FastballAPI account the first time. Other clients send your API key as an x-api-key header or a ?key= parameter.

What does it cost?

Every account gets 500 free credits every month and no card. Connecting from an app starts you with 50 while you confirm your email, which adds the other 450. 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, VS Code, Zed, Cline, Windsurf and agent frameworks with an MCP client. It is also listed on the official MCP Registry and Glama.

Building analysis on top? The skills library has ready-made Claude workflows for this data.