Cloudflare Workshop MCP Server
Provides chess-related tools via the Model Context Protocol, integrating with the Chess.com API to fetch daily puzzles, live streamers, player information, and more for AI assistants.
README
Cloudflare Workshop MCP Server
A Model Context Protocol (MCP) server implementation for Cloudflare Workers that provides chess-related tools and functionality using the Chess.com API.
⚠️ README generated by AI
Context
This MCP server was developed for the Cloudflare Workshop on "Building and Deploying Remote MCP Servers with Cloudflare" 🔗 Workshop Link
Features
- Get daily chess puzzles from Chess.com
- View currently live chess streamers
- Retrieve detailed player information and statistics
- List titled players by category (GM, IM, etc.)
- Implements the Model Context Protocol for AI assistant integration
Claude Desktop Setup
To use this MCP server with Claude desktop application:
- Open Claude desktop settings
- Navigate to the configuration file location
- Add the following configuration to enable the chess tools:
{
"mcpServers": {
"workshop_chess": {
"command": "npx",
"args": [
"mcp-remote",
"https://cloudflare-workshop-mcp-server.donovan-5a5.workers.dev/sse"
]
}
}
}
Prerequisites
- Node.js (v18 or later recommended)
- npm (included with Node.js)
- Cloudflare account (for deployment)
Setup
-
Clone the repository:
-
Install dependencies:
npm install -
Set up environment variables: Create a
.dev.varsfile in the project root for local development with any required API keys or configuration values.
Local Development
To run the server locally:
npm run dev
This will start the development server using Wrangler, Cloudflare's command-line tool for Workers. The server will be available at http://localhost:8787 by default.
Available Scripts
npm run devornpm start: Start the development servernpm run deploy: Deploy to Cloudflare Workersnpm run format: Format code using Biomenpm run lint:fix: Lint and fix code issuesnpm run type-check: Check TypeScript types
Deployment
To deploy the MCP server to Cloudflare Workers:
-
Make sure you're logged in to Cloudflare:
npx wrangler login -
Push environment variables to Cloudflare:
npx wrangler secret bulk .dev.vars -
Deploy the worker:
npm run deploy -
After deployment, your MCP server will be available at the URL provided in the deployment output.
Usage Examples
The MCP server provides several chess-related tools that can be used by AI assistants or other clients that implement the Model Context Protocol.
Example Prompts
Here are some example prompts you can use with an AI assistant that has access to this MCP server:
Get Today's Chess Puzzle
Can you show me today's chess puzzle from Chess.com?
Find Live Chess Streamers
Who is currently streaming chess live?
Get Player Information
Tell me about the chess player MagnusCarlsen.
Get Player Statistics
What are the chess ratings and statistics for Hikaru?
List Titled Players
Can you give me some GrandMasters FIDE ranking ?
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.