fotmob-mcp

fotmob-mcp

Enables querying FotMob football data including matches, match details, teams, leagues, players, and search through MCP-compatible LLM clients.

Category
Visit Server

README

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.

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured