hanzi-write
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hanzi-writeshow me the stroke order for '爱'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
汉字笔顺 MCP 项目
基于 xmcp 框架的 MCP 工具集,包含汉字笔顺动画练习和实时天气查询。
功能特性
汉字笔顺动画播放与描红练习
全球主要城市实时天气查询
React + TypeScript + Tailwind CSS v4
支持 HTTP 传输模式
Docker 容器化部署
内置测试框架(vitest)
Related MCP server: HeFeng Weather MCP Server
环境要求
Node.js >= 20.0.0
npm
快速开始
npm install
npm run dev开发服务器启动后,MCP 服务将通过 HTTP 模式运行。
可用的 MCP 工具
1. hanzi-writer(汉字笔顺练习)
描述:汉字笔顺动画和描红练习
参数:
character(string, 默认: "永") - 要练习的汉字
2. weather(天气查询)
描述:查询全球主要城市的实时天气
支持城市:Buenos Aires, San Francisco, Berlin, Tokyo, New York
项目脚本
命令 | 说明 |
| 启动开发服务器 |
| 生产环境构建 |
| 启动生产服务 |
| TypeScript 类型检查 |
| 启动测试(watch 模式) |
| 一次性运行测试 |
| 清理构建产物 |
更多命令请查看 commands.txt。
项目结构
hanzi-write/
├── src/
│ ├── lib/ # 共享逻辑
│ │ ├── constants.ts
│ │ ├── weather-client.ts
│ │ └── hanzi-writer-loader.ts
│ └── tools/ # MCP 工具
│ ├── weather.tsx
│ └── hanzi-writer.tsx
├── tests/ # 测试文件
├── web/ # Next.js 预览端
├── Dockerfile
├── commands.txt
├── structure.txt
└── package.json详细结构说明请查看 structure.txt。
环境变量
复制 .env.example 为 .env 并按需修改:
cp .env.example .env变量 | 说明 | 默认值 |
| Open-Meteo API 地址 |
|
| HanziWriter CDN 地址 | jsDelivr |
Docker 部署
docker build -t hanzi-write-mcp .
docker run -p 3000:3000 hanzi-write-mcpWeb 预览
项目包含一个 Next.js 预览页面,用于在浏览器中查看 MCP UI:
cd web
npm install
npm run dev然后访问 http://localhost:3000。
技术栈
框架:xmcp
UI:React 19 + TypeScript
样式:Tailwind CSS v4
测试:Vitest
部署:Docker
许可证
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aohuideqiang/hanzi-write'
If you have feedback or need assistance with the MCP directory API, please join our Discord server