Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 1.27 KB

PYPI.md

File metadata and controls

79 lines (53 loc) · 1.27 KB

Fantasy Premier League MCP

Installation

Installing from PyPI

pip install fpl-mcp

Installing with extras

pip install "fpl-mcp[dev]"  # Installs development dependencies

Usage

Using the Command Line Interface

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

Python API

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()

Claude Desktop Integration

To use with Claude Desktop:

  1. Install the package
  2. Edit your Claude Desktop configuration file (claude_desktop_config.json)
{
  "mcpServers": {
    "fantasy-pl": {
      "command": "python",
      "args": ["-m", "fpl_mcp"]
    }
  }
}

API Documentation

Detailed API documentation is available at the project GitHub page.

License

This project is licensed under the MIT License.