How to Use the Chess.com Global Intelligence MCP in Mastra AI
Build complex, resilient chess data workflows that run automatically with Mastra AI and this MCP server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Chess.com Global Intelligence MCP to Mastra AI
Create your Vinkius account to connect Chess.com Global Intelligence to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate Player Data Collection
Set up a workflow to monitor specific players. Your Mastra AI agent can use `get_player_profile` to check for new players, then trigger a separate step to pull their complete history with `get_player_game_archives` and `get_player_monthly_games`. Mastra's workflow engine makes this solid. If a call to the Chess.com API fails, it automatically retries with exponential backoff. You can build conditional logic, like 'if player rating > 2700, then send a notification'.
Create Chess Analysis Pipelines
Chain tools together for deeper insights. Start by getting a list of GMs with `list_titled_players`. Then, for each player, have the workflow fetch their latest monthly games using `get_player_monthly_games`. This isn't just a simple script; you're building a production-grade data pipeline. Mastra lets you deploy this workflow with one command and it will run reliably, handling errors and logging its progress without your intervention.
Monitor Tournaments with Mastra AI
Build a bot that watches the chess world for you. A recurring workflow can hit `get_tournament_metadata` to check for new high-profile events. Another one can ping `list_active_streamers` every 15 minutes. When a new top-tier tournament is found or a famous player starts streaming, your workflow can trigger other actions. It could send a message to a Discord channel, update a database, or kick off another analysis agent. You define the logic, Mastra handles the execution.
Set up Chess.com Global Intelligence MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All Chess.com Global Intelligence tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "chesscom-global-intelligence-mcp-client",
servers: {
"chesscom-global-intelligence-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Chess.com Global Intelligence Agent",
model: openai("gpt-4o"),
instructions: "You have access to Chess.com Global Intelligence tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Chess.com Global Intelligence transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Chess.com. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Chess.com Global Intelligence MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Chess.com Global Intelligence MCP today
We host it, we monitor it, we maintain it. You just paste one token.