MCP Mlb Statsapi MCP Server

This project provides an MCP (Model Context Protocol) that acts as a wrapper for the MLB Stats API. It allows you to easily access and process

Local serverstdioPython

What is the MCP Mlb Statsapi MCP Server?

This project provides an MCP (Model Context Protocol) that acts as a wrapper for the MLB Stats API. It allows you to easily access and process various MLB data

What you get

  • Game Schedules: — Retrieve MLB game schedules for specified date ranges, optionally filtering by team
  • Game Results: — Fetch daily game results, including scores, winning/losing teams, and winning pitcher
  • Team Results: — Get detailed results for a specific team's most recent game, including scoring plays and highlights
  • Player Lookup: — Look up player IDs using last name, first name, or a combination of both. Supports fuzzy matching

Configuration and credentials

  • Python 3.10 or newer - uv package manager: If you're on Mac, please install uv as On Windows Otherwise installation instructions are on their website: Install uv

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the MCP Mlb Statsapi MCP Server

{
  "mcpServers": {
    "mcp_mlb_statsapi": {
      "command": "{YOUR_PYTHON_EXECUTABLE_PATH}/python",
      "args": [
        "-m",
        "mcp_mlb_statsapi"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Python 3.10 or newer - uv package manager: If you're on Mac, please install uv as On Windows Otherwise installation instructions are on their website: Install uv

Example prompts to try

  • “Use MCP Mlb Statsapi to Prerequisites.”

Frequently asked questions

This project provides an MCP (Model Context Protocol) that acts as a wrapper for the MLB Stats API. It allows you to easily access and process various MLB data Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.