Skip to main content
Glama
World Cup History MCP

World Cup History MCP

by zafronix

世界杯历史 MCP

作者:Zafronix · npm: @zafronix/wc-mcp · MIT 协议

wc-mcp MCP server

这是一个模型上下文协议 (MCP) 服务器,为 Claude / Cursor / 任何支持 MCP 的智能体提供自 1930 年以来每一届 FIFA 世界杯的权威数据。涵盖 23 届赛事、1,168+ 场比赛、2,500+ 名球员、206 座体育场。 所有数据通过 15 个类型化的工具公开,让模型不再对参赛阵容、比分、对阵图和体育场海拔等信息产生幻觉。

由公开的 Zafronix 世界杯 API 提供支持——提供免费层级(需 API Key),每日 1,000 次请求,无需绑定银行卡。

为什么使用它

大语言模型在以下方面表现不可靠:

  • 训练数据窗口之前的确切赛事结果。

  • 球员名单详情(球衣号码、出生日期、队长)。

  • 淘汰赛路径和确切比分。

  • 体育场事实(容量、海拔、启用年份)。

此 MCP 封装了 Zafronix WC API,以便模型可以调用工具获取权威答案,而不是进行猜测。

Related MCP server: FIFA World Cup 2026 MCP Server

安装

npm install -g @zafronix/wc-mcp

或者从源码运行:

git clone https://github.com/zafronix/wc-mcp
cd wc-mcp
npm install
npm run build

获取免费 API Key

https://api.zafronix.com/signup

免费层级每日 1,000 次请求,无需绑定银行卡。

配置 (Claude Desktop)

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "wc": {
      "command": "npx",
      "args": ["-y", "@zafronix/wc-mcp"],
      "env": {
        "WC_API_KEY": "zwc_pk_your_key_here"
      }
    }
  }
}

重启 Claude Desktop。你会在输入栏看到一个 🔌 图标——点击它以确认 wc 已连接。

配置 (Cursor)

设置 → MCP → 添加新服务器:

{
  "mcpServers": {
    "wc": {
      "command": "npx",
      "args": ["-y", "@zafronix/wc-mcp"],
      "env": { "WC_API_KEY": "zwc_pk_..." }
    }
  }
}

工具

工具

功能

list_tournaments

1930→2026 年每一届世界杯(年份、主办国、冠军)。

get_tournament

完整赛事:球队、对阵图、奖项、参赛阵容。

compare_tournaments

2-6 年份的赛事数据对比。

search_players

历史球员姓名搜索。

get_player_career

球员参加过的每一届世界杯。

list_teams

每一支参赛过的国家队,可选足联筛选。

get_team

国家队跨届赛事总结。

get_team_roster

某一年某支球队的完整阵容。

list_stadiums

每一座世界杯场馆及其海拔和坐标。

get_stadium

通过 slug 获取单个场馆信息。

list_matches

按年份 / 阶段 / 日期筛选。

get_match

单场比赛详情,包括比分、上座率和裁判。

get_trivia

每年精选的事实冷知识。

get_standings

计算包含 FIFA 决胜规则的小组积分榜。

get_bracket

完整的淘汰赛对阵图。

示例提示词 (在启用此 MCP 的 Claude Desktop 中)

  • “比较贝利和梅西在世界杯上的表现。”

  • “历史上海拔最高的世界杯体育场是哪座?那里的进球总数与海平面场馆相比如何?”

  • “展示意大利 2006 年的参赛阵容,包括位置和俱乐部。”

  • “追踪阿根廷 2022 年的夺冠之路——每一场比赛,每一个比分。”

  • “列出每一支进入过世界杯四分之一决赛的非洲国家队。”

开发

npm run dev          # tsx watch mode
WC_API_KEY=... npm start

该服务器使用 stdio 通信。你可以使用 MCP CLI 进行测试:

npx @modelcontextprotocol/inspector npx tsx src/index.ts

许可

MIT。

Available Tools

15 tools
compare_tournamentsA

Side-by-side comparison of 2-6 World Cup tournaments. Returns total goals, goals per match, attendance, top scorer, best player, champion, runner-up, third place for each year. Use this when the user asks "compare 1986 vs 2022" or "what changed between 1990 and 2014". For a single year use get_tournament.

Inputs: years (required).

get_bracketA

Full knockout bracket for a tournament — Round of 16 through Final, with each match's teams + result. Use this for "show me the 2014 World Cup bracket" or "trace France's 2018 path to the title".

Inputs: year (required).

get_matchA

Single match by ID. IDs follow {year}-{ordinal} zero-padded — the 1986 final is "1986-052", the 2022 final is "2022-064", the 2026 opener is "2026-001". Returns kickoff, both teams, score, extra time, penalties, stadium, city, attendance, referee, and (with denormalize=true) the full stadium block.

