get_games

Pack: chess · Endpoint: https://gateway.pipeworx.io/chess/mcp

Retrieve a player’s completed games for a specific month (format: YYYY/MM, e.g., ‘2024/01’). Returns game URLs, time controls, results, and ratings.

Parameters

NameTypeRequiredDescription
usernamestringyesChess.com username
yearnumberyesYear (e.g., 2024)
monthnumberyesMonth as a number (1-12)

Example call

Arguments

{
  "username": "hikaru",
  "year": 2024,
  "month": 1
}

curl

curl -X POST https://gateway.pipeworx.io/chess/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_games","arguments":{"username":"hikaru","year":2024,"month":1}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_games', {
  "username": "hikaru",
  "year": 2024,
  "month": 1
});

More examples

{
  "username": "magnuscarlsen",
  "year": 2024,
  "month": 12
}

Response shape

Always returns: username, year, month, total_games, games

FieldTypeDescription
usernamestringChess.com username
yearnumberYear of games
monthnumberMonth of games (1-12)
total_gamesnumberTotal number of games in month
gamesarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "username": {
      "type": "string",
      "description": "Chess.com username"
    },
    "year": {
      "type": "number",
      "description": "Year of games"
    },
    "month": {
      "type": "number",
      "description": "Month of games (1-12)"
    },
    "total_games": {
      "type": "number",
      "description": "Total number of games in month"
    },
    "games": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "URL to game on Chess.com"
          },
          "uuid": {
            "type": "string",
            "description": "Unique game identifier"
          },
          "time_class": {
            "type": "string",
            "description": "Game time class (e.g., rapid, blitz)"
          },
          "time_control": {
            "type": "string",
            "description": "Time control string (e.g., 15+2)"
          },
          "rated": {
            "type": "boolean",
            "description": "Whether game counted toward rating"
          },
          "end_time": {
            "type": "string",
            "description": "Game end time in ISO 8601 format"
          },
          "white": {
            "type": "object",
            "properties": {
              "username": {
                "type": "string",
                "description": "White player username"
              },
              "rating": {
                "type": "number",
                "description": "White player rating"
              },
              "result": {
                "type": "string",
                "description": "White player result (win/loss/draw)"
              }
            }
          },
          "black": {
            "type": "object",
            "properties": {
              "username": {
                "type": "string",
                "description": "Black player username"
              },
              "rating": {
                "type": "number",
                "description": "Black player rating"
              },
              "result": {
                "type": "string",
                "description": "Black player result (win/loss/draw)"
              }
            }
          }
        }
      }
    }
  },
  "required": [
    "username",
    "year",
    "month",
    "total_games",
    "games"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "chess": {
      "url": "https://gateway.pipeworx.io/chess/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026