Skip to main content
Glama
MoRocety

fotmob-mcp

by MoRocety

fotmob-mcp

Exploring FotMob football data. Two things live here:

  1. An MCP (Model Context Protocol) server for querying FotMob from any MCP-compatible LLM client.

  2. A Premier League stats dashboard: a pipeline that pulls full-squad player stats into SQLite, plus a web UI for sorting players by any stat and viewing FBref-style percentile breakdowns.

Both talk to FotMob's public web API endpoints (undocumented, used by fotmob.com itself), so behavior may change if FotMob changes their API.

Stats dashboard

Pulls every Premier League squad (~580 players) with meta data (age, position, foot, nationality, height, market value) and ~37 season-long stat categories (goals, xG, xA, tackles, defensive actions, goalkeeping stats, etc.) into a local SQLite database, then serves a dashboard to sort, filter, and compare players — including percentile bars against same-position peers, similar to old FBref scouting reports.

npm install
npm run pipeline      # fetch everything into data/fotmob.db (~5-10 min; foot/value lookups are the slow part)
npm run pipeline:fast # same, but skips the slow per-player foot/market-value enrichment
npm run web           # serve the dashboard at http://localhost:3000

Re-run npm run pipeline periodically to refresh with the latest stats (it's a full upsert, safe to re-run anytime — e.g. weekly during the season). The SQLite file lives at data/fotmob.db and is gitignored; each environment builds its own.

Dashboard structure

  • pipeline/ — fetches league squads + stat leaderboards from FotMob, writes to SQLite

  • server/ — Express API (/api/meta, /api/players, /api/players/:id, /api/leaders/:statName) serving the SQLite data

  • public/ — vanilla JS/HTML/CSS frontend: sortable player table, category tabs (Standard/Shooting/Passing/Possession/Defense/Discipline/Goalkeeping), player detail drawer with percentile bars, and a leaders view

No hosting is set up yet — this runs locally. To make it publicly accessible, deploy server/ (it serves both the API and the static frontend) to any Node host with a persistent disk for the SQLite file (e.g. Render, Railway, Fly.io, a VPS), and schedule npm run pipeline to run periodically there.

Related MCP server: football-scraper-mcp

MCP server

Tools

  • get_matches_by_date — all matches across leagues on a given date (YYYYMMDD)

  • get_match_details — lineups, stats, events, and score for a match

  • get_team — squad, fixtures, recent results, and table position for a team

  • get_league — table, top scorers, and fixtures for a league

  • get_player — bio, stats, and recent ratings for a player

  • search — search teams, players, leagues, or matches by name

Setup

npm install
npm run build

Usage

Run directly:

npm start

Or point an MCP client at it, e.g. in Claude Code / Claude Desktop config:

{
  "mcpServers": {
    "fotmob": {
      "command": "node",
      "args": ["/absolute/path/to/fotmob-mcp/dist/index.js"]
    }
  }
}

During development, run without building first:

npm run dev

Finding IDs

FotMob team/league/player/match IDs aren't obvious from names alone — use the search tool first to resolve a name to an ID, then feed that ID into the other tools.

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    C
    maintenance
    Provides live football data through MCP tools, enabling users to fetch today's matches and top scorers for competitions like the Premier League or World Cup.
    2
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides tools to query football match data, odds, standings, and team statistics via natural language, integrating with the football-scraper-api.
  • F
    license
    B
    quality
    B
    maintenance
    Enables access to live FotMob football data for fixture lookup, team and player research, match details, lineups, league discovery, and search-based entity lookup.
    7
    6
  • A
    license
    A
    quality
    C
    maintenance
    Enables MCP clients to access live football data from FotMob, including match stats, team form, injuries, and player workload, without making predictions.
    10
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • API-Football MCP — comprehensive soccer/football data

  • Football-Data.org MCP — soccer competitions, matches, standings

  • OpenLigaDB MCP — community-run, keyless football / soccer match data.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MoRocety/fotmob-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server