Chess.com MCP Server for Vercel AI SDK 15 tools — connect in under 2 minutes
The Vercel AI SDK is the TypeScript toolkit for building AI-powered applications. Connect Chess.com through the Vinkius and every tool is available as a typed function — ready for React Server Components, API routes, or any Node.js backend.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
import { createMCPClient } from "@ai-sdk/mcp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
async function main() {
const mcpClient = await createMCPClient({
transport: {
type: "http",
// Your Vinkius token — get it at cloud.vinkius.com
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
});
try {
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "Using Chess.com, list all available capabilities.",
});
console.log(text);
} finally {
await mcpClient.close();
}
}
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.
The Vercel AI SDK gives every Chess.com tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 15 tools through the Vinkius and stream results progressively to React, Svelte, or Vue components — works on Edge Functions, Cloudflare Workers, and any Node.js runtime.
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 Vercel AI SDK 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 Vercel AI SDK via MCP
Follow these steps to integrate the Chess.com MCP Server with Vercel AI SDK.
Install dependencies
Run npm install @ai-sdk/mcp ai @ai-sdk/openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the script
Save to agent.ts and run with npx tsx agent.ts
Explore tools
The SDK discovers 15 tools from Chess.com and passes them to the LLM
Why Use Vercel AI SDK with the Chess.com MCP Server
Vercel AI SDK provides unique advantages when paired with Chess.com through the Model Context Protocol.
TypeScript-first: every MCP tool gets full type inference, IDE autocomplete, and compile-time error checking out of the box
Framework-agnostic core works with Next.js, Nuxt, SvelteKit, or any Node.js runtime — same Chess.com integration everywhere
Built-in streaming UI primitives let you display Chess.com tool results progressively in React, Svelte, or Vue components
Edge-compatible: the AI SDK runs on Vercel Edge Functions, Cloudflare Workers, and other edge runtimes for minimal latency
Chess.com + Vercel AI SDK Use Cases
Practical scenarios where Vercel AI SDK combined with the Chess.com MCP Server delivers measurable value.
AI-powered web apps: build dashboards that query Chess.com in real-time and stream results to the UI with zero loading states
API backends: create serverless endpoints that orchestrate Chess.com tools and return structured JSON responses to any frontend
Chatbots with tool use: embed Chess.com capabilities into conversational interfaces with streaming responses and tool call visibility
Internal tools: build admin panels where team members interact with Chess.com through natural language queries
Chess.com MCP Tools for Vercel AI SDK (15)
These 15 tools become available when you connect Chess.com to Vercel AI SDK 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 Vercel AI SDK
Ready-to-use prompts you can give your Vercel AI SDK 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 Vercel AI SDK
Common issues when connecting Chess.com to Vercel AI SDK through the Vinkius, and how to resolve them.
createMCPClient is not a function
npm install @ai-sdk/mcpChess.com + Vercel AI SDK FAQ
Common questions about integrating Chess.com MCP Server with Vercel AI SDK.
How does the Vercel AI SDK connect to MCP servers?
createMCPClient from @ai-sdk/mcp and pass the server URL. The SDK discovers all tools and provides typed TypeScript interfaces for each one.Can I use MCP tools in Edge Functions?
Does it support streaming tool results?
useChat and streamText that handle tool calls and display results progressively in the UI.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 Vercel AI SDK
Get your token, paste the configuration, and start using 15 tools in under 2 minutes. No API key management needed.
