You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert
rishijatia / fantasy-pl-mcp Public
Fantasy Premier League MCP Server
5 stars
0 forks
Branches
Tags
Activity
Notifications
You must be signed in to change notification settings
main
Go to file
Code
| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------
History
-------
30 Commits
| | |
| .github/workflows | | .github/workflows | Fix PyPi workflow | Mar 14, 2025 |
| scripts | | scripts | Initial release v0.1.0 | Mar 14, 2025 |
| src/fpl_mcp | | src/fpl_mcp | update gitignore | Mar 16, 2025 |
| tests | | tests | Update package configuration for PyPI publishing | Mar 14, 2025 |
| .gitignore | | .gitignore | update gitignore | Mar 16, 2025 |
| CHANGELOG.md | | CHANGELOG.md | better prompts | Mar 16, 2025 |
| CONTRIBUTING.md | | CONTRIBUTING.md | Initial release v0.1.0 | Mar 14, 2025 |
| DISTRIBUTION.md | | DISTRIBUTION.md | fixes for initial distribution via pypi | Mar 14, 2025 |
| LICENSE | | LICENSE | Initial release v0.1.0 | Mar 14, 2025 |
| PYPI.md | | PYPI.md | fixes for initial distribution via pypi | Mar 14, 2025 |
| PYPI_SETUP_CHANGES.md | | PYPI_SETUP_CHANGES.md | Update package configuration for PyPI publishing | Mar 14, 2025 |
| README.md | | README.md | Add Glama Badge | Mar 16, 2025 |
| install.bat | | install.bat | Initial release v0.1.0 | Mar 14, 2025 |
| install.sh | | install.sh | Initial release v0.1.0 | Mar 14, 2025 |
| install_mcp.py | | install_mcp.py | Initial release v0.1.0 | Mar 14, 2025 |
| pyproject.toml | | pyproject.toml | better prompts | Mar 16, 2025 |
| setup.py | | setup.py | better prompts | Mar 16, 2025 |
| uv.lock | | uv.lock | remove duplicate code | Mar 14, 2025 |
| validate.sh | | validate.sh | Initial release v0.1.0 | Mar 14, 2025 |
| View all files | | |
A Model Context Protocol (MCP) server that provides access to Fantasy Premier League (FPL) data and tools. This server allows you to interact with FPL data in Claude for Desktop and other MCP-compatible clients.
Demo of the Fantasy Premier League MCP Server in action
Mobile is currently not supported.
pip install fpl-mcp
pip install "fpl-mcp[dev]"
pip install git+https://github.com/rishijatia/fantasy-pl-mcp.git
git clone https://github.com/rishijatia/fantasy-pl-mcp.git
cd fantasy-pl-mcp
pip install -e .
After installation, you have several options to run the server:
fpl-mcp
python -m fpl_mcp
Configure Claude Desktop to use the installed package by editing your claude_desktop_config.json
file:
Method 1: Using the Python module directly (most reliable)
{
"mcpServers": {
"fantasy-pl": {
"command": "python",
"args": ["-m", "fpl_mcp"]
}
}
}
Method 2: Using the installed command with full path (if installed with pip)
{
"mcpServers": {
"fantasy-pl": {
"command": "/full/path/to/your/venv/bin/fpl-mcp"
}
}
}
Replace /full/path/to/your/venv/bin/fpl-mcp
with the actual path to the executable. You can find this by running which fpl-mcp
in your terminal after activating your virtual environment.
Note: Using just
"command": "fpl-mcp"
may result in aspawn fpl-mcp ENOENT
error since Claude Desktop might not have access to your virtual environment's PATH. Using the full path or the Python module approach helps avoid this issue.
For development and testing:
# If you have mcp[cli] installed
mcp dev -m fpl_mcp
# Or use npx
npx @modelcontextprotocol/inspector python -m fpl_mcp
fpl://static/players
- All player data with comprehensive statisticsfpl://static/players/{name}
- Player data by name searchfpl://static/teams
- All Premier League teamsfpl://static/teams/{name}
- Team data by name searchfpl://gameweeks/current
- Current gameweek datafpl://gameweeks/all
- All gameweeks datafpl://fixtures
- All fixtures for the current seasonfpl://fixtures/gameweek/{gameweek_id}
- Fixtures for a specific gameweekfpl://fixtures/team/{team_name}
- Fixtures for a specific teamfpl://players/{player_name}/fixtures
- Upcoming fixtures for a specific playerfpl://gameweeks/blank
- Information about upcoming blank gameweeksfpl://gameweeks/double
- Information about upcoming double gameweeksget_gameweek_status
- Get precise information about current, previous, and next gameweeksanalyze_player_fixtures
- Analyze upcoming fixtures for a player with difficulty ratingsget_blank_gameweeks
- Get information about upcoming blank gameweeksget_double_gameweeks
- Get information about upcoming double gameweeksanalyze_players
- Filter and analyze FPL players based on multiple criteriaanalyze_fixtures
- Analyze upcoming fixtures for players, teams, or positionscompare_players
- Compare multiple players across various metricsplayer_analysis_prompt
- Create a prompt for analyzing an FPL player in depthtransfer_advice_prompt
- Get advice on player transfers based on budget and positionteam_rating_prompt
- Create a prompt for rating and analyzing an FPL teamdifferential_players_prompt
- Create a prompt for finding differential players with low ownershipchip_strategy_prompt
- Create a prompt for chip strategy adviceTo add new features:
fpl_mcp/fpl/resources/
fpl_mcp/fpl/tools/
__main__.py
file to register new resources and toolsThis occurs because Claude Desktop cannot find the fpl-mcp
executable in its PATH.
Solution: Use one of these approaches:
Use the full path to the executable in your config file
json
{
"mcpServers": {
"fantasy-pl": {
"command": "/full/path/to/your/venv/bin/fpl-mcp"
}
}
}
Use Python to run the module directly (preferred method)
json
{
"mcpServers": {
"fantasy-pl": {
"command": "python",
"args": ["-m", "fpl_mcp"]
}
}
}
If the server starts but immediately disconnects:
~/Library/Logs/Claude/mcp*.log
(macOS) or %APPDATA%\Claude\logs\mcp*.log
(Windows)python -m fpl_mcp
to see any errorsIf the hammer icon doesn't appear:
claude_desktop_config.json
has correct JSON syntaxThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)For more details, please refer to the CONTRIBUTING.md
file.
If you use this package in your research or project, please consider citing it:
@software{fpl_mcp,
author = {Jatia, Rishi and Fantasy PL MCP Contributors},
title = {Fantasy Premier League MCP Server},
url = {https://github.com/rishijatia/fantasy-pl-mcp},
version = {0.1.0},
year = {2025},
}
Fantasy Premier League MCP Server
No packages published
You can’t perform that action at this time.