Unofficial local-first MCP for previewing, importing, and verifying ClassDojo rosters from XLSX.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An unofficial, local-first Model Context Protocol (MCP) server for teachers who need to inspect Excel/XLSX student rosters, preview changes, import students into ClassDojo, and verify the saved roster afterward. It works with any MCP client that can launch a local stdio server, including Claude Desktop, Codex, Cursor, and VS Code.
[!IMPORTANT] This community project is not affiliated with, endorsed by, or supported by ClassDojo. It uses the signed-in ClassDojo teacher website through a local browser adapter because an official public ClassDojo API/MCP is not yet available. ClassDojo UI changes may require an adapter update.
ηΉι«δΈζζδ»ΆοΌdocs/README.zh-TW.md
ClassDojo's bulk paste flow can interpret a leading number as list numbering instead of part of a student's display name. This server keeps roster changes reviewable and supports two explicit formats:
seat_number_dot_name: creates names such as 1.Student A one at a time so the seat number is preserved.name_only: uses ClassDojo's faster bulk paste flow when seat numbers are not needed; it is rejected if a source class contains duplicate names.Every write requires a fresh 15-minute preview ID plus confirm: true. After saving, the server reads the class back and compares names and counts.
| Tool | Writes data | Purpose |
|---|---|---|
classdojo_doctor | No | Check the local browser connection, login state, and visible classes. |
classdojo_list_classes | No | List visible three-digit classes in the teacher session. |
classdojo_inspect_workbook | No | Scan every sheet for likely class, seat-number, and student-name columns. |
classdojo_get_roster | No | Read a current ClassDojo class roster. |
classdojo_get_ui_state | No | Detect dialogs that may block roster work; it never dismisses them. |
classdojo_preview_roster_import | No | Compare workbook students with ClassDojo and create a short-lived preview ID. |
classdojo_apply_roster_import | Yes | Apply one preview with confirm: true, save, and read back for verification. |
classdojo_verify_roster_against_workbook | No | Compare expected and actual counts, missing names, and unexpected names. |
The workbook inspector does not assume fixed sheet names or column positions. It scans the whole workbook for common Chinese and English class/seat/name headers. Preview and verification then require an explicit non-empty sheetNames selection plus class mappings, preventing an Agent from silently combining duplicate or unrelated sheets.
classdojo_doctor.classdojo_inspect_workbook and select the intended sheet and detected class blocks.classdojo_preview_roster_import with an explicit studentNameFormat.classdojo_apply_roster_import with the returned previewId and confirm: true.classdojo_verify_roster_against_workbook for an independent read-back check.| Preview | Read-back verification |
|---|---|
All screenshots contain synthetic data only.
The MCP server never asks for a ClassDojo password, cookie, or API token.
Use a dedicated browser profile and sign in to ClassDojo in that window.
Keep the debugging port on loopback. Anyone who can reach a CDP endpoint may be able to control its browser session.
Install from the public npm package with the same command in every client:
Contributors can alternatively clone this repository, run npm ci && npm run build, and replace the command with node plus the absolute path to dist/cli.js.
Add this to ~/.codex/config.toml:
Client UI and configuration locations change over time; refer to the client's current documentation. The transport itself is standard MCP stdio and is not Codex-specific.
Inspect a workbook first:
Create a preview with synthetic class mappings:
Apply only after reviewing the preview:
Preview IDs expire after 15 minutes, live only in the running MCP process, and are consumed by the first apply attempt. This reduces accidental replay and duplicate imports. If one class fails, the result names the verified classes and the classes that can be retried after generating a new preview.
See docs/PRIVACY.md, SECURITY.md, and the threat model.
| Symptom | Check |
|---|---|
| Browser connection fails | Confirm the dedicated Chrome window is still running with --remote-debugging-port=9222. |
| Not logged in | Sign in manually in the dedicated window, then rerun classdojo_doctor. |
| No classes are visible | Open the teacher class page and confirm the account has access. |
| Import is blocked | Run classdojo_get_ui_state; close family-invitation or welcome dialogs yourself. |
| Seat numbers disappear | Use studentNameFormat: "seat_number_dot_name"; bulk paste is only used for name_only. |
| Workbook columns are not detected | Open an issue with a synthetic workbook that reproduces the header layout. |
| Verification differs | Stop writing, compare missingStudents and unexpectedStudents, then create a new preview. |
Version 0.1.x is experimental. The web UI adapter is intentionally isolated so a future official ClassDojo API can replace it without changing the public MCP tool workflow.
Planned work:
This project will not reverse-engineer or promise undocumented ClassDojo REST endpoints as a stable public API.
The stdio protocol uses stdout; never add console.log calls to the server. Use stderr for diagnostics. See CONTRIBUTING.md before opening a pull request.
io.github.Eason0in/classdojo-mcpclassdojo-mcpstdioNo reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/classdojo-roster-mcp)<a href="https://allmcps.com/mcp/classdojo-roster-mcp"><img src="https://allmcps.com/api/badge/classdojo-roster-mcp?style=directory" alt="ClassDojo Roster MCP on AllMCPs" /></a>