google-classroom-student-mcp
A read-only Google Classroom MCP server that lets students ask an AI about classes, assignments, due dates, missing work, grades, feedback, materials, announcements, and grade targets.
List active classes and course IDs.
Show work not turned in, with Classroom links.
Export upcoming due dates as an ICS calendar file.
Show upcoming due dates and overdue/missing assignments.
List class assignments and full details/attachments for one assignment.
Check submission status, lateness, grade, and teacher comments.
Summarize grades and calculate points needed for a target grade.
Show recent announcements, course materials with Drive links, and class teachers.
Provide a catch-up digest of new announcements, grades, overdue work, and upcoming due dates.
Read-only access to a student's Google Classroom account: lists active courses, homework not yet turned in, upcoming and missing/overdue assignments with due dates, points earned on returned work (grades), recent announcements, and posted course materials.
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-student-mcp What do I still need to turn in for all my classes?"
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 server for students
Ask your AI what's actually left to do in Google Classroom.
npx google-classroom-student-mcp setupThat one command prints the config for your AI app. Details are in Quick start with npx.
This is the Google Classroom MCP server: a free, open source MCP server that lets Claude Desktop, Claude Code, Cursor and other MCP apps read your Classroom classes, assignments, due dates, missing work, grades on returned work with the comments your teachers leave on them, the points you need to reach a target grade, announcements, course materials and a catch up digest. It is read only. It can never turn in, edit or delete anything. Not affiliated with Google.
Free forever. No sign up and no subscription. Your login details only ever go to Google.
Try it now
Ask these right after setup:
"What do I still need to turn in?"
"What's overdue?"
"What's due this week across all my classes?"
"What did my teacher say about my work?"
"What do I need to score to get a 90?"
"What's new since yesterday?"
Sample answer
The third question goes to get_upcoming_due_dates. It reads your classes and prints one line per assignment, soonest first. Here is what an answer looks like:
- Essay outline (English) due Fri, Oct 23
- Lab write up (Biology) due Fri, Oct 23, 11:59 p.m. UTC
- Problem set 4 (Calculus) due Mon, Oct 26Every line has the assignment title, the class and the due date. Work you already turned in is left out. Pass days_ahead set to 7 to that tool for a week ahead. Classroom keeps due times in UTC, and the server prints them in your own time zone. More sample answers are in Questions students ask.
Related MCP server: google-classroom-mcp
Quick start with npx
Install the Google Classroom MCP server with npx, then add it to your AI app. Run npx google-classroom-student-mcp setup to print the config blocks below, with the three Google values filled in when they are set in your environment. Pick your app.
Claude Desktop
Add this to claude_desktop_config.json:
{
"mcpServers": {
"classroom": {
"command": "npx",
"args": ["-y", "google-classroom-student-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-id",
"GOOGLE_CLIENT_SECRET": "your-secret",
"GOOGLE_REFRESH_TOKEN": "paste-from-login"
}
}
}
}Claude Code
Run this one command:
claude mcp add google-classroom-student-mcp \
-e GOOGLE_CLIENT_ID=your-id \
-e GOOGLE_CLIENT_SECRET=your-secret \
-e GOOGLE_REFRESH_TOKEN=paste-from-login \
-- npx -y google-classroom-student-mcpOr put the same JSON block as Claude Desktop in a .mcp.json file in your project folder, or run claude mcp add-json with it.
Cursor
Put this in .cursor/mcp.json in your project folder, or in ~/.cursor/mcp.json to use it everywhere:
{
"mcpServers": {
"classroom": {
"command": "npx",
"args": ["-y", "google-classroom-student-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-id",
"GOOGLE_CLIENT_SECRET": "your-secret",
"GOOGLE_REFRESH_TOKEN": "paste-from-login"
}
}
}
}Other MCP apps take the same mcpServers JSON, with command set to npx and args set to ["-y", "google-classroom-student-mcp"].
Setup (about 10 minutes, one time)
Google makes every app ask for its own permission, so you create a small private "app" that only you use.
Go to the Google Cloud console and create a project.
Turn on the Google Classroom API for it (APIs & Services > Library).
Under APIs & Services > OAuth consent screen, set it up as External, and add your own Google account as a test user.
Under Credentials, create an OAuth client ID of type Desktop app. Copy the client ID and secret.
Run the one time sign in:
GOOGLE_CLIENT_ID=your-id GOOGLE_CLIENT_SECRET=your-secret npx google-classroom-student-mcp loginOpen the link it prints, approve read only access, and copy the three values it prints.
Optional: set CLASSROOM_TIMEZONE to a time zone name such as America/Toronto. Work with a due date but no due time counts as due at the end of that day in this zone. Without it, the time zone of the computer running the server is used.
Add them to your AI app's MCP config. Run
npx google-classroom-student-mcp setupand paste the block for your app, or use one of the formats from the Quick start above.Restart your AI app and ask "what's due this week?"
Run npx google-classroom-student-mcp doctor any time to check that your setup works.
Quick test without the app setup: set
GOOGLE_ACCESS_TOKENto a token from the OAuth Playground with the Classroom read only scopes. It stops working after about an hour.
Questions students ask
Here are the questions students ask, and the tool that answers each one. The answer comes back in the chat, ready to read.
Your question | Tool | What the answer holds |
"What do I still need to turn in?" |
| Every assignment you have not handed in, with a link to open it in Classroom |
"What does this assignment ask for?" |
| The teacher's description, the files and links attached to it, its due date, points and your status |
"Can you give me my due dates as a calendar file?" |
| Build an ICS calendar file of upcoming due dates |
"What's overdue?" |
| Work that was due and is still not handed in |
"What's due this week across all my classes?" |
| Work that is due soon, soonest first |
"What did my teacher say about my work?" |
| The comment the teacher left on the graded work, with the score and a link to open it in Classroom |
"What do I need to score to get a 90?" |
| The points you need on the work that is left to reach that percent in each class |
"What did my teachers post lately?" |
| Recent announcements from every class |
"What's new since yesterday?" |
| New announcements, new grades, overdue work and what is due next |
Here is what the answers look like.
Sample answer for get_todo
The question "What do I still need to turn in?" goes to get_todo. It prints everything you have not handed in, and it puts the Classroom page of each one under the title so you can open the work itself.
0 due today, 2 overdue
- Lab safety form (English) due Fri, Oct 9
link: https://classroom.google.com/c/English/course/1/courseWork/w2
- Chapter 3 questions (Biology) due Mon, Oct 19
link: https://classroom.google.com/c/Biology/course/2/courseWork/w4
- Essay outline (English) due Fri, Oct 23
link: https://classroom.google.com/c/English/course/1/courseWork/w1
- Lab write up (Biology) due Fri, Oct 23, 11:59 p.m. UTC
link: https://classroom.google.com/c/Biology/course/2/courseWork/w3
- Problem set 4 (Calculus) due Mon, Oct 26
link: https://classroom.google.com/c/Calculus/course/3/courseWork/w5The first line counts what is due today and what is overdue. Work you already turned in is left out, and work with no due date goes last. Pass course_ids to check a few classes only. You can also pass course_name, for example Biology, to pick a class by part of its name without looking up its ID first.
Sample answer for get_missing_assignments
The question "What's overdue?" goes to get_missing_assignments. It prints the work that was due and is still not handed in, the most recent due date first.
- Chapter 3 questions (Biology) was due Mon, Oct 19
- Lab safety form (English) was due Fri, Oct 9Sample answer for get_whats_new
The question "What's new since yesterday?" goes to get_whats_new. It prints one digest with new announcements, new grades, overdue work and what is due next. The times in this sample are in UTC.
New announcements (last 7 days)
- Biology (Wed, Oct 21, 8:00 a.m. UTC) Field trip permission slip due Friday
- English (Tue, Oct 20, 9:00 a.m. UTC) Bring your textbook
New grades (last 7 days)
- Midterm review (Calculus) graded 88/100 on Tue, Oct 20, 3:00 p.m. UTC
teacher said: Good work on the analysis. Watch the units on question 3.
link: https://classroom.google.com/c/Calculus/course/3/courseWork/w6
Overdue work
- Chapter 3 questions (Biology) was due Mon, Oct 19
- Lab safety form (English) was due Fri, Oct 9
Due next (14 days)
- Essay outline (English) due Fri, Oct 23
- Lab write up (Biology) due Fri, Oct 23, 11:59 p.m. UTC
- Problem set 4 (Calculus) due Mon, Oct 26Pass since_days to look further back and days_ahead to look further ahead.
Tools
All tools are read only.
Tool | What it does |
| Your active classes and their IDs |
| Everything assigned that you haven't turned in |
| Build an ICS calendar file of upcoming due dates |
| Work due soon, soonest first |
| Past due work you haven't turned in |
| Assignments for a class with due dates and status |
| Everything about one assignment: description, attachments, due date, points and status |
| Did your teacher get your work: turned in time, late flag, grade and the teacher's comment for one assignment |
| Points earned on returned work for each class, with the comment the teacher left |
| Points needed on the work left to reach a target percent |
| Recent announcements |
| Materials posted in a class |
| Teachers of a class with their email when Classroom shares it |
| One catch up digest: new announcements, new grades, overdue work and what is due next |
The same list is in plain text in llms.txt, one line per tool with its description and the arguments it takes. That file ships with the package, so site indexes and AI apps that read plain text files can pick it up.
get_todo, get_assignments, get_assignment_details, get_announcements and get_course_materials print the Classroom page of each item under the title, so the AI can hand the student a direct link to the work. get_course_materials also prints the Drive link of every file attached to a material. Classroom sends a link only for published items.
Google Classroom has no overall course grade, so get_my_grades adds up graded work only and says so. When a class weights its work by grading category, it also prints a weighted percent, using only the categories that have graded work. get_target_grade still uses plain points.
get_my_grades and get_whats_new print what the teacher wrote when they returned the work, under the score, with the Classroom page of the work. get_my_grades lists the graded work that has a comment under each class.
get_todo, export_due_dates_calendar, get_upcoming_due_dates, get_missing_assignments, get_my_grades, get_target_grade and get_whats_new accept an optional list of course IDs (course_ids), so you can ask about a few classes only instead of all of them. get_upcoming_due_dates and get_whats_new also accept an optional number of days to look ahead (days_ahead). get_announcements and get_whats_new also accept an optional number of days to look back (since_days), which defaults to 7 days in the digest and means no date filter in announcements. get_announcements and get_course_teachers accept course IDs (course_ids) too. get_course_teachers also accepts course_name. get_target_grade takes a required target_percent from 0 to 100, which is the class percent you want.
get_target_grade adds up the points earned on graded work and the points the work that is left is worth. It then works out how many of those points you need to reach target_percent. Work counts as left when it has points and no grade yet, and work the teacher already returned without a grade is left out. If the target needs more points than the work left is worth, the answer says so and gives the best percent you can still reach. The server only sees the points on each piece of work, not any weighting the teacher may use, so the answer counts every point the same.
get_whats_new is the catch up digest. It prints new announcements, new grades with the comment the teacher left, overdue work and what is due next in one answer. An announcement counts as new when it was posted or changed inside the window. The date of a new grade comes from the teacher's comment on the work when there is one, otherwise from the last change to the assignment. The comment itself is printed under the grade.
Google Classroom vs Brightspace MCP
Google Classroom and D2L Brightspace are different platforms, so they need different servers. This one reads Google Classroom. The Brightspace MCP reads D2L Brightspace. Here is how they line up.
Google Classroom MCP (this one) | Brightspace MCP | |
Platform | Google Classroom, the one inside Google Workspace for Education | D2L Brightspace, common in colleges and universities |
Install |
|
|
Sign in | You make your own OAuth app in the Google Cloud console, run one time sign in, then paste the client ID, the client secret and the refresh token | You pick your school and sign in with your own school account in a browser window. Any sign in method your school uses works, and your password is never stored |
After setup | While your Cloud app is in testing mode, Google expires the refresh token every 7 days, so you run the login command again now and then | It stays signed in quietly, and a browser window only opens when your school asks you to sign in again |
What your school has to do | Nothing. Your own Google account and your own Cloud project are enough, though a school admin can block third party apps | Nothing. It uses your own student sign in, so no API key from an administrator is needed |
Classes and work | Active classes, then every assignment with its due date, its points, whether you turned it in and a link to open it in Classroom | Enrolled courses, then assignments and quizzes with the real submission status of each one |
Grades | Points earned on returned work, added up per class, plus a target grade tool that says how many points you need on the work that is left. Google Classroom has no overall grade, so the percentage is only over graded work | Grade breakdown per course with points, percentages and instructor comments, plus a target grade tool that tells you what you need on the work that is left |
News | Recent announcements, and a catch up digest with new announcements, new grades, overdue work and what is due next | Recent announcements, and a catch up digest that also covers newly marked work, unread discussions and quizzes you have not tried yet |
Course files | Materials posted in a class, each with a link to open it and the Drive link of every attached file | Course modules, files, links, the syllabus, the files attached to an assignment, discussions, class lists and calendar events such as exams and labs. It can also save a course file to a folder you pick and build a calendar file of your deadlines |
Read only | Yes, it can never turn in, edit or delete anything | Yes, it only reads from Brightspace |
Price and license | Free forever, open source, MIT license | Open source, MIT license, and it runs on your own computer |
Both servers only read, so neither one can hand in your work for you. If your classes are in Google Classroom, install this one. If your school runs D2L Brightspace, install the Brightspace MCP instead.
Other Brightspace servers exist too, such as brightspace-mcp-server and brightspace-mcp. The author keeps a side by side comparison of them at brightspace-mcp.netlify.app/compare.
Privacy and security
Your credentials stay on your computer and are only sent to Google.
Nothing is sent to any other server by this project.
Only read only permissions are requested. Remove access any time at myaccount.google.com/permissions.
Troubleshooting
Message | Fix |
Not signed in | Run |
Sign in failed, expired or revoked | While your app is in testing mode, Google expires refresh tokens after 7 days. Run |
Access denied | Your school's Google admin may block third party apps. Ask your admin or use a personal account. |
Not found | Check the course or item ID in your request. |
Rate limited | Too many requests. Wait a minute and try again. |
Google did not return a refresh token | Remove the app from your connected apps and run |
Development
npm install
npm run build
npm testTests run against a fake Google server, so they need no account or network. Other tests check that the tool table in this README, llms.txt and glama.json still list every tool, that the tool descriptions in llms.txt and glama.json match the code, that every sample answer in this README and in llms.txt matches what the tool really prints, and that the version matches package.json.
The version that --version prints and the MCP handshake sends comes from package.json, so bump the version there and nowhere else.
The test runner needs Node 22.12 or newer. The server itself runs on Node 20 or newer.
More free student MCP servers
All free, open source and read only where they touch your accounts. Browse the full list at brightspacemcp.com/more-mcps.
This server is also listed in the Smithery, Glama and mcp.so directories.
Server | What it does |
D2L Brightspace for AI. Due dates with real submission status, grades, a target grade calculator and course files. | |
Canvas LMS for AI, read only. Due dates, missing work, grades and announcements. | |
Moodle for AI, read only. Due dates, overdue work, grades and announcements. | |
GPA, grade conversion and the grade you need on the final, for AI. Works offline, no account. | |
APA, MLA and Chicago citations from a DOI, an ISBN or typed details. No account. | |
Exam study schedules, spaced repetition dates, pomodoro plans and assignment milestones. Works offline. | |
Search scholarly papers, find open access copies and related work through OpenAlex. No key needed. | |
Clean, convert, dedupe and lint BibTeX, RIS and CSL JSON reference lists, and make cite keys. Works offline. | |
Find free legal copies of textbooks on OpenStax, DOAB and Open Library, look up editions by ISBN and suggest cheaper older ones. | |
Chemistry and physics homework math: molar mass, balancing equations, grams to moles, unit conversion and significant figures. Works offline. | |
Offline writing metrics for essays. Word and page counts, readability scores, passive voice, repeated openers, filler words, long sentences and word limit checks, so students can check their work against assignment requirements. No account, no network. | |
Syllabus to calendar MCP server. Extract dates from syllabus text, build an ics calendar, expand recurring classes and merge calendars. Works offline, no account. | |
Job application tracker MCP server. Track internships, jobs, interviews and deadlines offline, see what is coming up, and export your list as CSV or Markdown. No account and no API keys. |
Picking between the two school platforms? See Google Classroom vs Brightspace MCP.
License
MIT
Available Tools
14 toolsexport_due_dates_calendarExport due dates calendarARead-only
Build an ICS calendar file of upcoming due dates so they can be imported into a calendar app. Pass course_ids to limit it, or leave empty for all active classes. Use this when the user asks 'Can you give me my due dates as a calendar file?'
Inputs: course_ids, course_name.
get_announcementsAnnouncementsARead-only
Recent announcements, each with a link to open it in Classroom. Pass course_ids or since_days to limit how far back they go, or leave empty for all active classes. Use this when the user asks 'Did my teacher post anything new?' or 'What did my teacher announce?'
Inputs: offset, course_ids, since_days.
get_assignment_detailsAssignment detailsARead-only
Everything about one assignment: what the teacher wrote in the description, the files and links attached to it, its due date, points and your status. Pass the course ID and the assignment ID. Use this when the user asks 'What does this assignment ask for?' or 'What do I need to turn in?' about one specific assignment.
Inputs: course_id (required), course_work_id (required).
get_assignmentsClass assignmentsARead-only
Assignments for one class, picked by course_id or course_name, with due dates and status, each with a link to open it in Classroom. Use this when the user asks 'What's due in this class?' or wants every assignment and its points for a single class.
Inputs: course_id, course_name.
get_course_materialsClass materialsARead-only
Posted materials for one class, picked by course_id or course_name, grouped by topic with the Drive link of every attached file. Use this when the user asks 'What materials did my teacher post?' or 'What did we cover in unit 3?' or wants the readings, slides and handouts for one class.
Inputs: course_id, course_name.
get_course_teachersClass teachersARead-only
Teachers of your classes with their email addresses when Classroom shares them. Pass course_id for one class, or course_ids or course_name for several, and each class gets its own list. With none of them it covers all active classes. Use this when the user asks 'Who teaches this class?' or 'How do I email my teacher?'
Inputs: offset, course_id, course_ids, course_name.
get_missing_assignmentsMissing assignmentsARead-only
Past due work that has not been turned in. Pass course_ids to limit it, or leave empty for all active classes. Use this when the user asks 'What's overdue?' or 'What am I behind on?'
Inputs: offset, course_ids, course_name.
get_my_coursesMy coursesARead-only
List the student's active Google Classroom classes with their IDs. Use this when the user asks 'What classes am I in?' or needs a course ID to pass to another tool.
Inputs: no named parameters.
get_my_gradesMy gradesARead-only
Grades on returned work for each class, with the comment the teacher left on the work. Google Classroom has no overall grade, so this adds up graded work only, and adds a weighted percent when the class uses grading categories with weights. Pass course_ids to limit it, or leave empty for all active classes. Use this when the user asks 'How am I doing in my classes?' or 'What grades have I gotten back?'
Inputs: offset, course_ids, course_name.
get_submission_statusSubmission statusARead-only
Did my teacher get my work? For one assignment, shows whether it is turned in, when it was turned in, whether it was late, the grade if it was returned and the comment the teacher left. Pass the course ID and the assignment ID. Use this when the user asks 'Did my teacher get my work?' or 'Was my assignment marked late?'
Inputs: course_id (required), course_work_id (required).
get_target_gradeTarget gradeARead-only
Points needed on the work that is left to reach a target percent in each class. Adds up the points earned on graded work and the points the work left is worth, then says how many of those points you still need. target_percent is the percent you want, from 0 to 100. Pass course_ids to limit it, or leave empty for all active classes. Use this when the user asks 'What do I need to score to get a 90?' or 'Can I still get an A in this class?'
Inputs: target_percent (required), offset, course_ids, course_name.
get_todoTo-do listARead-only
Everything assigned that the student has not turned in yet, each with a link to open it in Classroom. Pass course_ids to limit it, or leave empty for all active classes. Use this when the user asks 'What do I still have to do?' or 'What's left to turn in across all my classes?'
Inputs: offset, course_ids, course_name.
get_upcoming_due_datesUpcoming due datesARead-only
Work that is due soon and not turned in, soonest first. Pass course_ids or days_ahead to narrow it, or leave both empty. Use this when the user asks 'What's due this week across all my classes?' or 'What's coming up?'
Inputs: offset, course_ids, days_ahead, course_name.
get_whats_newWhat's newARead-only
One catch up digest for every class: new announcements, newly graded work with the comment the teacher left, overdue work and what is due next. Pass course_ids to limit it, since_days for how far back to look and days_ahead for how far ahead to look. Use this when the user asks 'What's new since yesterday?' or 'What changed in my classes?'
Inputs: offset, course_ids, days_ahead, since_days, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools target clearly distinct slices of data (courses, grades, announcements, materials, teachers), and descriptions carefully explain the 'what do I still have to do' vs 'what's due soon' vs 'what's overdue' split. The tightest overlap is get_submission_status vs get_assignment_details, since the latter also reports the student's status, and get_whats_new aggregates several other tools' outputs — an agent may hesitate between the specific and the aggregate.
Every tool is snake_case with a predictable verb_noun shape (get_my_courses, get_todo, get_missing_assignments, get_course_teachers), and the single non-get verb (export_due_dates_calendar) describes a genuinely different action. Scope qualifiers like get_my_* vs get_course_* are used consistently.
14 tools sits in the sweet spot and each one maps to a distinct student question (what am I in, what's due, what's late, what did I get, what's new, who teaches me). The aggregate tools (get_whats_new, export_due_dates_calendar) earn their place as conveniences rather than duplicating surface for its own sake.
Read-only student workflows are well covered end-to-end: discovery of courses, per-class and cross-class assignment views, submission detail, grades, target-grade math, materials, announcements, and teacher contact. Gaps are minor but real — no way to fetch attachment/drive file contents, no archived-course access, and no write/submit operations if the server is intended to grow beyond read-only.
Maintenance
Related MCP Connectors
Read-only access to a student's recorded classes: transcripts, notes, slides and concept map.
Read your plat.plus courses, tasks, course pages, sessions, files and messages. Read-only.
Read students, guardians, classes, attendance, assignments and fees; add notes in DreamClass.
Search university course materials, your flashcards, quizzes, streak and quota. All tools read-only.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to operate Google Classroom, letting users list courses and students, check assignment submissions, and create coursework and announcements through natural language.-
- 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
- AlicenseAqualityBmaintenanceEnables AI apps to read a student's courses, due dates, grades, missing work, announcements, modules, discussions, syllabus, and calendar events in a read-only way. It cannot submit, edit, or delete anything, and credentials go only to the user's own school.21120 npmMIT
- AlicenseAqualityBmaintenanceEnables AI apps to read a student's Moodle courses, upcoming and overdue due dates, assignment submission statuses, course grades, gradebook items and announcements. It is strictly read only, so it can never submit, edit or delete anything.17101 npmMIT