Cover image
Try Now
2025-03-27

Este proyecto proporciona un servidor MCP (tubería multicanal) que actúa como un envoltorio para la API de MLB STATS. Le permite acceder fácilmente y procesar varios puntos de datos de MLB, incluidos los horarios, los resultados del juego e información del equipo. Este servidor está diseñado para una recuperación y procesamiento de datos eficientes dentro de un marco MCP.

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

baseball-mcp: An MLB Stats API Wrapper for MCP

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 retrieval and processing within an MCP framework.

Demo Videos

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

  • Demo 1: MCP MLB Stats API - Quick Overview
  • Quick Overview
  • Demo 2: MCP MLB Stats API - 輸入中文也可以
  • 輸入中文也可以

Features

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

Installation

Prerequisites

  • Python 3.10 or newer
  • uv package manager:

If you're on Mac, please install uv as

brew install uv

On Windows

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

Otherwise installation instructions are on their website: Install uv

Install via PyPI

The mcp_mlb_statsapi package is available on PyPI and can be installed using pip:

pip install mcp_mlb_statsapi

Install via Github

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

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

Claude for Desktop Integration

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"]
          }
        }
    }

If you install it via source code

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

Contributing

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

License

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.

References

This project utilizes the following external libraries and resources:

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

    Reviews

    1 (1)
    Avatar
    user_9ewSClNW
    2025-04-16

    As a loyal user of mcp_mlb_statsapi, I must say this product is incredible for retrieving MLB statistics. The seamless integration and detailed data presentation have elevated my projects. The clear documentation on the GitHub page provided by mpizza is a huge plus, making implementation straightforward even for developers new to API usage. If you're looking to enhance your baseball-related applications, I highly recommend checking out mcp_mlb_statsapi!