MatchBrief
MCP server for retrieving World Cup match briefs, fixtures, and event explanations with sourced, plain-language context.
README
MatchBrief
MatchBrief turns World Cup fixture and event feeds into sourced, plain-language context for fans and AI agents. It ships as:

- a public REST demo;
- a stateless MCP Streamable HTTP server;
- an Injective EVM USDC x402 route;
- an OKX / X Layer x402 route suitable for an A2MCP listing; and
- a portable Agent Skill with strict provenance and non-financial guardrails.
The bundled replay is intentionally synthetic and visibly labelled. Add official TxLINE credentials to switch the service to its live/historical World Cup adapter.
Why it exists
Live sports feeds are optimized for machines, not ordinary fans. Raw actions, clocks, confirmation flags, and nested score objects need interpretation before an assistant can safely explain what changed. MatchBrief normalizes those updates, keeps the source and freshness attached, and never converts sports context into betting or investment advice.
Quick start
cp .env.example .env
npm install
npm run dev
Open http://localhost:4021.
curl http://localhost:4021/health
curl http://localhost:4021/api/fixtures
curl http://localhost:4021/api/brief/demo-2026-001
curl http://localhost:4021/api/free/brief
curl http://localhost:4021/.well-known/agent.json
MCP
The Streamable HTTP endpoint is POST /mcp. It exposes:
list_world_cup_matchesget_match_briefexplain_match_event
The companion Agent Skill is at skills/matchbrief-world-cup/SKILL.md.
For an OKX listing that does not depend on payment credentials, use the free A2MCP-compatible endpoint GET /api/free/brief. A machine-readable service card is published at /.well-known/agent.json, and the OpenAPI document is at /openapi.json.
Injective technology
MatchBrief uses @injectivelabs/x402 to protect GET /api/injective/brief with USDC on Injective EVM. The default example configuration targets testnet (eip155:1439) and its documented USDC contract. Set INJECTIVE_PAY_TO to an EVM-compatible public payout address to enable the route.
The middleware returns an HTTP 402 challenge, verifies the EIP-3009 authorization through the configured facilitator, runs the brief handler, and settles only after a successful response. No private key belongs in the repository.
This project also uses the MCP server and Agent Skills patterns highlighted by Injective's AI developer materials. It does not claim a CCTP integration.
OKX / X Layer technology
MatchBrief uses the official OKX TypeScript payment packages to protect GET /api/okx/brief on X Layer (eip155:196). It is enabled only when all of these are present:
OKX_PAY_TOOKX_API_KEYOKX_SECRET_KEYOKX_PASSPHRASE
The public payout address is safe to configure; API credentials must stay in the deployment secret store. The route is designed for an OKX A2MCP service listing with fixed per-call pricing.
TxLINE World Cup data
Live/historical mode uses the documented endpoints:
GET /api/fixtures/snapshotGET /api/scores/historical/{fixtureId}
Set TXLINE_GUEST_JWT and TXLINE_API_TOKEN after completing TxLINE's free-tier activation flow. Keep both values secret. Until then, MatchBrief stays in deterministic demo mode and never passes synthetic events off as real.
Environment and wallet safety
- Never commit
.env. - Never paste a seed phrase, private key, one-time code, or wallet recovery material into a form, issue, chat, or AI prompt.
- Use testnet for demonstrations unless you deliberately choose a real-money route.
- Review every wallet signature and network before approving it.
- MatchBrief provides match information only, not betting, trading, or investment advice.
Tests
npm run typecheck
npm test
npm run build
Hackathon mapping
Injective Global Cup
- Functional World Cup tool: REST UI + MCP server.
- Meaningful Injective integration: x402 USDC route on Injective EVM.
- Additional new technology: MCP server and Agent Skill.
- Required deliverables still needed: public deployment, public GitHub repo, demo video, and disclosed X post.
OKX.AI Genesis Hackathon
- ASP type: A2MCP.
- Category fit: Software Utility or Lifestyle Companion.
- Service: fixed-price, machine-callable match context.
- Approval-first path: list the working free endpoint, then enable the paid X Layer route after credentials are configured.
- Required deliverables still needed: OKX Agentic Wallet login, ASP registration/listing and approval, public deployment, sub-90-second X demo, and hackathon form.
These are contests, not guaranteed work. Prize decisions and payout timing are controlled by their organizers.
See SUBMISSIONS.md for the account-side checklist, disclosure language, and distinct contest posts.
Primary documentation
- Injective x402: https://docs.injective.network/developers-ai/x402
- Injective AI developers: https://docs.injective.network/developers-ai
- MCP TypeScript SDK: https://ts.sdk.modelcontextprotocol.io/server
- OKX A2MCP guide: https://www.okx.ai/tutorial/asp
- OKX seller SDK: https://web3.okx.com/onchainos/dev-docs/payments/service-seller-sdk
- TxLINE World Cup free tier: https://txline.txodds.com/documentation/worldcup
- TxLINE fixtures API: https://txline.txodds.com/api-reference/fixtures/get-the-latest-snapshot-of-fixtures-optionally-starting-at-or-within-30-days-after-a-given-epoch-day
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.