cx-mcp
Click on "Deploy 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., "@cx-mcp帮我完成高等数学课的最新作业,提交前先 dry run"
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.
📚 cx-mcp
xxt(cx)作业协议 MCP Server
接入后,agent 一条龙完成:选课 → 列作业 → 读题 → 写答案 → 提交
📦 依赖
依赖 | 要求 |
≥ 18(需内置 fetch,建议 20+) | |
本机浏览器 | Chrome 或 Edge 任一( |
npm installRelated MCP server: XIPU MCP
🔧 配置
在 mcpServers 中添加(/path/to/cx-mcp 替换为你本机的克隆路径):
{
"mcpServers": {
"cx-mcp": {
"command": "node",
"args": ["/path/to/cx-mcp/server.mjs"]
}
}
}🚀 用法
用户只需告诉 agent 要做哪个(哪些)课程的作业:
👤 用户:做 xx 课的作业
└─ 🤖 agent 自主完成
① cx_list_courses 找课程
② cx_list_homework 列作业
③ cx_get_homework 读题目(返回作答格式说明)
④ 按格式写答案
⑤ cx_submit_homework 提交(拿不准先 dryRun: true)🔑 登录
未登录时,任何业务工具返回 { "error": "NOT_LOGGED_IN", "need": { … } }。两种恢复方式:
方式一:浏览器登录(推荐)
cx_login_start(可选带 username/password;验证码/滑块/扫码由用户在弹出的真实浏览器窗口里手动完成)
→ cx_login_status(轮询直到 success)
→ 成功后自动抓取全部 cookie(含 HttpOnly)和登录浏览器的 UA 一并保存方式二:agent 自行交付
agent 自己拿到含 _uid / UID / vc3 / uf / _d 的整段 Cookie 请求头字符串后调 cx_set_cookies(建议同时给 userAgent,即 Cookie 来源浏览器的 UA —— 客户端会用它发请求,保持请求指纹与登录态同源)。注意 vc3 是 HttpOnly,document.cookie 读不到,需从网络请求头或能读 HttpOnly 的自动化 cookie API 获取。
两种方式保存后均可用 cx_check_login 确认 loggedIn: true。
📝 answer 值格式
题型 | 值 | 示例 |
单选 | 单个大写字母 |
|
多选 | 字母升序连写 |
|
判断 | 固定词 |
|
填空 | JSON 数组串(每空一项) |
|
简答/富文本 | HTML 字符串 |
|
带文件/图片的作业:
题目给的附件/图片:
cx_get_homework返回的题目里带attachments(objectid/文件名/类型/大小)和stemImages(图片 URL);附件用cx_get_attachment_download拿带签名的下载直链;答案需要交文件/图片:
cx_upload_attachment上传本地文件,返回answerHtml—— 原样拼进该题answer<qid>的 HTML 里再提交(图片自动用<img>,文件自动用附件 iframe,与网页端产物同构)。
🧰 工具一览
工具 | 说明 |
| 拉起本机 Chrome/Edge 完成登录,自动存 cookie + UA(本调用立即返回) |
| 轮询登录进度(running / success / failed / timeout / cancelled) |
| 取消登录并关闭浏览器 |
| 手动交付 Cookie(可选 |
| 验证登录态;无效时返回 |
| 全部课程(courseId / classId / cpi / 名称 / 教师) |
| 某课全部作业(workId / answerId / enc / 标题 / 状态) |
| 题目详情 + 题干附件/图片 + 作答格式说明 + 提交令牌 |
| 按 objectid 解析附件下载直链(带签名) |
| 上传本地文件/图片作为答案,返回可直接拼入答案的 answerHtml |
| 提交作业( |
📄 License
⚠️ 免责声明
本项目仅供学习与技术研究(协议分析、接口自动化),使用前请了解并遵守你所在学校/机构的规定及相关法律法规。
是否使用、如何使用由使用者自行决定;因使用本工具产生的一切后果(包括但不限于账号处罚、作业/成绩作废、学术处分等)由使用者本人承担。
作者不鼓励、不支持任何形式的学术不端行为,请勿将本项目用于商业用途或大规模滥用。
一经使用,即视为你已阅读、理解并同意上述内容。
This server cannot be deployed
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to directly query Chaoxing/Xuexitong courses and homework status via fast HTTP calls, with persistent login and automatic re-authentication.12MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to connect to Xi'an Jiaotong-Liverpool University's Learning Mall Core (Moodle) to list courses and materials, download attachments, and check assignment deadlines, with automatic login and email-based verification-code retrieval. Text extraction from PDF, PPTX, and DOCX files runs locally on the Mac and returns page-level evidence for deadline verification.3MIT
- AlicenseAqualityCmaintenanceEnables users to patrol QingSoft U+ courses, track homework and experiments, read objective questions into structured briefs for a connected MCP client model to answer, fill and verify selections, and optionally submit, while handing subjective, programming, report and file work back to the human.9MIT
- AlicenseBqualityAmaintenanceEnables automation of the QingSoft U+ learning platform by patrolling courses, homework and experiments, inspecting objective questions, filling and submitting answers, and handing subjective work back to a human, while also providing a generic browser automation toolset.311MIT