Skip to main content
Glama

Chess MCP Server

by bkoseda
chess_api.py939 B
# Chess.com API wrapper for MCP server # This file provides helper functions to interact with the Chess.com public API. import requests CHESS_API_BASE = "https://api.chess.com/pub" def get_player_profile(username): url = f"{CHESS_API_BASE}/player/{username}" response = requests.get(url) response.raise_for_status() return response.json() def get_player_stats(username): url = f"{CHESS_API_BASE}/player/{username}/stats" response = requests.get(url) response.raise_for_status() return response.json() def get_player_is_online(username): url = f"{CHESS_API_BASE}/player/{username}/is-online" response = requests.get(url) response.raise_for_status() return response.json() def get_player_current_games(username): url = f"{CHESS_API_BASE}/player/{username}/games" response = requests.get(url) response.raise_for_status() return response.json()

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/bkoseda/mcpchesssampleserver'

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