Connector guide1-minute read19 MCP toolsEnglish · Deutsch · Italiano

Sorare 到 MCP — 将 NFT 幻想足球引入任何 AI 代理

使用 AnythingMCP 将 Sorare 的 GraphQL API 公开为 MCP 服务器。支持 bcrypt 加盐登录、30 天 JWT 缓存,以及 18 个现成工具(5 个 GraphQL 内置 + 13 个专用)用于卡片、球员、阵容和转会市场。

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

any mcp client · Sorare connector
Pull my current Sorare lineup and tell me where I'm weakest this gameweek.
AI
Callingsorare_get_lineupplayer_recent_scores
Your Common Rivals lineup is solid up top, but the MF slot (Saúl) is your weakness — recent 5-game L5 = 34.2, well under your team average of 51.
sorare_current_usersorare_list_my_cardssorare_player_floor_pricesorare_live_sale_offerssorare_get_auction+ more
  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

What you'll be able to ask

Real prompts that work after a 4-minute setup.

Drop these into any MCP client once the connector is installed. Tools listed below each prompt are auto-called by the agent.

Pull my current Sorare lineup and tell me where I'm weakest this game week.
sorare_get_lineupplayer_recent_scores
List every rare Vinícius Júnior card minted in season 2024.
sorare_search_playerlist_player_cards
What's the floor price right now for limited Bukayo Saka cards?
sorare_player_floor_pricetoken_prices
Find auctions ending in the next 90 minutes for Liverpool players.
sorare_live_sale_offerssorare_get_auction

No install? Use cloud.anythingmcp.com directly.

Sign in, install the Sorare Fantasy Football in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.

Open Cloud

Sorare

💡 无需安装?直接使用 cloud.anythingmcp.com 登录,点击 Connectors → Sorare,粘贴您的 Sorare 邮箱和密码,生成 MCP API 密钥 — 完成。无需 Docker,无需 git clone,无需运行本地服务器。您可以跳过下面的本地安装步骤,直接进入客户端连接部分。

Sorare 在模型上下文协议中的应用

Sorare 是最大的授权 NFT 幻想体育游戏,全面支持球员、卡片、拍卖和 So5 阵容的 GraphQL。AnythingMCP 将该 GraphQL API 封装为 MCP 服务器,使任何代理 — Claude、ChatGPT、OpenClaw、Cursor 以及您自己的代理 — 都可以使用自然语言读取和处理 Sorare 数据。

Sorare 适配器内置提供。无需维护 SDK,无需编写令牌处理代码:引擎在您第一次调用工具时执行盐提取 + bcrypt + 登录握手,缓存结果 JWT 30 天,并在任何 401 上透明地重新发放。

为什么没有 AnythingMCP 的 Sorare 使用起来很麻烦

步骤Sorare 的要求
1GET /api/v1/users/{email} 以检索每个账户的 bcrypt 盐
2bcrypt.hashSync(plainPassword, salt) 客户端处理
3GraphQL signIn 变更,使用 bcrypt 哈希
4存储 JWT(约 30 天有效期),并在每次调用时传递 Authorization: Bearer <jwt> + JWT-AUD: <aud>

这就是整个 LOGIN_TOKEN 身份验证配置,仅在适配器规范中声明一次。无需维护客户端代码。

Watch on YouTube →

🔒 视频通过 两次点击同意模式 嵌入 — 在您按下播放之前,什么都不会发送到 Google。

安装

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

打开 http://localhost:3000/connectors/store,选择 Sorare,并粘贴 SORARE_EMAILSORARE_PASSWORD。JWT 的 aud 声明由适配器设置为固定值(anythingmcp),因此您无需选择一个。

Profile → MCP API Keys 生成一个 MCP API 密钥,并将您的代理指向 http://localhost:4000/mcp

可用工具

工具返回内容
sorare_current_user经过身份验证的用户的 slug、邮箱、昵称
sorare_get_card_by_slug卡片元数据、所有者、当前拍卖
sorare_search_player按名称 + 俱乐部 + 国家搜索球员
sorare_list_player_cards为球员铸造的最近卡片
sorare_list_my_cards经过身份验证的用户拥有的卡片
sorare_get_lineupSo5 阵容得分、排名、奖励、出场次数
sorare_transfer_market按稀有度 / 最大价格过滤的活跃拍卖

令牌生命周期

JWT 存储在 connector_auth_cache 中(AES-256-GCM 加密),在其距离 expiredAt 24 小时内主动刷新,并在首次 401 时替换。您可以使用 DELETE FROM connector_auth_cache WHERE connector_id = '<id>' 撤销它 — 下一次工具调用将重新登录。

下一步

Ready to ship

Your Sorare agent is one click away.

Install the connector, paste the key, prompt any MCP client. Free for 7 days, no credit card.