Model Context Protocol
与网站相同的 AI 足球预测,通过 Model Context Protocol 提供:说出一场比赛,服务器返回胜平负概率、信心档、大小球 2.5 与双方进球——每次调用都在公开准确率看板结算。
一个基于 streamable HTTP 的极简 MCP 服务器:JSON-RPC 2.0(initialize、tools/list、tools/call),无会话状态,无 SSE。鉴权为 Bearer Token——Footalytics API Key(fxk_…)或 OAuth 访问令牌(fxt_…),与 REST API 同一账户体系。成功的预测调用计 1 积分,与 REST 端点一致。
| 工具 | 作用 |
|---|---|
get_match_prediction | AI football prediction: combines the algorithm with live data, analyses the match in depth, and predicts the score. Returns win/draw/loss probabilities, confidence, Over/Under 2.5 and Both-Teams-To-Score. Keep those numbers in the answer. Team names must be English (Arsenal, not 阿森纳). Uses 1 credit per successful call. Identify the match with fixture=<id> OR home+away (date optional, UTC). |
get_account_credits | Remaining Footalytics credits on the connected account. Call this before a prediction when the user asks about their quota, or when a prediction call failed with insufficient_credits. |
list_fixtures | Upcoming football fixtures with fixture ids and a has_prediction flag (1 credit per successful call). Use it to discover matches, then call get_match_prediction with the fixture id or English team names. |
get_team | Team profile from the Footalytics ratings table: current rating, games tracked and league (1 credit per successful call). |
list_results | Settled official predictions with the real score and the grade — hit/miss per market and Brier score; the public accuracy record (1 credit per successful call). |
把任意 MCP 客户端指向下面的 streamable-HTTP 端点,并用你的 API Key 鉴权:
{
"mcpServers": {
"footalytics": {
"type": "http",
"url": "https://footalytics.farvor.com/mcp",
"headers": { "Authorization": "Bearer fxk_YOUR_API_KEY" }
}
}
}在 API 密钥页获取密钥——新账号赠送 5 次免费调用。OAuth 客户端使用 /.well-known/ 下的标准发现文档。