Mlb MCP
This is an MCP server based on FastAPI, providing baseball data query functions from MLB and Fangraphs through the pybaseball library, including player data, team statistics, and league leaderboards.
rating : 2 points
downloads : 23
What is Pybaseball MCP Server?
This is a baseball data API service built on FastAPI, providing baseball statistics from MLB (Major League Baseball) and Fangraphs through the pybaseball library. Users can easily query player performance, team data, and league leaderboards.How to use Pybaseball MCP Server?
Simply send an HTTP request to the corresponding API endpoint to obtain the desired baseball data. There's no need to install any software, and it can be used via a browser or any HTTP client.Applicable Scenarios
Suitable for baseball data analysts, sports journalists, Fantasy baseball players, and any users who need to obtain professional baseball statistics.Main Features
Player Data QueryGet detailed Statcast statistics by player name, supporting filtering by date range.
Team StatisticsGet the batting or pitching statistics of a specified team in a given year.
League LeaderboardQuery the league leaderboards for various MLB data, which can be filtered by season, league, and type (batting/pitching).
Advantages and Limitations
Advantages
A simple and easy-to-use REST API interface
Authoritative and reliable data sources (MLB and Fangraphs)
No complex installation and configuration required
Support for flexible query parameters
Limitations
Only supports baseball data queries
Historical data may be incomplete
Query results may have a slight delay
How to Use
Start the Service
Install dependencies and run the FastAPI server.
Access the API Documentation
Open the interactive API documentation page in a browser.
Send an API Request
Use an HTTP client or browser to access the API endpoints.
Usage Examples
Query Player PerformanceGet the batting data of Mike Trout in the 2023 season.
Compare Team PerformanceCompare the pitching data of the Dodgers and the Yankees in 2022.
Analyze League TrendsView the home run leaderboard of the American League in 2023.
Frequently Asked Questions
How to query the data of non-active players?
What is the data update frequency?
Can I get real-time game data?
How to deploy to a production environment?
Related Resources
Official Documentation of pybaseball
Official documentation and installation instructions for the pybaseball library.
FastAPI Documentation
Official documentation for the FastAPI framework.
Official Website of MLB
Official website of Major League Baseball.
Fangraphs
A professional baseball statistics website.
Featured MCP Services

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
141
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
830
4.3 points

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
1.7K
5 points

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
87
4.3 points

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
6.7K
4.5 points

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#
567
5 points

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
754
4.8 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points