Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GCLASSROOM_BROWSERNoOne of chrome, brave, edge, arc, chromium or vivaldi. The server reads and decrypts the cookies straight from that browser's profile (macOS and Linux; on macOS it asks for Keychain access once).
GCLASSROOM_COOKIESNoA raw Cookie header value copied from DevTools (Network tab → any classroom.google.com request → Request Headers → cookie).
GCLASSROOM_USER_IDNoOverride your Classroom user id. It's normally detected from the page.
GCLASSROOM_AUTHUSERNoThe account index if you're signed in to several Google accounts (the N in /u/N/). Default 0.0
GCLASSROOM_COOKIES_FILENoPath to a cookies export: Netscape cookies.txt, a JSON array from a cookie-export extension, or a plain Cookie: header.
GCLASSROOM_DOWNLOAD_DIRNoWhere download_file saves files. Default ~/Downloads/classroom-mcp.~/Downloads/classroom-mcp
GCLASSROOM_BROWSER_PROFILENoChoose another browser profile for GCLASSROOM_BROWSER, for example Profile 1.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Student-side Google Classroom access using the user's own signed-in session. Start with list_courses or list_todo. Course and item arguments accept numeric ids, classroom.google.com links, or (for courses) part of the class name. Write tools act on the user's real account: confirm with the user before turning in, unsubmitting, posting comments, or leaving a class.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
whoamiA

Show the signed-in Classroom account (user id, name, email).

list_coursesB

List the classes you are enrolled in (id, name, section, room, teacher/owner id, link).

get_courseB

Details for one class, including your class Drive folder and the teacher names.

list_course_peopleA

List the teachers and classmates in a class (names; emails when Classroom exposes them).

list_topicsB

List the classwork topics of a class.

get_streamB

Read the class stream: announcements and posts, newest first, with full text.

list_classworkA

List the Classwork page of a class: assignments, questions and materials grouped by topic. Pass topic to page through one topic (use topic "none" for items with no topic).

list_todoB

Your to-do list across classes (or one class): assigned, missing, or done work.

list_due_workB

Calendar view: work due between two dates, across all classes or one class.

search_classworkA

Search post titles and text across your classes (or one class) for a keyword.

get_itemA

Full details of a post, assignment, question or material: text, due date, points, attached files/links, your submission (status, your attachments, answer), and comments.

get_my_submissionB

Your submission for an assignment or question: state (turned in, returned…), status (assigned/missing/done), attachments and answer.

get_my_work_in_courseB

All of your assigned work in one class with your submission status for each.

list_class_commentsB

Read the public class comments on a post or assignment.

list_private_commentsA

Read the private comments between you and your teacher on an assignment or question.

get_file_infoB

Metadata for a Drive file attached in Classroom (name, type, size, owner, link).

download_fileA

Download a Classroom attachment (Drive file) to disk. Google Docs/Sheets/Slides are exported (default PDF for download; choose with export_format).

read_file_contentA

Read the contents of a Classroom attachment: Google Docs/Slides as text, Sheets as CSV, .docx/.pptx/.xlsx as extracted text, plain-text files as text, images as images, PDFs as an embedded PDF.

list_class_drive_folderB

List the files in your Drive folder for a class (where Classroom stores your submitted work), or any Drive folder.

post_class_commentA

Post a public class comment on a post or assignment (visible to the whole class).

post_private_commentA

Send a private comment to your teacher on an assignment or question.

edit_commentA

Edit one of your own comments. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

delete_commentB

Delete one of your own comments. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

turn_inA

Turn in your work for an assignment (or mark it as done if it has no attachments). NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

unsubmitA

Unsubmit (take back) work you turned in so you can change it. If it is past the due date it may be marked late when re-submitted. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

answer_questionA

Submit your answer to a question post (short answer or multiple choice). This also turns it in. Use get_item first to see the question type and choices. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

add_link_attachmentA

Attach a link (URL) to your work on an assignment. Does not turn it in. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

add_drive_file_attachmentA

Attach an existing Google Drive file to your work on an assignment. Does not turn it in. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

upload_to_driveA

Upload a local file to your Google Drive (optionally into a folder, e.g. your class folder). Returns the Drive file id. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

upload_and_attach_fileA

Upload a local file into your class Drive folder and attach it to your work on an assignment. Does not turn it in. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

remove_attachmentA

Remove one of your own attachments from your work on an assignment (match by material id, Drive file id, URL or title). Only possible while not turned in. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

join_classA

Join a class using its class code. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

accept_invitationA

Accept an invitation to join a class (the course id is shown on the invitation / in list_courses). NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

leave_classA

Unenroll yourself from a class. You will lose access to it until re-invited or you re-join with a code. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

raw_rpcA

Advanced: call any Classroom web-client batchexecute RPC by id with a JSON payload and return the decoded response. Can perform writes; use only if you know the RPC.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 35 tools

Disambiguation4/5

Most tools carve out distinct resource+action pairs (course, stream, classwork, comments, submissions, attachments, Drive). A few pairs blur: get_item vs get_my_submission (item details already include your submission), and upload_to_drive vs upload_and_attach_file, which differ only by whether an attachment is added. These overlaps are resolvable from descriptions but could cause occasional misselection.

Naming Consistency4/5

Overwhelmingly consistent snake_case verb_noun (list_courses, get_course, turn_in, add_link_attachment, post_private_comment). Minor deviations are the standalone commands whoami and raw_rpc, plus upload_and_attach_file using 'and' for a compound action. The pattern remains highly predictable overall.

Tool Count4/5

35 tools is heavy, but the surface genuinely spans courses, people, stream, topics, classwork, comments, submissions, attachments, and Drive, so most tools earn their place. A few could be consolidated (e.g. upload_to_drive plus upload_and_attach_file, get_my_submission folded into get_item).

Completeness5/5

Excellent student-lifecycle coverage: discover/join/leave classes, browse stream and classwork, attach and upload work, answer questions, turn in/unsubmit, and manage comments. Drive read/download/upload and a raw_rpc escape hatch close remaining gaps; no obvious dead ends for a student-facing client.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues