FPL MCP Server
Provides tools for accessing Fantasy Premier League data, including searching players and teams, retrieving player statistics, current gameweek status, fixtures, player comparisons, team information, and manager team selections.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FPL MCP Server compare Mohamed Salah and Cole Palmer's stats so far this season"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FPL MCP Server
A Model Context Protocol (MCP) server that provides access to Fantasy Premier League data through seven comprehensive tools.
Features
Search Players: Find player IDs by searching player names (fuzzy matching)
Search Teams: Find team IDs by searching team names (fuzzy matching)
Current Gameweek Status: Get current gameweek number, deadline, and completion status
Player Statistics: Retrieve comprehensive stats for any FPL player
Gameweek Fixtures: Get all fixtures for a specific gameweek
Player Comparison: Compare statistics between multiple players
Team Information: Get team details and current squad information
Manager Team: View a manager's team selection for any gameweek, including starting XI, bench, captain, and formation
Related MCP server: FPL MCP Server
Installation
Install dependencies:
npm installBuild the project:
npm run buildUsage
As MCP Server
The server is designed to be used with MCP clients. Configure your MCP client to use this server:
{
"mcpServers": {
"fpl-mcp-server": {
"command": "node",
"args": ["path/to/dist/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}Development
Run in development mode:
npm run devTesting with MCP Inspector
The MCP Inspector provides an interactive interface for testing and debugging your server during development.
Create an
mcp.config.jsonfile in the project root:
{
"mcpServers": {
"fpl-mcp-server": {
"command": "node",
"args": ["dist/index.js"]
}
}
}Build your server:
npm run buildRun the inspector:
npx @modelcontextprotocol/inspector --config ./mcp.config.json --server fpl-mcp-serverOpen the provided URL in your browser to test all available tools interactively
Logging
The server uses Winston for structured logging to stderr (to avoid interfering with MCP's stdio transport). Configure logging with environment variables:
# Set log level (debug, info, warn, error)
LOG_LEVEL=debug npm start
# Set environment mode (affects log formatting)
NODE_ENV=development npm startIn development mode, logs are colorized for better readability. All logs are written to stderr, ensuring the MCP protocol communication on stdout remains unaffected.
Available Tools
search_players: Search for players by name. Requires
query(string)Returns up to 10 matching players with their IDs, teams, positions, and costs
Use this FIRST before calling get_player_stats or compare_players
search_teams: Search for teams by name. Requires
query(string)Returns matching teams with their IDs and short names
Use this FIRST before calling get_team_info
get_current_gameweek: No parameters required
get_player_stats: Requires
playerId(1-1000)Use search_players first to find the player ID
get_gameweek_fixtures: Requires
gameweek(1-38)compare_players: Requires
playerIdsarray (2-10 players)Use search_players first to find player IDs
get_team_info: Requires
teamId(1-20)Use search_teams first to find the team ID
get_manager_team: Requires
managerId(1-10000000), optionalgameweek(1-38)Returns manager's team selection including starting XI, bench, captain, formation, and points
If gameweek is not specified, returns the current gameweek team
Error Handling
The server includes comprehensive error handling for:
Input validation errors
FPL API failures
Network connectivity issues
Invalid player/team/gameweek IDs
All errors are returned in a consistent format with error codes and detailed messages.
Contributing
Contributions are welcome! Please read our Contributing Guidelines and Code of Conduct before submitting PRs.
This project uses automated releases via Release Please. When you merge commits to main following Conventional Commits, a release PR is automatically created or updated. Merging that PR triggers a new GitHub release with automatically generated release notes.
Changelog
See CHANGELOG.md for release history.
License
MIT - see LICENSE file for details.
Available Tools
8 toolscompare_playersA
Compare statistics between multiple players. Use search_players first to find player IDs.
Inputs: playerIds (required).
get_current_gameweekA
Get the current gameweek status including number, deadline, and completion status
Inputs: no named parameters.
get_gameweek_fixturesC
Get all fixtures for a specific gameweek
Inputs: gameweek (required).
get_manager_teamB
Get a manager's team selection for a specific gameweek, including starting XI, bench, captain, formation, and points. If gameweek is not specified, returns the current gameweek team.
Inputs: managerId (required), gameweek.
get_player_statsA
Get comprehensive statistics for a specific player by ID. Use search_players first to find the player ID.
Inputs: playerId (required).
get_team_infoA
Get team information including current squad. Use search_teams first to find the team ID.
Inputs: teamId (required).
search_playersA
Search for players by name to find their IDs. Use this FIRST before calling get_player_stats or compare_players.
Inputs: query (required).
search_teamsA
Search for teams by name to find their IDs. Use this FIRST before calling get_team_info.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Your Fantasy Premier League team in your AI: analyses, injuries, prices, fixtures and player cards.
FPL data, points predictions, and transfer, captain and chip advice for any team.
Fantasy Premier League (FPL) assistant: one clear call on captain, transfers and chips.
Fantasy Premier League tools: rate a team, captains, player points, fixtures, injuries. No login.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with Fantasy Premier League data through natural language queries. Supports retrieving fixtures, league standings, player performance, and other FPL statistics via the official FPL API.1613 npm3MIT
- AlicenseNot gradedqualityDmaintenanceConnects LLMs to the Fantasy Premier League API for intelligent team management, enabling natural language player research, competitor analysis, transfer decisions, and strategic planning using friendly names instead of IDs.3MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to analyze Fantasy Premier League data, providing tools for player search, fixture analysis, manager comparisons, and strategy prompts for transfer planning and lineup selection.1927 PyPI1MIT
- FlicenseNot gradedqualityCmaintenanceEnables Fantasy Premier League squad management with custom tools for player search, fixture outlook, tier classification, hit math, and chip timing, all using public FPL data without requiring login credentials.1-