MCP Mlb Statsapi
M

MCP Mlb Statsapi

An MLB data API encapsulation service based on the MCP framework, providing functions such as schedule query, game result query, team information query, and player query.
2 points
7.7K

What is baseball-mcp?

This is an MCP server specially designed for baseball enthusiasts. It encapsulates the official MLB data interface, enabling you to easily query various game information of the Major League Baseball. You can obtain professional data such as schedule arrangements, game results, and team records through simple commands.

How to use baseball-mcp?

After installing the Python environment, install this service package via pip, and then configure the server address in applications that support MCP, such as Claude, to start querying. It supports both natural language and structured queries.

Applicable scenarios

Suitable for baseball data analysts, sports journalists, game commentators, and ordinary baseball fans. It can be used in scenarios such as making game reports, analyzing team performance, and tracking player data.

Main features

Game schedule query
You can query the MLB schedules by date range and support filtering by team. It provides basic information such as game time and competing teams.
Game result query
Get the daily game results, including detailed data such as scores, win - loss situations, and winning pitchers.
Team data query
Query the detailed game data of a specific team, including in - depth information such as the scoring process and exciting moments.
Player search
Find the player ID by name, supporting fuzzy matching. It can query both Chinese and foreign player names.
Advantages
The data source is authoritative, directly connected to the official MLB API
The query method is flexible, supporting natural language input
The response speed is fast, and the data acquisition process is optimized
It is Chinese - friendly and supports mixed Chinese and English queries
Limitations
It is limited to MLB game data and does not include other leagues
Some historical data may be incomplete
It requires a Python runtime environment

How to use

Installation preparation
Ensure that Python 3.10 or a later version is installed. It is recommended to use the uv package manager.
Install the service package
Install the mcp_mlb_statsapi package via pip
Configure the MCP client
Add the server configuration in applications that support MCP, such as Claude

Usage examples

Query today's schedule
Find out which MLB games are being played today
Get the latest record of the Yankees
Track the latest performance of a specific team
Find player information
Find a specific player by name

Frequently Asked Questions

Is it necessary to pay for using it?
How often is the data updated?
Which query languages are supported?
Can historical data be obtained?

Related resources

Demo video 1 - Quick overview
Demonstration of basic functions
Demo video 2 - Chinese query
Show the Chinese query function
MLB - StatsAPI project
The core library that this project depends on
uv installation guide
Installation instructions for the package manager

Installation

Copy the following command to your Client for configuration
{
      "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"
        ]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
11.7K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
9.8K
5 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
10.2K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
13.7K
4 points
V
Video Editing MCP
Video Editor MCP is a video editing server that provides video upload, search, generation, and editing functions, supporting operations through the LLM and Video Jungle platforms.
Python
13.6K
4 points
B
Bilibili MCP Js
Certified
A Bilibili video search server based on the Model Context Protocol (MCP), providing API interfaces to support video content search, paginated queries, and video information return, including LangChain call examples and test scripts.
TypeScript
16.8K
4.2 points
M
MCP Youtube
Download YouTube subtitles via yt - dlp and connect to Claude.ai through the MCP protocol for video content analysis
TypeScript
11.6K
4 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
79.2K
5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
25.4K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
17.6K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
51.5K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
16.9K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.9K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
49.4K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
34.5K
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
16.5K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase