Back to Guides

How to Connect Sorare to ChatGPT

Connect the Sorare GraphQL API to ChatGPT via MCP. Query player cards, market prices, and team data using natural language through ChatGPT.

Use ChatGPT to Analyze Your Sorare Data

Sorare is a fantasy sports platform with a powerful GraphQL API. By connecting Sorare to ChatGPT through AnythingMCP, you can ask questions about player cards, market prices, auction data, and team compositions using natural language.

What You Need

  • A Sorare account with API access
  • Docker installed on your machine
  • ChatGPT with MCP support

Step-by-Step Guide

Step 1: Deploy AnythingMCP

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

Step 2: Create a GraphQL Connector for Sorare

Open the AnythingMCP dashboard at http://localhost:3000 and create a new GraphQL connector. Set the endpoint to:

https://api.sorare.com/federation/graphql

Import the Sorare GraphQL schema or define the queries you want to expose.

Step 3: Configure Authentication

In the connector settings, add your Sorare API token as a Bearer token header. If you're using OAuth, configure the OAuth 2.0 flow with your Sorare credentials.

Step 4: Define Key Queries as MCP Tools

Set up MCP tools for the Sorare queries you use most:

  • Search players — Find player cards by name, team, or position
  • Get market prices — Check current and historical card prices
  • List auctions — View active auctions and recent sales
  • My collection — Query your own card collection
  • Team scores — Get recent game scores and player performance

Step 5: Connect ChatGPT

{
  "mcpServers": {
    "sorare": {
      "url": "http://localhost:4000/mcp"
    }
  }
}

Step 6: Start Asking Questions

Now you can ask ChatGPT things like:

  • "What's the current market price for Mbappé rare cards?"
  • "Show me all my limited cards sorted by score"
  • "Find undervalued defenders with high SO5 scores this week"
  • "What were the last 10 auction prices for Vinicius Junior?"
  • "Which players on my team scored the highest last gameweek?"

Tips for Sorare + AI

  1. Focus on read operations — The Sorare API is mostly read-only anyway
  2. Cache expensive queries — Use AnythingMCP's built-in caching for frequently used data
  3. Combine with other data — Connect multiple MCP servers to cross-reference Sorare with other football data APIs

Next Steps