Skip to main content
Glama
chesscom-stats-mcp

chesscom-stats-mcp

chesscom-stats-mcp

An MCP server for Chess.com stats. Plug it into Claude (or any MCP client) and ask things like:

  • "How did I do this month?"

  • "What's my score with the Pirc as black?"

  • "Show me my last five rapid games."

  • "What's Hikaru's bullet rating?"

Demo: asking Claude how I did on Chess.com this month

It uses Chess.com's public Published-Data API, so there is no API key and nothing to sign in to. It only reads public data.

Install

Claude Code

claude mcp add chesscom -e CHESSCOM_USERNAME=your_username -- npx -y chesscom-stats-mcp

Claude Desktop, Cursor and other clients

Add this to the client's MCP config (for Claude Desktop, claude_desktop_config.json):

{
  "mcpServers": {
    "chesscom": {
      "command": "npx",
      "args": ["-y", "chesscom-stats-mcp"],
      "env": { "CHESSCOM_USERNAME": "your_username" }
    }
  }
}

CHESSCOM_USERNAME is optional. With it set, "how did I do?" means you; without it, name the player in the question.

Related MCP server: MCP Chess Server

Tools

Tool

What it returns

month_summary

One month at a glance: win/loss/draw and score %, rating change per time control, results as white and black, average accuracy, how wins and losses ended, longest streaks, best win, worst loss, most-played openings. Defaults to the current month; filter by time control or include unrated games.

recent_games

The latest games, newest first, with result, ratings, opening, accuracy and a link.

get_ratings

Current and best rating plus lifetime record for bullet, blitz, rapid and daily.

get_profile

Public profile: name, country, join date, league, followers.

All tools are read-only.

Notes

  • Ratings on a Chess.com game are post-game, so a month's ratingChange runs from the rating after the first rated game of the month to the rating after the last one.

  • Accuracy is only present for games that were reviewed on Chess.com, so averageAccuracy covers gamesWithAccuracy games, not all of them.

  • Variants (Chess960 and so on) are left out of month_summary.

Development

npm install
npm test                              # builds, then runs the unit tests
node scripts/demo.mjs list            # list tools over a real stdio connection
node scripts/demo.mjs month_summary '{"username":"hikaru"}'

License

MIT

Available Tools

4 tools
get_profilePlayer profileB
Read-only

A Chess.com player's public profile: name, country, join date, league, followers.

Inputs: username.

get_ratingsCurrent ratingsA
Read-only

Current and best rating plus lifetime win/loss/draw record for each time control (bullet, blitz, rapid, daily).

Inputs: username.

month_summaryMonth summaryA
Read-only

How a player did in one calendar month: record and score, rating change per time control, results as white and black, average accuracy, how wins and losses ended, streaks, best win, worst loss and most-played openings. Defaults to the current month. Use this for questions like "how did I do this month?".

Inputs: year, month, username, rated_only, +1 more.

recent_gamesRecent gamesA
Read-only

A player's most recent finished games, newest first, with result, ratings, opening, accuracy and a link.

Inputs: limit, username, time_class.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool targets a distinct slice: profile identity, current/best ratings, a monthly aggregate, and a raw recent-games list. The only mild overlap is between month_summary and recent_games, both about played games, but the aggregate-vs-list distinction is spelled out clearly in the descriptions.

    Naming Consistency3/5

    Two tools use a get_ verb prefix (get_profile, get_ratings) while the other two are bare noun phrases (month_summary, recent_games). Names are readable and unambiguous, but the set mixes two conventions rather than following one pattern.

    Tool Count4/5

    Four tools is lean but sensible for a focused Chess.com stats server — identity, ratings, monthly performance, recent games. It sits just under a fully comfortable surface, since users may also want historical or arbitrary-range stats.

    Completeness3/5

    Core stats workflows are covered (profile, ratings, month summary, recent games), but there are notable gaps: no arbitrary date-range or archive queries, no fetching a specific game, and no puzzle/tactics or online-status data. Agents can work around some of this but will hit dead ends for historical queries.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides access to Chess.com player data, game records, and public information through standardized MCP interfaces, allowing AI assistants to search and analyze chess information.
      10
      94
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides Chess.com player data integration, enabling AI assistants to fetch real-time chess player profiles and comprehensive statistics including ratings, game counts, and performance metrics from Chess.com's public API.
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables querying Chess.com public data including player profiles, stats, games, and club information through natural language.
      9
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server that exposes the Lichess public API through tools for querying player profiles, games, analysis, openings, puzzles, and tournaments, allowing natural-language chess questions without an API key.
      8
      MIT