jk-mcp-epl
Provides live access to Premier League data, including teams, rosters, matches, standings, player registrations, and schedule-strength analytics.
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., "@jk-mcp-epl What are the current Premier League standings?"
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.
jk-mcp-epl
MCP server that gives Claude live access to Premier League data — teams, matches, standings, rosters, richer player data from Pulselive/Opta, and schedule-strength analytics.
Table of Contents
Related MCP server: cartola-mcp
Overview
AI assistants like Claude are knowledgeable, but they have a hard cutoff date — they cannot tell you today's Premier League standings, last night's scores, or which teams are fighting for the title, European places, or against relegation. This project fixes that.
It is an MCP server — a plugin that gives Claude direct access to live Premier League data: scores, standings, rosters, derived schedule-strength analytics, and richer per-player registrations from the Pulselive/Opta feed that powers premierleague.com. Once installed, you can ask Claude natural-language questions about the Premier League and get accurate, up-to-date answers. No subscription, no API key, and no programming required to use it.
This is the v1 scaffold: two data sources — ESPN's public API for the normalized league feed, and footballapi.pulselive.com (used unauthenticated, requires an Origin: https://www.premierleague.com header) for Opta-cross-referenced player data. Cup competitions (FA Cup, Carabao Cup) and per-half / xG stats are on the roadmap.
Features
The v1 surface is twelve read-only, idempotent tools split across three tiers.
ESPN-backed (8)
Tool | Description |
| List all 20 Premier League clubs with IDs and abbreviations |
| Details for a specific team |
| Team's active roster — jersey, position, age, citizenship |
| Match scores for a single day, a date range, or the current matchweek |
| Every match for a team in the current season — past + upcoming |
| One match's full details — score, venue, attendance, goals, cards, subs |
| Current standings — single 20-team table ordered by points |
| Recent Premier League news articles |
Pulselive-backed (1)
Tool | Description |
| Full player registry from the Opta-powered feed — Opta id, shirt number, positional detail (e.g. "Right Winger" vs generic "M"), current-club affiliation, nationality, DoB, loan flag |
Derived analytics (3)
Pure functions over live standings + team schedules, exposing schedule-strength context the raw table does not.
Tool | Description |
| Team's average opponent points-per-game across matches already played |
| Team's W-L-T split across current top / middle / bottom standings tiers |
| Team's raw PPG alongside an opponent-quality-adjusted PPG |
Roadmap
Deferred to v2+:
FA Cup (
eng.fa) and Carabao Cup (eng.league_cup) — ESPN slugs already availableUEFA competitions (Champions League, Europa) — cross-competition tool surface
Per-half and home/away split standings from Pulselive
xG / shots / advanced Opta stats (Pulselive exposes them; needs an LLM-friendly formatter)
Season lookup by year (currently
get_playersdefaults to the most recent completed season)
Requirements
Installation
git clone https://github.com/jedi-knights/jk-mcp-epl.git
cd jk-mcp-epl
uv syncUsage
Run the server in stdio mode (the default — used by Claude Code and Claude Desktop):
uv run python -m epl.serverRun in HTTP mode (for networked or deployed access):
MCP_TRANSPORT=streamable-http uv run python -m epl.serverExample prompts
Standings, scores, rosters:
Who is leading the Premier League right now?
Show me every Premier League result from this past weekend.
Who is on Arsenal's roster?
When does Liverpool play next?
Show me the full Pulselive player registry for Manchester City — who's on loan?
Schedule strength:
Which Premier League team has played the toughest schedule so far?
Show me Arsenal's record against the current top 6 teams.
Compare Manchester City and Liverpool on adjusted points-per-game.
Configuration
All configuration is via environment variables. None are required for local use.
Variable | Default | Description |
|
| Transport mode: |
|
| Bind address (HTTP transport only) |
|
| TCP port (HTTP transport only) |
|
| URL path (HTTP transport only) |
|
| ESPN API base URL |
|
|
|
| unset | Bootstrap the OpenTelemetry SDK |
| unset | Require RS256 bearer tokens on streamable-http |
| unset | Auth-server origin (required when auth is on) |
| unset | This server's public URL for the |
Claude Code
Install from your local clone globally so the server is available in every project:
claude mcp add --scope user epl -- uv run --directory /path/to/jk-mcp-epl python -m epl.serverReplace /path/to/jk-mcp-epl with the absolute path to your clone. Verify with claude mcp list.
Drop --scope user to register only for the current project, or commit a .mcp.json to the repo root for collaborators:
{
"mcpServers": {
"epl": {
"command": "uv",
"args": ["run", "--directory", "/path/to/jk-mcp-epl", "python", "-m", "epl.server"]
}
}
}Claude Desktop
Add the following to your Claude Desktop configuration file.
Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"epl": {
"command": "uv",
"args": [
"run",
"--directory", "/path/to/jk-mcp-epl",
"python", "-m", "epl.server"
]
}
}
}If uv is not on Claude Desktop's PATH, use the absolute path (which uv will show it). Fully quit and relaunch Claude Desktop after saving — a window close is not enough.
Docker
Build the image:
docker build -t jk-mcp-epl:latest .Run in stdio mode (for MCP clients that spawn a subprocess):
docker run -i --rm jk-mcp-epl:latestRun in HTTP mode:
docker run --rm -p 8000:8000 \
-e MCP_TRANSPORT=streamable-http \
jk-mcp-epl:latestDevelopment
Install
uv syncInvoke tasks
All common workflows are invoke tasks. Run uv run inv --list to see everything.
Task | Alias | Description |
|
| Run ruff linter and format check |
|
| Auto-fix lint violations and reformat |
|
| Run the full test suite |
|
| Run tests with coverage report (threshold: 90%) |
|
| Check cyclomatic complexity (max 7) |
|
| Build wheel and sdist into |
|
| Build the Docker image |
|
| Remove build and coverage artifacts |
Project structure
src/epl/
├── server.py # entry point, transport selection, logging setup
├── adapters/
│ ├── inbound/
│ │ ├── mcp_adapter.py # FastMCP server, health endpoints, tool registration
│ │ ├── formatters.py # domain → LLM-readable text
│ │ ├── authorization.py # inbound authz port implementations
│ │ └── tools/
│ │ ├── espn.py # 8 ESPN-backed tools
│ │ └── analytics.py # 3 schedule-strength analytics tools
│ └── outbound/
│ ├── espn_adapter.py # ESPN HTTP client
│ ├── parsers.py # ESPN JSON → domain models
│ ├── retry_adapter.py # transient-failure retry decorator
│ └── caching_adapter.py # in-process TTL cache
├── application/
│ ├── service.py # EPLService — use cases, orchestration
│ ├── _helpers.py # input validation
│ └── _analytics_helpers.py # pure math for schedule-strength tools
├── domain/
│ ├── models.py # Team, Match, Standing, etc.
│ └── exceptions.py # EPLNotFoundError, UpstreamAPIError
├── ports/
│ ├── inbound.py # Authorizer protocol
│ └── outbound.py # EPLAPIPort protocol
├── observability/ # OpenTelemetry bootstrap (opt-in)
└── security/ # JWKS token verifierThe dependency direction flows inward: adapters → ports → domain. Nothing in domain/ imports from adapters or a framework.
Contributing
Fork the repository and clone your fork
Create a feature branch:
git checkout -b feature/your-featureMake your changes following the existing patterns (hexagonal architecture, TDD, conventional commits)
Verify the full check suite passes:
uv run inv lint && uv run inv check-complexity && uv run inv coverageOpen a pull request against
main
All CI checks (lint, complexity, tests, coverage ≥ 90%) must pass before merge.
License
MIT — see LICENSE.
Available Tools
12 toolsget_adjusted_points_per_gameARead-onlyIdempotent
Get a team's raw points-per-game alongside an opponent-quality-adjusted PPG.
Adjusted PPG scales raw PPG by avg_opponent_ppg / league_average_ppg,
so values above raw PPG indicate the team has earned points against a
tougher schedule than league average.
Args: team_id: ESPN numeric team ID.
Inputs: team_id (required). Returns: result
get_match_detailsARead-onlyIdempotent
Get detailed information for a single Premier League match.
Returns the score, venue, attendance, and a chronological list of key events (goals, substitutions, cards). Use the match ID returned by get_scoreboard or get_team_schedule.
Args: match_id: ESPN numeric event ID (e.g. "401853883").
Inputs: match_id (required). Returns: result
get_newsARead-onlyIdempotent
Get recent Premier League news articles.
Returns each article's headline, publication date, summary, and link to the full ESPN story.
Args: limit: Maximum number of articles to return (default 10).
Inputs: limit. Returns: result
get_playersARead-onlyIdempotent
Get Premier League player registrations from the Pulselive/Opta feed.
Richer than ESPN's roster: carries the Opta player id, shirt number, detailed positional label (e.g. "Centre-back" vs "Right-back"), current-club affiliation, nationality, date of birth, and loan flag. Defaults to the most recent completed season — the current season may not have full registrations until the transfer window closes.
Args: season_year: Currently ignored (see roadmap). Reserved for a future per-year season lookup. limit: Maximum number of players to return (default 50, max 500).
Inputs: limit, season_year. Returns: result
get_results_by_opponent_tierARead-onlyIdempotent
Get a team's W-L-T splits against current top-tier, middle, and bottom-tier teams.
Tiers are derived from the live league standings: top tier_size,
bottom tier_size, and everyone in between. Lets you ask "how does
this team do against the top of the table?" without scanning every
result manually.
Args: team_id: ESPN numeric team ID. tier_size: Number of teams in each of the top and bottom tiers. Defaults to 5. Must be at least 1, and 2*tier_size must not exceed the league size.
Inputs: team_id (required), tier_size. Returns: result
get_rosterARead-onlyIdempotent
Get the active roster for an Premier League team.
Returns each player's jersey number, name, position, citizenship, and age. Use the team ID returned by get_teams.
Args: team_id: ESPN numeric team ID (e.g. "18418" for Atlanta United FC).
Inputs: team_id (required). Returns: result
get_scoreboardARead-onlyIdempotent
Get Premier League match scores and status for a date or date range.
With no arguments, returns matches for the current matchweek. With
date only, returns matches for that single day. With both date
and end_date, returns every match in the inclusive range.
Args:
date: Optional start date in YYYYMMDD format (e.g. "20260418").
end_date: Optional end date in YYYYMMDD format. Requires date.
Inputs: date, end_date. Returns: result
get_standingsARead-onlyIdempotent
Get the current Premier League standings.
Returns the eight-team table ordered by points descending, with win/loss/tie record, goals for, goals against, and goal differential.
Inputs: no named parameters. Returns: result
get_strength_of_scheduleARead-onlyIdempotent
Get a team's strength of schedule based on opponents already faced.
Returns the average current points-per-game of every opponent the team has played in completed matches, plus a per-opponent breakdown. Useful early in the season for "who has played the tougher schedule so far?" questions.
Args: team_id: ESPN numeric team ID (e.g. "18418" for Atlanta United FC).
Inputs: team_id (required). Returns: result
get_teamARead-onlyIdempotent
Get details for a specific Premier League team.
Returns full team information including display name, abbreviation, and location. Use the numeric ID returned by get_teams.
Args: team_id: ESPN numeric team ID (e.g. "18418" for Atlanta United FC).
Inputs: team_id (required). Returns: result
get_teamsARead-onlyIdempotent
Get all active Premier League teams.
Returns a numbered list of teams with their ID, full name, abbreviation, and home city. Use the ID or abbreviation with get_team to retrieve detailed information about a specific team.
Inputs: no named parameters. Returns: result
get_team_scheduleARead-onlyIdempotent
Get all matches for a single Premier League team in the current season.
Returns scheduled, in-progress, and completed matches for the team — with opponent, date, score (if played), and status.
Args: team_id: ESPN numeric team ID (e.g. "18418" for Atlanta United FC).
Inputs: team_id (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have clearly distinct purposes, but get_roster and get_players both return player information and get_scoreboard vs get_team_schedule could be confused for team-specific date queries. Descriptions adequately differentiate them, but a few boundaries are close.
All tools follow a consistent get_<noun> pattern in snake_case. Multi-word nouns are used consistently, making the API predictable and easy to navigate.
12 tools is well-scoped for a Premier League data server, covering team, match, player, news, standings, and advanced analytics without redundancy. Each tool earns its place.
The tool set covers core domains well: teams, matches, rosters, players, news, standings, and analytics. Minor gaps exist like individual player stats or detailed match events beyond key events, but these are workable.
Maintenance
Related MCP Connectors
Teamfight Tactics data & AI coaching for Claude and ChatGPT — 19 tools, built-in Riot key.
Read-only Google Ads, GA4 and Search Console data for Claude, with no Google Cloud setup.
Live SEO workflow tools for Claude Code, Codex, and AI agents.
GA4, Google Ads and Search Console in Claude. Read-only OAuth, multi-account for agencies.
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects Claude to the SportRadar MLB API to access real-time baseball data including game schedules, live scores, player statistics, team standings, injury reports, and play-by-play information through natural language queries.191MIT
- FlicenseNot gradedqualityDmaintenanceConnects Claude to Cartola FC, enabling queries about matches, player scores, and market information through natural language.-
- FlicenseNot gradedqualityDmaintenanceEnables natural language querying of football/soccer data via the API-Football service, providing access to leagues, teams, players, fixtures, standings, and statistics.2-
- AlicenseNot gradedqualityBmaintenanceEnables Claude to securely read Sleeper fantasy football league data over the internet via the public API, supporting access from both Claude Desktop and mobile devices.MIT