classroom-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLASSROOM_MCP_HOME | No | Where the profile and cache live. The default is ~/.config/classroom-mcp on macOS/Linux and %LOCALAPPDATA%\classroom-mcp on Windows. | ~/.config/classroom-mcp |
| CLASSROOM_MCP_ACCOUNT | No | Which signed-in Google account to use (the N in classroom.google.com/u/N/). | 0 |
| CLASSROOM_MCP_BROWSER | No | Path to a specific Chrome / Edge / Brave executable. | auto |
| CLASSROOM_MCP_READ_ONLY | No | Set to 1 to remove the turn-in / unsubmit tools. | off |
| CLASSROOM_MCP_IDLE_SECONDS | No | Close the background browser after this much idle time. | 120 |
| CLASSROOM_MCP_SHOW_BROWSER | No | Set to 1 to show the browser window while it works (handy for debugging). | off |
| CLASSROOM_MCP_MAX_DOWNLOAD_MB | No | Largest attachment read_attachment will download. | 100 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Google Classroom for the signed-in student, read through their own browser on this computer.
Start with list_courses or list_todo. Every item comes with a link; pass it to get_assignment for the
full instructions, attachments and the student's own submission state, and pass attachment links to
read_attachment to read the files.
If a structured tool returns something odd, read_page gives the raw text of any Classroom page.
Turning in work is two steps: prepare_submission, then confirm_submission. Never call
confirm_submission unless the user has explicitly said yes to the summary prepare_submission returned.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| statusA | Check that classroom-mcp is signed in, and which Google account and browser it uses. |
| list_coursesB | List your Google Classroom classes (name, section, teacher, course_id, link). |
| list_todoA | Your Classroom to-do list across all classes. status: "assigned" (not turned in yet), "missing" (past due, not turned in) or "done". Each item has its course, due/posted date and a link for get_assignment. |
| list_postsA | Latest posts on a class's Stream: announcements (full text and attachments) and notices of new assignments and materials, newest first. course_id comes from list_courses (a class link works too). |
| recent_activityA | What was posted in all your classes in the last |
| list_classworkB | Everything on a class's Classwork page (assignments, questions, materials) grouped by topic, with due dates and links. |
| my_gradesA | Your status and grade for every item in one class (Classroom's 'View your work' page). |
| get_assignmentA | Full details of one assignment, question or material: instructions, points, due date, the teacher's attachments, and your own work (state, attached files, what you can do next). link: the item's https://classroom.google.com/... link from another tool. |
| read_attachmentA | Read a file attached in Classroom: pass its Google Drive / Docs / Slides / Sheets link (or file id). Docs and Slides come back as text, Sheets as CSV. Uploaded files (PDF, Word, PowerPoint, code, zip, ...) are saved under classroom-mcp's private cache folder and their local path is returned; .docx, .pptx and text files also come back as text (PDFs too if pypdf is installed). |
| read_pageA | Raw text and links of any classroom.google.com page. A fallback for anything the other tools miss. |
| prepare_submissionA | Step 1 of 2 for turning in or unsubmitting work. Submits nothing. action: "turn_in" or "unsubmit". assignment_link: the assignment's classroom.google.com link. file_paths: for turn_in, absolute paths of local files to attach (optional; with none it is "Mark as done"). They are uploaded and attached as a draft. Returns a summary, a screenshot path and a token. Show the summary to the user and ask them to confirm before calling confirm_submission. |
| confirm_submissionA | Step 2 of 2: actually press Turn in (or Unsubmit). Only call this after the user has explicitly agreed to the summary from prepare_submission, using its token. Tokens expire after 15 minutes. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Most tools target a clearly distinct resource (courses, todo, classwork, grades, attachments, assignment details, auth status), and the two-step prepare_submission/confirm_submission is explicitly delineated. The main overlap is list_posts vs recent_activity (per-class stream vs cross-class recent stream) and to some degree list_todo vs my_grades, though the descriptions clarify these.
Nearly all names follow a snake_case verb_noun pattern (list_courses, list_todo, read_attachment, get_assignment, prepare_submission). A few break the pattern with noun-only names (my_grades, status, recent_activity), but conventions remain consistent and readable.
Twelve tools is well within the sweet spot and each tool maps to a distinct user-facing task in a student's Classroom workflow. Nothing feels redundant or padded.
The surface covers discovery (courses, posts, classwork, todo, activity), inspection (assignment details, attachments, grades), and submission with a confirm step, plus a read_page fallback for dead ends. Minor gaps remain around write actions like commenting/posting or answering questions, but core lifecycles are covered.