Unknown/mpizza/mcp_mlb_statsapi
Built by Metorial, the integration platform for agentic AI.
Unknown/mpizza/mcp_mlb_statsapi
Server Summary
Retrieve game schedules
Get game results
Access team information
Process MLB data
Real-time data retrieval
Support for multiple data queries
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 of mcp_mlb_statsapi:
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
The mcp_mlb_statsapi package is available on PyPI and can be installed using pip:
pip install mcp_mlb_statsapi
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"]
}
}
}
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"
]
}
}
}
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 for data retrieval.