pip install fpl-mcp
pip install "fpl-mcp[dev]" # Installs development dependencies
After installation, you can run the FPL MCP server directly from your command line:
# Run with default settings
fpl-mcp
# Run with specific port
fpl-mcp --port 8080
# Enable debug mode
fpl-mcp --debug
You can also use Fantasy PL MCP programmatically in your Python code:
from fpl_mcp import FplMcp
# Create a new server instance
server = FplMcp()
# Start the server
server.start()
# Access FPL data directly
players = server.get_all_players()
teams = server.get_all_teams()
# Stop the server
server.stop()
To use with Claude Desktop:
- Install the package
- Edit your Claude Desktop configuration file (claude_desktop_config.json)
{
"mcpServers": {
"fantasy-pl": {
"command": "python",
"args": ["-m", "fpl_mcp"]
}
}
}
Detailed API documentation is available at the project GitHub page.
This project is licensed under the MIT License.