fifa-public-api-mcp: Instructions file for Claude Code

CLAUDE.md

fifa-public-api-mcp CLAUDE.md is an instructions file for Claude Code from chrispickford/fifa-public-api-mcp. It costs 1,588 tokens per session, scanned A, original, MIT.

Project instructions for a small read-only MCP server that connects an AI agent to FIFA’s public data API. The API provides football competitions, fixtures, results, live matches, and reference data.

In plain words
What is it for?
Use it when building, testing, or smoke-testing the FIFA server, or when querying football data through its tools.
Why use it?
It gives the project’s commands, architecture, tests, and API context in one place, so contributors do not have to rediscover how the server works.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is chrispickford/fifa-public-api-mcp's own configuration. It tells Claude Code how to work on fifa-public-api-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fifa-public-api-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chrispickford/fifa-public-api-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chrispickford/fifa-public-api-mcp/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/chrispickford/fifa-public-api-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fifa-public-api-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chrispickford/fifa-public-api-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/chrispickford/fifa-public-api-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/chrispickford/fifa-public-api-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/chrispickford/fifa-public-api-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fifa-public-api-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chrispickford/fifa-public-api-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/chrispickford/fifa-public-api-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,588 This file is loaded in full into every session.
When invoked 1,588 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01588 $0.01588
Opus 5.5 $0.00635 $0.00635
Sonnet 5.5 $0.00318 $0.00318
Haiku 4.5 $0.00159 $0.00159

Measured 2mo ago against content hash db710ee7401b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fifa-public-api-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project status

Implemented and verified: all four src/ layers, 33 passing unit tests, and a live smoke test that hits all 12 tools. The notes below summarize the cross-file decisions so you don't have to re-derive them.

What this is

A thin stdio MCP server (built on @modelcontextprotocol/sdk + zod) that wraps the public, undocumented FIFA data API (https://api.fifa.com/api/v3) as a small set of read-only tools, so any Claude session can query competitions, fixtures, results, live matches, and reference data without rediscovering the endpoints.

Commands

  • npm run build — compile TS to build/index.js (adds shebang + exec bit; bin entry).
  • npm start — run the built server over stdio.
  • npm test — vitest unit tests over the normalizers (no network; CI-safe).
  • npm run smoke — scripts/smoke.ts, a manual live end-to-end hit of every tool against the real API. Self-bootstrapping: starts from WC2026 IDs (idCompetition=17, idSeason=285023) and derives stage/match/team/stadium IDs from live responses. Not in CI; depends on FIFA uptime.
  • Run a single test: npx vitest run test/shape.test.ts -t "<test name>".
  • Install into a client: claude mcp add fifa -- node /abs/path/build/index.js.

Runtime is Node 22+ (relies on built-in fetch). Package is type: module.

Architecture (the big picture)

Three layers, each in its own file, kept deliberately separate:

  • src/client.ts — the only place that talks to the network. fifaFetch(path, params, lang) encodes every base-API convention once (see below), enforces a 15s AbortController timeout, and throws a structured FifaApiError({reason, path, status?, bodyExcerpt?}). Also exports expectObject(payload, path), a pure guard that turns FIFA's 200 null (served for a missing single resource instead of a 404) into a FifaApiError({reason:"unexpected-null"}). No tool talks to fetch directly.
  • src/shape.ts — pure normalizers (pickName, resolvePicture, matchStatus, trimMatches, trimTeam, ...). No I/O. This is where the real logic lives and where the unit tests point; keep it free of network/SDK imports so it stays testable against fixtures.
  • src/tools.ts — the 12 tool definitions (name, description, zod input schema) + handlers that wire client → shape. List/search tools use fifaFetch; single-object and match-scoped tools use the local fetchObject helper (fifaFetch + expectObject). Handlers let FifaApiError propagate; index.ts converts it to an MCP tool error (isError: true) so the calling model sees failures instead of silent empties.
  • src/index.ts — bootstrap only: create server, register tools, connect StdioServerTransport. Logs only to stderr (stdout is the JSON-RPC stream).

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 102 lines · 1,588 tokens per session scan A db710ee7401b

Subscribe to this mod's changes

fifa-public-api-mcp CLAUDE.md is an instructions file published in the GitHub repository chrispickford/fifa-public-api-mcp (0 stars, last pushed 3mo ago), licensed MIT. It adds 1,588 tokens to every session, about $0.0064 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

fifa-public-api-mcp CLAUDE.md compared with instructions from other repositories

fifa-public-api-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fifa-public-api-mcp CLAUDE.mdchrispickford/fifa-public-api-mcpInstructions file03mo agoMITA1,588Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode