BaseballData API
Data
Coverage
MLB seasons held129MLB 2026 games2,469Postseason line scores40WBC and Premier12 games242Czech box scores1,430
See all coverage
DocsPricingStatus

Documentation/Guides

MCP | Baseball Data API

MCP

Connect an assistant to the API.

The MCP server puts the API in front of an assistant as tools. Its address is https://baseballapi.net/mcp. Each tool calls the API with your own key, so your plan and limits apply.

For Claude Code and Cursor, add the server with your key as the X-API-Key header (or Authorization: Bearer). Claude Code:

claude mcp add --transport http baseballapi https://baseballapi.net/mcp --header "X-API-Key: YOUR_KEY"

Then ask, for example, "What were yesterday's KBO results?" and the assistant calls yesterdays_results or find_games. The tools are listed on MCP tools. Connecting from the Claude.ai and ChatGPT apps, which sign in rather than take a header, comes with the next release.