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.
2 points
10.2K

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 Query
Get detailed Statcast statistics by player name, supporting filtering by date range.
Team Statistics
Get the batting or pitching statistics of a specified team in a given year.
League Leaderboard
Query the league leaderboards for various MLB data, which can be filtered by season, league, and type (batting/pitching).
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 Performance
Get the batting data of Mike Trout in the 2023 season.
Compare Team Performance
Compare the pitching data of the Dodgers and the Yankees in 2022.
Analyze League Trends
View 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.

Installation

Copy the following command to your Client for configuration
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
8.3K
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
7.9K
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.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
13.6K
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
12.9K
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.7K
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.0K
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
65.0K
5 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
14.8K
4.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
24.8K
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
15.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
44.5K
4.3 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.3K
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
45.6K
4.5 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
15.0K
4.5 points
C
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
63.1K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase