
mcp football stats
Model Context Protocol implementation for educational purpose
Repository Info
About This Server
Model Context Protocol implementation for educational purpose
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
!MCP Football Stats Logo
Football Stats MCP
A Model Context Protocol (MCP) implementation for fetching and analyzing football statistics.
Note: This particular MCP is not a final product and will be updated as time goes by.
What is MCP?
Model Context Protocol (MCP) is a standardized way to interact with LLM and agents. It provides a structured interface for:
- Fetching real-time match data
- Accessing team statistics
- Retrieving player information
- Getting news and updates
Features
This MCP implementation provides the following tools:
Team Tools
get_team_profile(team_id): Fetches detailed information about a specific teamget_team_news(team_id): Retrieves the latest news and updates for a team
Match Tools
get_match_details(match_id): Gets comprehensive match statistics and details
Installation
Using uv (Recommended)
# Install uv if you haven't already
pip install uv
# Install MCP CLI
uv add "mcp[cli]"
# Run the MCP server
uv run mcp
Using pip
pip install -r requirements.txt
Usage
Running the Server
You can run the MCP server in several ways:
- Using MCP CLI directly:
mcp run server.py
- Using uv:
uv run mcp server.py
Testing and Development
You can test the MCP server using the MCP Inspector:
mcp dev server.py
Installing in Claude Desktop
You can install this server in Claude Desktop and interact with it right away:
mcp install server.py
Example API Calls
# Get team profile
team_data = await get_team_profile(team_id=123)
# Get team news
news = await get_team_news(team_id=123)
# Get match details
match_data = await get_match_details(match_id=456)
Dependencies
- Python >= 3.13
- mcp[cli] >= 1.8.0
- httpx
- uv (recommended for installation)
Configuration
The MCP uses authentication tokens for accessing the FotMob API. These are stored in src/headers.py.
Contributing
Feel free to submit issues and enhancement requests!
Quick Start
Clone the repository
git clone https://github.com/danielferreira-dias/mcp-football-statsInstall dependencies
cd mcp-football-stats
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.