Mcp_mlb_statsapi

by mpizza

483 downloads
Not rated
GitHub

About

This project provides an MCP (Multi-Channel Pipeline) server that acts as a wrapper for the MLB Stats API. It allows you to easily access and process various MLB data points, including schedules, game results, and team information. This server is designed for efficient data retri

Details

Author
mpizza
Downloads
483
Categories
Other, Search

- Retrieve MLB game schedules with date range and team filters.
- Fetch daily game results including scores and winning pitcher.
- Get detailed results for a specific team’s most recent game.
- Look up player IDs using fuzzy matching by name.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Mcp_mlb_statsapi
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install the package via pip: pip install mcp_mlb_statsapi. Then configure it for Claude for Desktop by editing claude_desktop_config.json to add the MCP server entry as shown in the README. Alternatively, run it from source code using uvx.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

baseball-mcp: An MLB Stats API Wrapper for MCP

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 points, including schedules, game results, and team information. This server is designed for efficient data retrieval and processing within an MCP framework.

Here are a couple of demo videos showcasing the capabilities ofmcp_mlb_statsapi:

- Demo 1: MCP MLB Stats API - Quick Overview

- 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.

- Python 3.10 or newer
- uv package manager:

If you're on Mac, please install uv as

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Otherwise installation instructions are on their website:Install uv

Themcp_mlb_statsapipackage is available on PyPI and can be installed usingpip:

or you can clone this repo, run it with soruce code.

uv venv source .venv/bin/activate uv pip install -r requirements.txt

Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:

{ "mcpServers": { "mcp_mlb_statsapi": { "command": "{YOUR_PYTHON_EXECUTABLE_PATH}/python", "args": ["-m", "mcp_mlb_statsapi"] } } }
{ "mcpServers": { "mcp_mlb_statsapi": { "command": "{YOUR_UV_EXECUTABLE_PATH}/uv", "args": [ "--directory", "{YOUR_PROJECT_PATH}/src/mcp_mlb_statsapi", "run", "mcp_mlb_statsapi" ] } } }

Contributions are welcome! Please open an issue or submit a pull request.

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

This project utilizes the following external libraries and resources:

- MLB-StatsAPI:https://github.com/toddrob99/MLB-StatsAPI- A Python library providing access to the MLB Stats API. This project relies heavily onmlb-statsapifor data retrieval.

Ask your AI assistant which players are injured or doubtful before this weekend's matches.

An MCP server that provides chess statistics for any player.

CVE/SBOM security audits, licence compliance, frontend security scanning, domain intelligence, and public records — 55 tools, no API key required Category: Security (also fits: Compliance, Data)

Unofficial CLI + MCP server for eliteprospects.com Resources

EPA air quality monitoring and HUD foreclosure data. 3 MCP tools for environmental and housing data

Provides club information and advanced player statistics for Euroleague and Eurocup basketball from the Euroleague API.

Track flights in real-time using Flightradar24 data.

Semantic search across 50,000+ Food.com recipes, filter by diet, cooking time and difficulty.

MCP server for Fantasy Premier League analysis and strategy. This server provides AI assistants with powerful tools, resources, and prompts to help you dominate your FPL mini-leagues with data-driven insights

Real-time surf, trails, volcano, ocean safety, weather, and restaurants for all Hawaiian islands — built for AI agents.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.