classdojo-mcp
This server lets an MCP client inspect and import Excel/XLSX student rosters and review, synchronize, and verify ClassDojo classroom skills through a locally connected browser, with preview-and-confirm safety and no direct credential handling.
Diagnose the local setup –
classdojo_doctorchecks browser connection, login state, and visible classes.List classes –
classdojo_list_classesshows visible three-digit ClassDojo classes.Inspect Excel/XLSX workbooks –
classdojo_inspect_workbookscans sheets for likely class, seat-number, and student-name columns without sending data.Read rosters and skills –
classdojo_get_rosterandclassdojo_get_skillsread current student rosters and positive/needs-work skills with points and icons.Check UI blockers –
classdojo_get_ui_statedetects dialogs that may block roster work (it never dismisses them).Preview roster imports –
classdojo_preview_roster_importcompares workbook students with ClassDojo and creates a short-lived preview ID using explicit sheet names, class mappings, and a name format.Apply roster imports only after confirmation –
classdojo_apply_roster_importwrites names withconfirm: trueand reads the class back to verify.Verify rosters against workbooks –
classdojo_verify_roster_against_workbookreports counts, missing names, and unexpected names without writing.Preview skill synchronization –
classdojo_preview_skill_synccompares a built-in preset, a live source class, or an inline rule list against target classes.Apply exact skill sync only after confirmation –
classdojo_apply_skill_syncreplaces target skills withconfirm: trueand reads every class back.Verify skill sync independently –
classdojo_verify_skill_synccompares current skills with the selected rule source without changing data.Use the guided skill-rules prompt – the
classdojo_configure_skill_rulesprompt walks through the built-intraditional_chinese_classroom_v1preset, edits, preview, approval, apply, and verification as separate steps.
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., "@classdojo-mcp Please inspect my ClassDojo roster Excel file and show me a preview before importing."
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.
ClassDojo Classroom MCP
An unofficial, local-first Model Context Protocol (MCP) server for teachers who need to inspect and import Excel/XLSX student rosters or review, synchronize, and verify ClassDojo classroom skills. It works with any MCP client that can launch a local stdio server, including Claude Desktop, Codex, Cursor, and VS Code.
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
Why this MCP server exists
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 as1.Student Aone 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.
Related MCP server: excel-mcp-server
What it can do
Tool | Writes data | Purpose |
| No | Check the local browser connection, login state, and visible classes. |
| No | List visible three-digit classes in the teacher session. |
| No | Scan every sheet for likely class, seat-number, and student-name columns. |
| No | Read a current ClassDojo class roster. |
| No | Read positive and needs-work skills with points and icons. |
| No | Detect dialogs that may block roster work; it never dismisses them. |
| No | Compare workbook students with ClassDojo and create a short-lived preview ID. |
| Yes | Apply one preview with |
| No | Compare expected and actual counts, missing names, and unexpected names. |
| No | Compare a preset, source class, or inline rule list with target classes and create a short-lived preview ID. |
| Yes | Exactly synchronize one skill preview with |
| No | Independently compare current skills with the selected rule source. |
The classdojo_configure_skill_rules MCP prompt guides a client through the built-in traditional_chinese_classroom_v1 preset, asks whether the user wants changes, shows the complete final list, and keeps preview, approval, apply, and verification as separate steps.
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.
Safe workflow
Run
classdojo_doctor.Run
classdojo_inspect_workbookand select the intended sheet and detected class blocks.Run
classdojo_preview_roster_importwith an explicitstudentNameFormat.Review class mappings, counts, missing seat numbers, and additions.
Only after human approval, call
classdojo_apply_roster_importwith the returnedpreviewIdandconfirm: true.Run
classdojo_verify_roster_against_workbookfor an independent read-back check.
Preview | Read-back verification |
All screenshots contain synthetic data only.
Safe classroom-skill workflow
The built-in Traditional Chinese preset contains nine positive skills and six needs-work skills. It is public package data and uses a neutral preset ID; it does not contain a teacher name, account identifier, or student data.
Start with the
classdojo_configure_skill_rulesprompt, or callclassdojo_get_skillsto inspect a source class.Review the complete preset and make any additions, removals, point changes, or icon changes.
Call
classdojo_preview_skill_syncwith exactly one source: the built-in preset, a three-digit source class, or a complete inline skill list.Review every target's additions, updates, and removals.
Only after human approval, call
classdojo_apply_skill_syncwith the one-timepreviewIdandconfirm: true.Call
classdojo_verify_skill_syncfor an independent comparison.
Skill synchronization is an exact replacement. If a class changes after preview, the apply stops rather than overwriting the newer state. Matching classes are left unchanged, and a partial failure requires a fresh preview before retrying.
Requirements
Node.js 20 or newer
Chrome or another Chromium browser with Chrome DevTools Protocol (CDP)
A ClassDojo teacher account that you sign in to yourself
An MCP client that supports local stdio servers
The MCP server never asks for a ClassDojo password, cookie, or API token.
Start the local browser adapter
Use a dedicated browser profile and sign in to ClassDojo in that window.
macOS
open -na "Google Chrome" --args \
--remote-debugging-port=9222 \
--user-data-dir="$HOME/.classdojo-mcp-chrome"Linux
google-chrome \
--remote-debugging-port=9222 \
--user-data-dir="$HOME/.classdojo-mcp-chrome"Windows PowerShell
& "$env:ProgramFiles\\Google\\Chrome\\Application\\chrome.exe" \`
--remote-debugging-port=9222 \`
--user-data-dir="$env:LOCALAPPDATA\\classdojo-mcp-chrome"Keep the debugging port on loopback. Anyone who can reach a CDP endpoint may be able to control its browser session.
Install in an MCP client
Install from the public npm package with the same command in every client:
npx -y classdojo-mcpContributors 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.
Claude Desktop and Cursor
{
"mcpServers": {
"classdojo": {
"command": "npx",
"args": ["-y", "classdojo-mcp"],
"env": {
"CLASSDOJO_CDP_URL": "http://127.0.0.1:9222"
}
}
}
}VS Code
{
"servers": {
"classdojo": {
"type": "stdio",
"command": "npx",
"args": ["-y", "classdojo-mcp"],
"env": {
"CLASSDOJO_CDP_URL": "http://127.0.0.1:9222"
}
}
}
}Codex
Add this to ~/.codex/config.toml:
[mcp_servers.classdojo]
command = "npx"
args = ["-y", "classdojo-mcp"]
[mcp_servers.classdojo.env]
CLASSDOJO_CDP_URL = "http://127.0.0.1:9222"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.
Example tool inputs
Inspect a workbook first:
{
"workbookPath": "/absolute/path/to/students.xlsx"
}Create a preview with synthetic class mappings:
{
"workbookPath": "/absolute/path/to/students.xlsx",
"sheetNames": ["Grade 5"],
"studentNameFormat": "seat_number_dot_name",
"includeStudentDetails": false,
"mappings": [
{
"classdojoClassName": "503",
"sourceClassName": "Grade 5 Class 3"
}
]
}Apply only after reviewing the preview:
{
"previewId": "00000000-0000-4000-8000-000000000000",
"confirm": true
}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.
Preview the built-in classroom-skill preset for multiple targets:
{
"rulesSource": {
"type": "preset",
"presetId": "traditional_chinese_classroom_v1"
},
"targetClassNames": ["502", "503", "504"]
}Use {"type":"class","className":"501"} to copy a live source class. To modify the preset, send {"type":"inline","skills":[...]} with the complete final list; each rule requires category, name, and integer points, while iconId is optional. Positive points must be 0..5, needs-work points must be -5..0, and names must be unique.
Privacy and security
Workbook parsing and browser automation run locally on the teacher's computer.
The project does not run a hosted MCP service and does not persist credentials or student rosters.
Student names may still pass through the selected MCP client/AI provider. Review that provider's retention and privacy terms before using real student data.
Never attach real workbooks, student screenshots, browser profiles, cookies, or diagnostic logs containing personal data to a public issue.
Writable operations are limited to confirmed roster imports and confirmed classroom-skill synchronization. Awarding points, attendance, messaging, family invitations, and other ClassDojo features remain unavailable.
See docs/PRIVACY.md, SECURITY.md, and the threat model.
Troubleshooting
Symptom | Check |
Browser connection fails | Confirm the dedicated Chrome window is still running with |
Not logged in | Sign in manually in the dedicated window, then rerun |
No classes are visible | Open the teacher class page and confirm the account has access. |
Import is blocked | Run |
Seat numbers disappear | Use |
Workbook columns are not detected | Open an issue with a synthetic workbook that reproduces the header layout. |
Verification differs | Stop writing, compare |
Project status and roadmap
Version 0.2.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:
additional synthetic workbook layouts and locale coverage
MCP client compatibility matrix and Inspector smoke tests
official API adapter if ClassDojo grants Early Access
optional read-only tools only after a privacy and permissions review
This project will not reverse-engineer or promise undocumented ClassDojo REST endpoints as a stable public API.
Development
npm ci
npm test
npm run build
npm audit --omit=dev
npm pack --dry-runThe stdio protocol uses stdout; never add console.log calls to the server. Use stderr for diagnostics. See CONTRIBUTING.md before opening a pull request.
Community metadata and release
MCP Registry name:
io.github.Eason0in/classdojo-mcpnpm package:
classdojo-mcptransport:
stdiolicense: MIT
server.json and package.json#mcpName intentionally match the MCP Registry ownership format. The release workflow is prepared for a protected GitHub Actions environment, npm Trusted Publishing, provenance, and MCP Registry OIDC; it is not usable until the maintainer explicitly configures the release environment and npm publisher. No long-lived npm token belongs in this repository.
License
MIT © Eason0in
Available Tools
12 toolsclassdojo_apply_roster_importApply a previously previewed roster importA
Sends student names to ClassDojo only after explicit confirmation, then verifies each class by reading it back.
Inputs: confirm (required), previewId (required).
classdojo_apply_skill_syncApply a previously previewed ClassDojo skill synchronizationADestructive
Exactly replaces target skills only after explicit confirmation, then reads every class back.
Inputs: confirm (required), previewId (required).
classdojo_doctorCheck the local ClassDojo browser adapterARead-only
Checks the local browser connection, login visibility, and available classes without writing data.
Inputs: no named parameters.
classdojo_get_rosterGet a ClassDojo rosterCRead-only
Reads a class roster without changing ClassDojo data.
Inputs: classId (required).
classdojo_get_skillsGet ClassDojo skillsARead-only
Reads positive and needs-work skills, including points and icons, without changing ClassDojo data.
Inputs: classId (required).
classdojo_get_ui_stateGet current ClassDojo UI stateARead-only
Reports whether the selected class is ready, adding students, or blocked by a family-invitation, welcome-message, or student-account dialog. It does not dismiss anything.
Inputs: classId (required).
classdojo_inspect_workbookInspect workbook roster candidatesARead-only
Scans every worksheet and reports candidate class, seat-number, and student-name column groups without importing or transmitting student data.
Inputs: workbookPath (required).
classdojo_list_classesList ClassDojo classesARead-only
Lists the three-digit classes visible in the locally connected ClassDojo teacher session.
Inputs: no named parameters.
classdojo_preview_roster_importPreview a roster importBRead-only
Reads a local XLSX workbook and reports the student-name changes before anything is sent to ClassDojo.
Inputs: mappings (required), sheetNames (required), workbookPath (required), studentNameFormat (required), +1 more.
classdojo_preview_skill_syncPreview exact ClassDojo skill synchronizationARead-only
Compares a preset, source class, or inline rule list with target classes before any skill is changed.
Inputs: rulesSource (required), targetClassNames (required).
classdojo_verify_roster_against_workbookVerify a ClassDojo roster against an XLSX workbookARead-only
Reads the current ClassDojo roster and a local XLSX workbook, then reports exact count, missing, and unexpected student-name differences without changing ClassDojo data.
Inputs: mappings (required), sheetNames (required), workbookPath (required), studentNameFormat (required).
classdojo_verify_skill_syncVerify ClassDojo skillsARead-only
Compares current target skills with a preset, source class, or inline rule list without changing data.
Inputs: rulesSource (required), targetClassNames (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have clear purposes, but several pairs overlap heavily: preview_skill_sync and verify_skill_sync both compare skills against a source without changing data, and verify_roster_against_workbook and preview_roster_import both report workbook-vs-roster differences. The descriptions help, but an agent could easily select the wrong verification/preview tool.
The classdojo_ prefix and snake_case naming are consistent, and most tools follow a clear verb_object pattern (get_roster, list_classes, apply_skill_sync, preview_roster_import). The main deviation is classdojo_doctor, which is vague and does not follow the verb_noun convention used by the rest of the set.
With 12 tools, the server stays within a well-scoped range for its domain. Each tool supports a distinct step in the roster or skill-sync workflow, including inspect, preview, apply, and verify phases, so none feel redundant.
The tool set covers the full roster-import and skill-sync lifecycle: inspect/preview/apply/verify for both workflows, plus connection diagnostics and UI-state checks. Minor gaps exist, such as no way to dismiss or resolve UI blockers and no explicit rollback tool, but these are workable limitations.
Maintenance
Related MCP Connectors
Read students, guardians, classes, attendance, assignments and fees; add notes in DreamClass.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Import a volunteer roster and preview shifts. Test-mode until a human enables live SMS.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to search, read, and analyze Excel files from your local file system with support for multiple worksheets, text search, and JSON data conversion.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables manipulation of Excel files including creating, reading, writing data, formatting, charts, pivot tables, and worksheet management via natural language.12 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to read and write local Excel and CSV files, supporting editing, styling, and image insertion.15MIT
- AlicenseAqualityBmaintenanceLocal-first data quality validation for Excel/CSV: schema-aware checks with 10 zero-code constraint types (uniqueness, ranges, foreign keys and more) and row-level error reports.43Apache 2.0