Inputs: id (required), denormalize.

get_player_careerA

Get a player's full World Cup career: every tournament they appeared in, with team/position/jersey/goals/captain status per year. Use this when the user wants a "all of Pelé's World Cup matches" or "compare Messi's 4 World Cups" view. The name should be the canonical name (use search_players first if unsure).

Inputs: name (required).

get_stadiumA

Single venue details by stable slug ID. Slugs are kebab-case ("estadio-azteca", "maracana", "wembley-stadium-old", "metlife-stadium"). Use list_stadiums first if you need to discover the right ID.

Inputs: id (required).

get_standingsA

Computed group standings with FIFA tiebreakers applied. Returns the order teams finished within each group of the given year, including W/D/L, GF, GA, GD, points. Use this for "show me the 1990 Group F table" or "who finished where in 2022 Group H?".

Inputs: year (required), group.

get_teamA

Cross-tournament summary for a national team: every appearance, final position by year, total titles, knockout records. Use this for "Brazil's World Cup history" or "how many times has Argentina reached the final?". For a specific year's squad use get_team_roster.

Inputs: name (required).

get_team_rosterA

Full squad for one team in one tournament — every player with jersey, position, DOB, club, goals, captain flag. Use this for "who was on Spain's 2010 squad?" or "show me Italy's 2006 roster".

Inputs: name (required), year (required).

get_tournamentA

Get full details for a single World Cup tournament: every team that played, group stages, knockout brackets, awards (top scorer, best player, best young player, best GK), full squads with DOB/position/club, attendance, and trivia notes. Use this when the user asks about a specific year ("1986 World Cup", "what happened at Italia 90"). For comparisons across multiple tournaments use compare_tournaments instead.

Inputs: year (required).

get_triviaA

Curated factual nuggets about a tournament — record-setting moments, oddities, historical context. Each entry is a single fact with category. Use this when the user wants "interesting facts about 1958" or "tell me something I don't know about Italia 90". Far less hallucination-prone than free-recall about old tournaments.

Inputs: year.

list_matchesA

List World Cup matches. Filterable by year and/or stage (group_a..group_h, round_of_16, quarter_final, semi_final, third_place, final). Returns kickoff time, home/away team, score, stadium, attendance. Use this for "show me all the 1990 group matches" or "list every World Cup final". Pair with get_match for a specific match's full details.

Inputs: year, stage, date.

list_stadiumsA

List World Cup venues. 206 stadiums total across history, with capacity, lat/long, elevation in meters, opening year, and the list of WC years each one hosted. Useful for "which stadiums hosted the most World Cup matches?" or "where was the 1986 final?". Filterable by country.

Inputs: country.

list_teamsA

List every national team that has ever played a World Cup, with confederation, first/last appearance year, and total appearances. Useful for "which African nations have made the World Cup?" or "list every CONMEBOL team". Pair with get_team for a specific country.

Inputs: confederation.

list_tournamentsA

List every FIFA World Cup tournament (1930 → 2026) with year, host country list, champion (or null for the upcoming 2026 cup). Useful as a starting point when the user is exploring history or needs to disambiguate a year.

Inputs: no named parameters.

search_playersA

Search players by name. Returns every World Cup squad row matching the query, with team, position, DOB, club, and tournament-year goals. Use this when the user mentions a player by name. For a player's full multi-tournament career path use get_player_career.

Inputs: q (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool has a clear, non-overlapping purpose. For example, compare_tournaments is for multi-year comparisons while get_tournament handles single years; get_team vs get_team_roster separate summary from roster; search_players vs get_player_career distinguish lookup from career view.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., list_tournaments, get_match, compare_tournaments) using snake_case. There are no mixed conventions or ambiguous names.

    Tool Count5/5

    With 15 tools, the server is well-scoped for its domain—covering tournaments, teams, players, matches, stadiums, standings, brackets, and trivia without being bloated. The number feels natural for a comprehensive World Cup history API.

    Completeness5/5

    The tool set covers the major CRUD-like operations for the domain: listing and getting tournaments, teams, players, matches, stadiums, comparisons, trivia, brackets, and standings. There are no obvious gaps for typical World Cup queries.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server for FIFA World Cup 2026 data: matches, teams, venues, city guides, fan zones, visa info, injuries, odds, standings, bracket, and historical matchups. 18 tools, zero external API dependencies.
      18
      163 npm
      33
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for retrieving World Cup match briefs, fixtures, and event explanations with sourced, plain-language context.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for FIFA World Cup 2026 data including fixtures, live scores, odds, and knockout bracket, plus a tool (wc_edge) that autonomously pays for premium data via Injective's x402 protocol.
      8
      5 npm
      MIT