chess.com MCP Server
Enables querying Chess.com player profiles and stats using the Chess.com API.
README
Setting Up MCP server
This is for windows setup . You need python and uv installed on machine.If uv not installed then install using
pip install uv
Make a demo folder in windows
mkdir demo
cd demo
Initialized virtual environment
demo>uv init
demo>uv venv
demo>.venv\Scripts\activate
(demo) c:\demo>uv add mcp[cli] requests
open the folder in code
```bash
(demo) demo>code .
Add Folder src and chess
With in VS code , click on folder icon and add folder named src
Inside the src folder add another folder named chess
Add File init.py
Add empty file inside chess folder __init__.py
Add chess_api.py
Add file named ```chess_api.py``` inside chess folder and add below code
import requests
CHESS_API_BASE = "https://api.chess.com/pub"
headers = {
"accept": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Python/3.10"
}
def get_player_profile(username):
url = f"{CHESS_API_BASE}/player/{username}"
response = requests.get(url, headers=headers)
response.raise_for_status()
return response.json()
def get_player_stats(username):
url = f"{CHESS_API_BASE}/player/{username}/stats"
response = requests.get(url, headers=headers)
response.raise_for_status()
return response.json()
Add file server.py
Add another file named server.py inside chess folder and add below code
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("chess.com")
from .chess_api import get_player_profile, get_player_stats
@mcp.tool()
def get_chess_player_profile(username: str):
"""Get the public profile for a Chess.com player by username."""
return get_player_profile(username)
@mcp.tool()
def get_chess_player_stats(username: str):
"""Get the stats for a Chess.com player by username."""
return get_player_stats(username)
def main():
mcp.run(transport="stdio")
if __name__ == "__main__":
main()
Update the pyproject.toml file
The chess.server:main indicates there is chess folder inside src
and call main method in file server.py
[project.scripts]
chess = "chess.server:main"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
Run with MCP
demo>uv run chess
Note the command chess match [project.scripts]
There will be no output , if you get any syntax errors it will show. Just
exit out of server console using Ctrl+C
Install Claude Desktop from official website
Add configuration file for Claude
Go to the folder C:\Users\{yourname}\AppData\Roaming. Or In run command type
%APPDATA% .Verify that the folder contains a subfolder named Claude.
create a new file name claude_desktop_config.json
add following contents into it . Update the driectory path based on your computer
eg C:\\temp\\AI\\MCP_ORL3\\demo
{
"mcpServers": {
"kannan-server": {
"command": "uv",
"args": [
"--directory",
"C:\\temp\\AI\\MCP_ORL3\\demo",
"run",
"chess"
]
}
}
}
Restart Claude Desktop ,start a new chat
Look for icon SearchAndTools below prompt textbox
You will be able to see the mcp server agent named kannan-server ,based on the
name you provided in the configuration file.
Note to disable websearch. Now you can start searching for profile info and stats for Chess.com players using the commands you defined.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。