google-classroom-mcp
This server lets MCP clients manage Google Classroom courses, topics, assignments, materials, and announcements, including draft/publish/schedule workflows, plus upload files to Drive and read Google Slides.
Courses: list/search paginated, get details, update name, section, description, room, or state.
Topics: list, get, create, rename/update.
Assignments: list/get, create assignments or short-answer questions, patch fields such as title, description, maxPoints, topic, due date, state, and scheduledTime; support attachments.
Materials: list/get, create with attachments/topic, patch title, description, topic, state, scheduledTime.
Announcements: list, post, edit text/state, schedule or cancel schedule.
All list/search tools return one page with nextPageToken; pass pageToken/pageSize to paginate.
All new posts default to DRAFT; publish immediately with state=PUBLISHED or schedule with RFC 3339 scheduledTime; patch scheduledTime to null to cancel.
File helpers: upload base64 files up to 5 MiB to Google Drive and read Google Slides presentations; attach driveFile, link, youtubeVideo, or form references.
Provides tools for managing Google Classroom courses, topics, assignments, materials, and announcements, including listing, creating, updating, scheduling, and publishing posts.
Allows reading existing Google Slides presentations to access slide content for use in Classroom materials and assignments.
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., "@google-classroom-mcp Create a draft material 'Session 2 resources' with a Google Slides link for my programming course."
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.
Google Classroom MCP
AI-generated project illustration; asset provenance.
From lesson plan to Classroom draft
Prepare tomorrow’s teaching materials from the MCP client you already use. Find the right Google Classroom course, check what is there, and turn your resources into assignment, material or announcement drafts before choosing when to publish.
For teachers and course organizers with teacher access who want an assistant to help prepare Classroom posts. The server runs locally over stdio, connects to your own Google account, and exposes 21 tools with validated inputs.
Teaching task | What the server provides |
Find the right class | Course search by name or section, course details and paginated lists |
Prepare a session | Topics, assignment and material drafts, announcement drafts |
Plan publication | Publish explicitly, schedule a draft, reschedule or cancel its schedule |
Bring the resources | Drive uploads up to 5 MiB, file/link attachments and existing Slides data |
Status: 3.0.0-beta.1 development line (see Development for dependency review). Install from source; this version is not published to npm and the package is intentionally marked private: true. The GitHub repository is public. See release readiness for recorded checks and open gates.
Quickstart · First request · Tool reference · Permissions · Development
flowchart LR
A[Your MCP client] -->|stdio| B[Local Classroom MCP]
B -->|Your OAuth grant| C[Google Classroom]
B -->|Files and presentations| D[Google Drive / Slides]Your MCP client can call write tools with your account’s permissions. New posts default to drafts; publishing is available when explicitly requested.
Related MCP server: ClassroomScribe
Licensing before use
Pengusto Commercial License 1.0 for maintainer-authored extensions; MIT for original upstream code. Running the extensions requires a separate paid written agreement with the maintainer, including local or self-hosted use by educational institutions. Source inspection is permitted. The setup and tool examples below describe capabilities; they do not grant usage rights. See LICENSE for scope and provenance for the upstream boundary. This distribution is source available, not wholly open source.
Example workflow
After setup, ask your MCP client:
Find my programming course and check its existing posts, including drafts. Prepare a draft material titled “Session 2 resources” with the Google Slides link I provide. Show me the result and leave it unpublished.
The client can find the course, inspect each page of posts and create the draft. To schedule it later, provide a publication date, time and timezone. Google still controls access and accepted publication dates.
Quickstart
You need Node.js 24 LTS (Node.js 22 is also checked), Bun 1.4.2, an MCP client that supports local stdio servers, and a Google account with teacher access. You also need a Google Cloud project where you can configure Desktop OAuth; Workspace policy may require administrator approval.
1. Install and check locally
git clone https://github.com/pengusto/google-classroom-mcp.git
cd google-classroom-mcp
bun ci
bun run testThe build is included in bun run test; the tests still run under Node.js. During development, use bun run build or bun run dev.
2. Connect your Google account
Create your own Google Cloud project. Enable the Classroom, Drive and Slides APIs.
Configure the OAuth consent screen and add your Google account as a test user if the app is in testing mode. Your Workspace administrator may restrict access.
Create an OAuth client of type Desktop app. Save its downloaded JSON as
credentials.jsonin the repository root.Run
bun run auth. Complete consent in the browser. The loopback callback uses a temporary port on127.0.0.1, random state and PKCE; it closes after completion or five minutes. The command savestoken.jsononly after verifying access.
Keep both files private. They are ignored by Git. To store them outside the checkout, set GOOGLE_CREDENTIALS_PATH and GOOGLE_TOKEN_PATH to absolute paths for both authentication and the MCP process. A local .env can supply these variables when commands run from the repo root; clients launched elsewhere should pass them explicitly.
3. Register the server in your MCP client
Adapt this configuration to your client. Replace every /path/to/… value with an absolute path on your machine. The example uses credentials outside the checkout; use the same paths during bun run auth. Launch the built JavaScript with Node, as shown here.
{
"mcpServers": {
"google-classroom": {
"command": "node",
"args": ["/path/to/google-classroom-mcp/dist/index.js"],
"env": {
"GOOGLE_CREDENTIALS_PATH": "/path/to/private/credentials.json",
"GOOGLE_TOKEN_PATH": "/path/to/private/token.json"
}
}
}
}First request: start with a read
Restart or reconnect your MCP client, then ask:
List one page of my Classroom courses. Do not change anything. Tell me whether there are more pages.
The corresponding tool call is classroom_list_courses with:
{"pageSize": 1}Expect an items array and a nextPageToken that is either a string or null. Once the connection works, try the draft workflow with a course you have chosen. Read the pagination rules before asking the client to inspect all existing posts.
Diagnose setup without opening a browser
Run bun run doctor with the same environment as your MCP client. It checks OAuth files/scopes and makes small read-only Classroom and Drive requests. It never starts a consent flow or creates posts. Errors distinguish missing files, invalid JSON, permissions, revoked access and API configuration. It does not print credential values or course content. Slides and participant access need separate checks.
Restart the MCP connection after rebuilding. The server uses stdout only for MCP messages; operational messages go to stderr.
Available tools
The authoritative argument schemas are returned by tools/list. Unknown arguments and invalid types, dates or change masks are rejected before contacting Google.
Area | Tools |
Courses |
|
Topics |
|
Assignments |
|
Materials |
|
Announcements |
|
Files and slides |
|
Roster management, grading, guardians and deletion tools are not included. Assignments support ordinary assignments and short-answer questions; multiple-choice creation is not offered in this beta.
Read every page
All list tools and course search return one page:
{"items": [], "nextPageToken": "next-page-token"}Pass nextPageToken as pageToken in the next call, retaining the same filters and pageSize. Stop only when the token is null. Search filters one Google page at a time, so an empty items array can still have a continuation token. pageSize defaults to 50 and accepts 1–100; fullData: true requests complete objects, which can be large.
Assignment, material and announcement lists include published posts and drafts by default. Override courseWorkStates, courseWorkMaterialStates or announcementStates to narrow the result. Google still enforces what your account may see.
Prepare, then publish
New assignments, materials and announcements default to DRAFT. Pass state: "PUBLISHED" explicitly to publish now. To schedule, provide an RFC 3339 scheduledTime with timezone; do not combine it with state: "PUBLISHED".
{
"courseId": "course-id",
"title": "Session materials",
"state": "DRAFT",
"attachments": [{"type": "driveFile", "idOrUrl": "drive-file-id"}]
}Use that payload with classroom_create_material to prepare an unpublished material. For scheduling, add scheduledTime with your intended upcoming publication time, including its timezone; do not copy a fixed example date. Existing assignment, material and announcement posts can be updated by ID with an updateMask, for example "scheduledTime", plus the named field. To cancel a scheduled publication, patch scheduledTime with null; the server sends the field mask without a timestamp. Very distant publication dates can be rejected by Google. Every mask field must be supplied; empty strings can clear supported text fields. Due dates and times use UTC, independently of the scheduled publication timezone.
Before writing, inspect all existing pages and drafts. After an uncertain response, re-read the target before retrying: the operation may have succeeded. This server does not claim exactly-once creation or automatically deduplicate posts. Google can restrict modifications to posts created by the same developer project. Classroom's visible order must be checked separately from API response order.
Attach a file
Call drive_upload_file with name, optional mimeType and canonical base64Content, up to 5 MiB decoded. Save the returned file ID, then attach it in a separate material or assignment call. The server does not delete the uploaded file if attaching it fails. Larger files can be uploaded through Drive and referenced by ID.
Attachment types are driveFile, link, youtubeVideo and form, each with idOrUrl. External links must use HTTP or HTTPS. Verify participant access separately; a teacher's ability to read a file does not prove students can open it.
Permissions and limitations
OAuth requests Classroom read/write scopes for courses, student coursework, materials, topics and announcements, plus drive.file and drive.readonly. The latter permits broad read access to Drive files and supports reading existing Slides. The server does not request roster, guardian or profile scopes. Google credentials may carry permissions beyond the exposed tools; keep tokens private.
The server stores OAuth tokens locally with owner-only permissions and persists refreshed tokens. It does not log API response bodies or credential values. Authentication failures include next steps; uncertain write failures instruct the caller to verify the target. See SECURITY.md.
Offline tests validate MCP behavior, request construction, upload bytes and token handling. Draft creation, scheduled-time changes, cancellation and a real file attachment have also been verified in a dedicated Google test course. Fresh Google consent, automatic publication at the scheduled time and participant file access remain separate release checks. See docs/RELEASE.md.
Troubleshooting
Symptom | Next check |
OAuth file missing or invalid | Check the absolute paths passed to both authentication and the MCP client; use downloaded Desktop credentials |
Access denied | Check enabled APIs, granted scopes, teacher role, consent test users and Workspace policy |
Expired or revoked grant | Run |
Server still exposes old behavior after a change | Run |
A search page is empty but has a token | Continue with |
Name displayed as “Unknown User”
When using this integration, Google Classroom may display a name as “Unknown User”. This has been reported as potentially dependent on Google Workspace administrator settings; the exact cause and affected settings have not yet been independently verified. If it occurs, ask your Workspace administrator to review the relevant account and application settings. No confirmed workaround is documented yet.
Development
See CONTRIBUTING.md. Run bun run test and git diff --check before submitting changes. CI runs on Node 22 and 24 and includes a redacted Gitleaks scan. The full dependency audit runs in CI. The 2026-10-23 cleanup removes the legacy local-auth helper and its uuid dependency chain; bun audit reports no findings for the refreshed lockfile. Desktop login uses the Google OAuth client already provided by googleapis, with the same credential files, scopes and token persistence. See release readiness for the review and test limits. Audit results are time-specific package checks, not a security guarantee or proof of exploitability.
Migrating from 2.x
List responses changed from arrays to
{items, nextPageToken}. Traverse pages explicitly.New posts default to drafts; immediate publication is explicit.
Announcement patches require
updateMaskand support state/scheduling.Unsupported administrative tools and inherited live tests targeting a hard-coded course were removed.
bun run authbuilds before login. Only Desktop OAuth credentials are supported.
No legacy response adapter is included.
License and attribution
Based on adriasantacreu/google-classroom-mcp, commit 29c2c2a07670692da28d3fdcee38cb7a54c8f18a.
Original work by Adrià Santacreu i Giménez and contributors remains under
MIT. Pengusto's own extensions in this distribution
are covered by Pengusto Commercial License 1.0. The two licenses apply
to different portions;
they are not alternative licenses for the whole project. See
provenance. This is an independent project, not an official
Google product.
Available Tools
21 toolsclassroom_create_assignmentB
Create an assignment or question with optional attachments, due date, and topic.
Inputs: title (required), courseId (required), state, dueDate, +7 more.
classroom_create_materialB
Create a study material post with optional attachments and topic.
Inputs: title (required), courseId (required), state, topicId, +3 more.
classroom_create_topicB
Create a new topic/unit in a course.
Inputs: name (required), courseId (required).
classroom_get_assignmentARead-only
Get full details of a specific assignment by ID.
Inputs: id (required), courseId (required).
classroom_get_courseARead-only
Get full details of a specific course by ID.
Inputs: courseId (required).
classroom_get_materialARead-only
Get full details of a specific course material by ID.
Inputs: id (required), courseId (required).
classroom_get_topicBRead-only
Get details of a specific topic by ID.
Inputs: id (required), courseId (required).
classroom_list_announcementsARead-only
List announcements for a course. Returns one page as {items, nextPageToken}; continue until nextPageToken is null.
Inputs: courseId (required), fullData, pageSize, pageToken, +1 more.
classroom_list_assignmentsARead-only
List coursework (assignments/questions) for a course. Supports filtering by state. Returns one page as {items, nextPageToken}; continue until nextPageToken is null.
Inputs: courseId (required), fullData, pageSize, pageToken, +1 more.
classroom_list_coursesARead-only
List all Google Classroom courses. Supports filtering by state (ACTIVE, ARCHIVED, PROVISIONED). Returns one page as {items, nextPageToken}; continue until nextPageToken is null.
Inputs: fullData, pageSize, pageToken, courseStates.
classroom_list_materialsARead-only
List all non-graded materials for a course. Returns one page as {items, nextPageToken}; continue until nextPageToken is null.
Inputs: courseId (required), fullData, pageSize, pageToken, +1 more.
classroom_list_topicsARead-only
List all topics in a course. Returns one page as {items, nextPageToken}; continue until nextPageToken is null.
Inputs: courseId (required), fullData, pageSize, pageToken.
classroom_patch_announcementB
Edit an existing announcement.
Inputs: id (required), courseId (required), updateMask (required), text, +2 more.
classroom_patch_assignmentA
Update specific fields of an existing assignment using updateMask.
Inputs: id (required), courseId (required), updateMask (required), state, +7 more.
classroom_patch_materialC
Update fields of an existing material post.
Inputs: id (required), courseId (required), updateMask (required), state, +4 more.
classroom_patch_topicC
Rename or update a topic.
Inputs: id (required), name (required), courseId (required).
classroom_post_announcementC
Post an announcement to the course stream.
Inputs: text (required), courseId (required), state, scheduledTime.
classroom_search_coursesARead-only
Search courses by name or section (client-side filter, case-insensitive). Returns one page as {items, nextPageToken}; continue until nextPageToken is null.
Inputs: query (required), fullData, pageSize, pageToken.
classroom_update_courseC
Update course fields (name, section, description, room, state). State can be ACTIVE or ARCHIVED.
Inputs: courseId (required), name, room, state, +2 more.
drive_upload_fileA
Upload a base64-encoded file to Google Drive. Returns the Drive file ID and URL.
Inputs: name (required), base64Content (required), mimeType.
slides_get_presentationARead-only
Read a Google Slides presentation by ID, including its slide text and structure.
Inputs: presentationId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools map to a clear resource and action, and the list/search course tools are distinct enough based on their descriptions. The main ambiguity is between update_course and the various patch_* tools, which are not obviously differentiated by name alone.
The set mostly follows a snake_case verb_noun pattern with a classroom_ prefix, and slides_/drive_ for external resources. The inconsistency between update_course, patch_* operations, and post_announcement is noticeable but not chaotic.
At 21 tools, the server is in the 16-25 range that feels heavy. Each Classroom resource has multiple operations and Slides/Drive add extra breadth, but the count is borderline rather than clearly well-scoped.
There are significant lifecycle gaps: no create_course, no get_announcement, and no delete operations for assignments, topics, materials, or announcements. Agents will hit dead ends when trying to remove resources or perform common classroom management workflows.
Maintenance
Related MCP Connectors
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Teachable MCP server for ChatGPT, Claude and any AI agent: update lecture, create coupon, send email, reply to comment and list enrollments in your own Teachable account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Teachable yourself; Cotlet does not store your password and you need no Teachable API key. About the official Teachable API: Teachable has a public API, but only on the Growth plan and up, and it reads courses and lecture content and manages users, enrollments, pricing plans and transactions (checked 11 Oct 2026). Lesson editing, coupons, emails to students and comments are not in it. Setup and FAQ: https://cotlet.dev/integrations/teachable-api-mcp-server
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Manage your Canvas coursework with quick access to courses, assignments, and grades. Track upcomin…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis MCP server provides comprehensive read and write access to Google Classroom, enabling management of courses, rosters, assignments, and grades. It supports full lifecycle operations for educational environments including student submissions, teacher invitations, and coursework organization.-
- FlicenseNot gradedqualityDmaintenanceIntegrates Google Classroom with LLMs and AI agents via MCP. Enables listing courses, assignments, announcements, and generating prioritized TODO summaries.1-
- AlicenseNot gradedqualityCmaintenanceEnables students to access Google Classroom through MCP, listing courses, upcoming assignments, tasks, grades, announcements, materials, topics, and teachers, with optional tools to submit or cancel submissions.MIT
- AlicenseAqualityBmaintenanceEnables students to query Google Classroom courses, pending assignments, grades, announcements, and materials, and to attach files or submit assignments, with support for multiple Google accounts from any MCP client.9MIT