Skip to main content
Glama
manuelcralves

liga-record-mcp

Liga Record MCP

An MCP server that exposes my Liga Record fantasy football squad to Claude — the rules as tools, the regulation as a resource, and two prompts for the decisions I actually make each round.

The split it's built on: deterministic rules live in code, judgement stays with Claude. Formation legality, budget arithmetic and the §11 automatic substitutions are computed here and are authoritative. Who to start and who to sell is Claude's to reason about, given real data and the real rulebook.

See docs/PLANNING.md for the design and the rule ambiguities this reading of the regulation leaves open.

Setup

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .

The editable install is not optional — it puts liga_record_mcp on the path (the project uses a src/ layout) and creates the liga-record-mcp launcher the MCP config points at.

Your squad lives in data/squad.yaml. Copy data/squad.example.yaml and fill in your 23 players — the loader checks the file against the regulation on every read and names whatever is missing, so you don't have to count by hand. Point LIGA_RECORD_SQUAD at a different file to run a second team.

Related MCP server: wcprediction-mcp

Connecting it to Claude

.mcp.json in the repo root already declares the server, so Claude Code picks it up when you open this project — no CLI needed. Restart Claude Code after the install and approve the server when prompted.

The path in .mcp.json is absolute and machine-specific. Windows resolves a relative command against the launching process's directory, not the server's, so a relative path fails when the app starts it. Edit that path if you move or clone the repo.

Claude Desktop uses the same shape in claude_desktop_config.json:

{
  "mcpServers": {
    "liga-record": {
      "command": "C:\\path\\to\\liga-record-mcp\\.venv\\Scripts\\liga-record-mcp.exe"
    }
  }
}

Then ask it something: "Is my current XI legal, and who comes on if Diogo Costa doesn't play?"

What it exposes

Toolsget_squad, get_player, search_squad, validate_selection, simulate_autosubs, check_transfer, project_price, plus two that read the live site: search_market (the whole player pool, with ownership percentages for finding differentials) and check_market_transfer (prices a swap from the real quote rather than a hand-typed one). Every read carries an as_of timestamp so Claude can say how fresh the data is instead of presenting a stored squad as live.

The live client is read-only by design. The site also exposes buy, sell and renegotiate endpoints — their contracts are known — and they are deliberately not implemented. Confirming a transfer stays a human's click on Record's site.

Resourcesligarecord://regulamento (generated from the same constants the rules enforce, so it can't drift from the code) and ligarecord://squad.

Promptspick_starting_xi, plan_transfers.

Tests

./.venv/Scripts/python.exe -m pytest -q

rules.py is pure — no I/O, no network, no clock — so the whole rulebook is tested without touching the site.

Status

Steps 1–3 are done: the rules engine, the data-source seam with a hand-maintained YAML squad, and the MCP server.

Step 4 is half done, and the half that matters most is the half that shipped. playersearch.ashx returns clean JSON for the entire 498-player market and needs no authentication — verified with a request carrying no cookie — so the session-token problem the plan treated as step 4's main risk simply does not arise for market data.

Reading a specific team's squad does still need a login, so data/squad.yaml remains hand-maintained. That is the remaining piece.

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

  • A
    license
    B
    quality
    A
    maintenance
    A Model Context Protocol server that provides access to Fantasy Premier League data, allowing users to compare players, find team information, view gameweek data, and get FPL-related advice through Claude for Desktop and other MCP-compatible clients.
    23
    74
    MIT
  • F
    license
    -
    quality
    B
    maintenance
    MCP server for a World Cup 2026 prediction game assistant, providing tools for live game data via PostgreSQL and semantic search over football articles via RAG.
  • F
    license
    -
    quality
    D
    maintenance
    MCP server for the Fantasy Premier League API, enabling querying of players, teams, fixtures, and your FPL team through any MCP-compatible client.
  • A
    license
    -
    quality
    B
    maintenance
    Enables Claude to interact with Sleeper fantasy football leagues via MCP tools for roster, waiver, matchup, and transaction queries, plus a dashboard for daily reports, live scoring, and game-day alerts.
    27
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.

  • MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence

  • Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.

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/manuelcralves/liga-record-mcp'

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