Skip to main content
Glama
pab1it0

Chess.com MCP Server

get_player_current_games

Retrieve a Chess.com player's active games to monitor ongoing matches, track progress, or analyze current gameplay status.

Instructions

Get a player's ongoing games on Chess.com

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes

Implementation Reference

  • Handler function decorated with @mcp.tool that implements the get_player_current_games tool by calling the Chess.com API endpoint for the player's current games.
    @mcp.tool(description="Get a player's ongoing games on Chess.com") async def get_player_current_games(username: str) -> Dict[str, Any]: """ Get a list of a player's current games on Chess.com. Args: username: The Chess.com username Returns: Current games data """ logger.info("Fetching player current games", username=username) return await make_api_request(f"player/{username}/games")
  • The @mcp.tool decorator registers the function as an MCP tool with the name 'get_player_current_games'.
    @mcp.tool(description="Get a player's ongoing games on Chess.com")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pab1it0/chess-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server