✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

Frequently Asked Questions (FAQ) - MCP Server for pybaseballstats

Q: What is an MCP Server? A: MCP (Model Context Protocol) Server acts as a bridge, allowing AI models to access and interact with external data sources and tools. It standardizes how applications provide context to LLMs.

Q: What data does the MCP Server for pybaseballstats provide? A: It provides MLB and Fangraphs baseball data, including player Statcast data, team batting/pitching stats, and league leaderboards.

Q: What is pybaseballstats? A: pybaseballstats is a Python library that provides access to MLB and Fangraphs baseball data. The MCP Server uses this library to fetch data.

Q: How do I install the MCP Server? A: You can install it using pip install -r requirements.txt after cloning the repository. Then, run the server with uvicorn main:app --reload.

Q: How do I access the API documentation? A: Once the server is running, you can access the interactive API documentation at http://127.0.0.1:8000/docs.

Q: Can I use this server with the UBOS platform? A: Yes! The MCP Server is designed to integrate seamlessly with the UBOS platform for AI agent development.

Q: What are some example API calls? A: Examples include:

  • GET /player?name=Mike Trout to get player stats
  • GET /team_stats?team=Yankees&year=2023&type=batting to get team batting stats
  • GET /leaderboard?stat=HR&season=2023&league=AL&type=batting to get league leaderboards.

Q: How can I list available tools? A: You can list available tools using HTTP with curl -X POST http://localhost:8000/tools/list or using the STDIO wrapper.

Q: What are the system requirements for running the MCP Server? A: The server requires Python and the dependencies listed in requirements.txt, including pandas and numpy.

Q: Is the data provided in real-time? A: The server can be configured to update its data regularly, but it may not be real-time depending on the source data update frequency.

Q: Can I use this server for commercial purposes? A: Please review the licensing of pybaseballstats and any other dependencies to ensure compliance for commercial use. Also, review UBOS asset marketplace license.

Featured Templates

View More

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.