Chess.com MCP Server for LangChain 15 tools — connect in under 2 minutes
LangChain is the leading Python framework for composable LLM applications. Connect Chess.com through Vinkius and LangChain agents can call every tool natively. combine them with retrievers, memory, and output parsers for sophisticated AI pipelines.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
import asyncio
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
async with MultiServerMCPClient({
"chesscom": {
"transport": "streamable_http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
response = await agent.ainvoke({
"messages": [{
"role": "user",
"content": "Using Chess.com, show me what tools are available.",
}]
})
print(response["messages"][-1].content)
asyncio.run(main())
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Chess.com MCP Server
Connect to the Chess.com public API and explore the entire chess ecosystem through natural conversation. No authentication required — just install and start querying immediately.
LangChain's ecosystem of 500+ components combines seamlessly with Chess.com through native MCP adapters. Connect 15 tools via Vinkius and use ReAct agents, Plan-and-Execute strategies, or custom agent architectures. with LangSmith tracing giving full visibility into every tool call, latency, and token cost.
What you can do
- Player Profiles & Stats — Fetch any player display name, avatar, join date, follower count, plus detailed ratings across all time controls (bullet, blitz, rapid, daily) and puzzle rush scores
- Online Status — Check if a player is currently connected to Chess.com in real-time
- Game History — Retrieve all finished games for any month with full PGN data, opponent info, opening names, accuracy ratings, and game results
- Daily & Current Games — See which correspondence games a player currently has in progress
- Puzzles — Get the official daily puzzle or fetch unlimited random puzzles for tactical training
- Clubs — Explore Chess.com clubs, view member rosters, and discover community affiliations
- Leaderboards — See the highest-rated players across all game types on Chess.com
- Titled Players — Lists of GMs, IMs, FMs, WGMs, NMs, and other officially titled players
- Streamers — Find verified Chess.com content creators across Twitch, YouTube, and other platforms
- Country Players — Discover players from any nation using ISO country codes
The Chess.com MCP Server exposes 15 tools through the Vinkius. Connect it to LangChain in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Chess.com to LangChain via MCP
Follow these steps to integrate the Chess.com MCP Server with LangChain.
Install dependencies
Run pip install langchain langchain-mcp-adapters langgraph langchain-openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the agent
Save the code and run python agent.py
Explore tools
The agent discovers 15 tools from Chess.com via MCP
Why Use LangChain with the Chess.com MCP Server
LangChain provides unique advantages when paired with Chess.com through the Model Context Protocol.
The largest ecosystem of integrations, chains, and agents. combine Chess.com MCP tools with 500+ LangChain components
Agent architecture supports ReAct, Plan-and-Execute, and custom strategies with full MCP tool access at every step
LangSmith tracing gives you complete visibility into tool calls, latencies, and token usage for production debugging
Memory and conversation persistence let agents maintain context across Chess.com queries for multi-turn workflows
Chess.com + LangChain Use Cases
Practical scenarios where LangChain combined with the Chess.com MCP Server delivers measurable value.
RAG with live data: combine Chess.com tool results with vector store retrievals for answers grounded in both real-time and historical data
Autonomous research agents: LangChain agents query Chess.com, synthesize findings, and generate comprehensive research reports
Multi-tool orchestration: chain Chess.com tools with web scrapers, databases, and calculators in a single agent run
Production monitoring: use LangSmith to trace every Chess.com tool call, measure latency, and optimize your agent's performance
Chess.com MCP Tools for LangChain (15)
These 15 tools become available when you connect Chess.com to LangChain via MCP:
get_club_info
com club by its URL identifier. Returns the club name, description, creation date, last activity date, visibility status, admin information, and total member count. Use this tool to learn about a club before joining, verify club existence, or gather metadata about chess communities. Get information about a Chess.com club
get_club_members
com club. Each entry includes the member username and their profile URL. Use this tool to discover active players within a specific club community, find potential opponents who share your chess interests, or identify titled players within a club roster. Get weekly active members of a Chess.com club
get_country_players
com players who have registered with a specific country. Takes an ISO 3166-1 country code (e.g., "US" for United States, "BR" for Brazil, "IN" for India, "RU" for Russia, "NO" for Norway). Returns an array of player usernames affiliated with that country. Use this tool to discover players from a specific nation, find local opponents, or research the chess scene in different countries. Get Chess.com players from a specific country
get_daily_puzzle
com daily puzzle including the puzzle position (FEN), the sequence of moves for the solution, the puzzle rating, and the associated game metadata (players, result, opening). Use this tool to get a tactical puzzle to solve, practice chess tactics, or study interesting positions from real games. The puzzle changes once per day. Get the Chess.com daily puzzle
get_leaderboards
com leaderboards showing the highest-rated players across different game categories. Returns top players for daily chess (correspondence), blitz, bullet, and rapid time controls, plus puzzle rush leaders. Each entry includes username, current rating, and profile URL. Use this tool to identify the strongest active players on Chess.com, track rating leaders, or find grandmaster accounts to study. Get Chess.com leaderboards for top players
get_player_clubs
com clubs that a specific player belongs to. Returns club names, URLs, creation dates, and membership counts. Use this tool to discover a player community affiliations, find clubs with similar interests, or identify potential clubs to join based on where strong players are members. Get clubs that a Chess.com player is a member of
get_player_current_games
com player. Returns game details including opponent username, current position (FEN), time control, last activity date, and game URL. Use this tool to check what ongoing games a player has, see who they are playing against in daily chess, or monitor active correspondence matches. Does not include live (real-time) games that are currently being played. Get a player's currently active daily (correspondence) games
get_player_game_archives
com player. Each URL corresponds to a specific year/month combination where the player has recorded games. Use this tool to discover which months have available game data before fetching actual games with get_player_monthly_games. The returned URLs can be parsed to extract year and month parameters. Get list of available game archive URLs for a player
get_player_monthly_games
com player during a specific year and month. Returns detailed PGN data, game results, opponent usernames, opening names, time controls, accuracy ratings (if available), and game end reasons. Use this tool to analyze a player game history, study their openings, review losses against specific opponents, or collect training data. Month is 1-indexed (January = 1, December = 12). Get all finished games for a player in a specific month
get_player_profile
com player by username. Returns the player display name, avatar URL, join date, last online timestamp, follower count, country, and title if applicable (GM, IM, FM, etc.). Use this tool to verify a username exists and gather basic identity information about a Chess.com player before querying their stats or games. Get Chess.com player profile information
get_player_stats
com player. Returns current and best ratings across all game types (chess_rapid, chess_blitz, chess_bullet, chess_daily, puzzle_rush, lessons), plus win/loss/draw records for each time control. Use this tool to evaluate a player skill level, check their peak ratings, or compare performance across different time controls. Get Chess.com player statistics including ratings and records
get_random_puzzle
com puzzle database. Returns the puzzle position (FEN), the complete solution moves, puzzle rating, and the source game information (white player, black player, result, opening name). Use this tool for unlimited tactical practice sessions, training sessions, or when you want a fresh puzzle that is not the daily puzzle. Get a random chess puzzle from Chess.com
get_streamers
com verified streamers. Each entry includes the streamer username, streaming platform (Twitch, YouTube, etc.), stream URL, language, and follower count. Use this tool to find chess content creators to watch, discover educational streams in your preferred language, or locate titled players who regularly broadcast their games. Get the list of official Chess.com streamers
get_titled_players
com players who hold a specific chess title. Supported titles include: GM (Grandmaster), IM (International Master), FM (FIDE Master), CM (Candidate Master), WGM (Woman Grandmaster), WIM (Woman International Master), WFM (Woman FIDE Master), WCM (Woman Candidate Master), NM (National Master), and LM (Legends Master). Returns an array of usernames. Use this tool to find all grandmasters on Chess.com, locate titled players for study, or verify if a player holds an official title. Get list of titled players by title type
is_player_online
com player. Returns a simple status object indicating whether the player is currently connected to Chess.com servers. Useful for determining if a daily chess opponent or streamer is actively playing right now before attempting to challenge them. Check if a Chess.com player is currently online
Example Prompts for Chess.com in LangChain
Ready-to-use prompts you can give your LangChain agent to start working with Chess.com immediately.
"Show me the current ratings and stats for chess player 'hikaru' on Chess.com."
"Get me today's daily puzzle from Chess.com."
"Show me the top 5 players on the Chess.com blitz leaderboard."
Troubleshooting Chess.com MCP Server with LangChain
Common issues when connecting Chess.com to LangChain through the Vinkius, and how to resolve them.
MultiServerMCPClient not found
pip install langchain-mcp-adaptersChess.com + LangChain FAQ
Common questions about integrating Chess.com MCP Server with LangChain.
How does LangChain connect to MCP servers?
langchain-mcp-adapters to create an MCP client. LangChain discovers all tools and wraps them as native LangChain tools compatible with any agent type.Which LangChain agent types work with MCP?
Can I trace MCP tool calls in LangSmith?
Connect Chess.com with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Chess.com to LangChain
Get your token, paste the configuration, and start using 15 tools in under 2 minutes. No API key management needed.
