classdojo-mcp
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., "@classdojo-mcpPlease 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 Roster MCP
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.
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 | 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. |
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.
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.
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.
Only roster import is writable in v0.1.0. Points, attendance, messaging, family invitations, and other ClassDojo features are intentionally 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.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:
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
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables 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.25MIT
- FlicenseBqualityDmaintenanceEnables AI assistants to read, write, format, and analyze Excel files with 34 tools, including real-time editing on macOS with Microsoft Excel.3417
- AlicenseAqualityCmaintenanceEnables translation of Excel files using Claude AI while preserving formatting, formulas, and data integrity.6382MIT
Related MCP Connectors
Read your team's end-of-day reports and roster from Eodly.
Convert PDF bank statements to checked Excel, CSV or JSON with balance validation.
Real .docx and .xlsx files from structured data, with automatic Hebrew/Arabic RTL.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Eason0in/classdojo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server