classroom-mcp
Read-only Gmail integration (gmail.readonly scope): search mail using Gmail query syntax (e.g. is:unread newer_than:7d, from:prof@uni.edu), read a single email including headers, text body and attachment list, fetch an entire conversation thread, and list labels. Cannot send, delete, or mark mail as read.
Read-only Google Classroom integration: check sign-in status and granted permissions, list active courses, list assignments due within the next N days across all courses with submission status, list all coursework in a course (due date, status, grade, description, attachments), read recent stream announcements, and list class materials grouped by topic. No Google Drive/slide access.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
classroom-mcp (Classroom + Gmail, headless fork)
A read-only MCP server for a student's Google Classroom and Gmail, built to run on a server (for example in Obot) without a browser.
Fork of Mattlo0546/classroom-mcp (MIT). Changes from upstream:
Credentials come from environment variables, and the access token is kept in memory only.
No Google Drive access: the slide download and sync tools are removed.
Adds read-only Gmail tools (
gmail.readonly: it can't send, delete, or mark mail as read).Tool ids are validated before they go into a request URL, and in-flight calls finish when stdin closes.
It is still a single Python file with no dependencies, and it only talks to accounts.google.com,
oauth2.googleapis.com, classroom.googleapis.com and gmail.googleapis.com.
Tools
Tool | What it does |
| Signed in or not, which account, whether Classroom and Gmail are allowed |
| Active courses |
| Assignments due in the next N days (default 14) across all courses, with submission status |
| Every assignment in one course: due date, status, grade, description, attachments |
| Recent stream posts in one course |
| Class materials in one course, grouped by topic |
| Search mail with Gmail syntax ( |
| One email: headers, text body, attachment list |
| A whole conversation |
| Labels |
Related MCP server: google-classroom-student-mcp
Setup
1. Google OAuth client (once)
Google Cloud Console: create or pick a project. A personal Gmail account is fine; it doesn't have to be the school account.
APIs & Services → Library: enable Google Classroom API and Gmail API.
Google Auth Platform → Audience: External, and add the school address under Test users. Then press Publish app so the sign-in doesn't expire every 7 days (it stays private; you'll see an "unverified app" warning once).
Clients → Create client → Desktop app → download the JSON to
~/.config/classroom-mcp/client_secret.json.
2. Sign in on your own computer (once)
uvx --from git+https://github.com/zxsleebu/classroom-mcp.git@eb0098d1dfb90dcc493cbeb184688faeb7ec1db3 classroom-mcp login
# without mail: … classroom-mcp login --no-gmailA browser opens: choose the school account and allow access. The token lands in
~/.config/classroom-mcp/token.json; its refresh_token is what the server needs.
If Google says "Access blocked: … not approved by your admin" / "admin_policy_enforced", the school blocks
third-party apps. Gmail is a "restricted" scope, so try --no-gmail: some schools allow Classroom but not mail.
3. Run it
Environment variables:
Variable | Value |
|
|
|
|
|
|
Due dates are returned in UTC; the AI client converts them to local time. Command: classroom-mcp (stdio). Without the variables it falls back to the local client_secret.json and
token.json, so claude mcp add classroom -- classroom-mcp works on your own computer too.
Security notes
Email and announcement text is written by other people. An AI client can be steered by text inside a message (prompt injection), so be careful about giving the same agent tools that send messages elsewhere.
Revoke access any time at myaccount.google.com/permissions.
Development
python3 tests/test_classroom.py # offline: MCP protocol and all tools against canned Google responsesMIT licensed. Not affiliated with Google.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only access to a student's recorded classes: transcripts, notes, slides and concept map.
Read students, guardians, classes, attendance, assignments and fees; add notes in DreamClass.
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Read your plat.plus courses, tasks, course pages, sessions, files and messages. Read-only.
Related MCP Servers
- AlicenseAqualityBmaintenanceGives MCP-capable agents read-only access to a Google Classroom account, exposing courses, coursework, due dates, announcements, rosters and student submissions as callable tools. Nothing can be created, edited or deleted through it.8MIT
- AlicenseAqualityBmaintenanceLets AI apps read a student's Google Classroom data, including active classes, to-do and missing assignments, upcoming due dates, grades on returned work, and announcements. It is read-only, so it can never turn in, edit, or delete anything.14103 npmMIT
- AlicenseBqualityBmaintenanceEnables AI assistants to read a student's upcoming and overdue assignments, events, courses, and course materials using their own sign-in and no API key, while remaining read-only.3MIT
- AlicenseAqualityBmaintenanceLets AI assistants read a student's grades, assignments, attendance, and schedule from the district portal through a headless browser, with read-only access.3MIT