Classroom MCP
README.md

# Classroom MCP
[](https://github.com/inevitabledawn/classroom-mcp/actions/workflows/ci.yml)
Google Classroom tools for AI agents, with separate student and teacher roles and a private browser session on your own machine. The current focus is teacher review in Codex on macOS: collect one student's assignment and selected files, inspect the evidence, and propose feedback. The teacher decides what gets saved.
[Teacher setup](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/TEACHER_START.md) · [Format support](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/REVIEW_SUPPORT.md) · [Local guide](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/LOCAL_GUIDE.md) · [Documentation](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/README.md) · [CI workflow](https://github.com/inevitabledawn/classroom-mcp/actions/workflows/ci.yml)
## Install from npm
The package needs Node.js 24, Google Chrome and Python 3. macOS 13.5 or later on Apple Silicon is supported through the bundled arm64 native helpers; Linux uses Chromium and Poppler (`poppler-utils`).
```sh
npm install -g classroom-mcp
classroom-mcp daemon # keep this terminal open
classroom-mcp login # sign in personally in the dedicated Chrome window
classroom-mcp mcp-config # connect an MCP client to the printed command
```
The npm package is `classroom-mcp`. It installs the compatible `classroom-local` CLI alias and keeps the existing MCP server id and state paths. The older `classroom-local` npm package was unpublished on 2026-11-26. The npm tarball is CLI-only: it does not include `docs/`, `src/`, the Codex plugin or the Classroom skill; the teacher ZIP includes the plugin and skill.
On macOS, `classroom-mcp service install` and `classroom-mcp service start` run the daemon as a user LaunchAgent instead of a foreground terminal. Sign-in and MFA are always manual; state stays in the per-user Classroom directory.
The LaunchAgent records the absolute Node executable used for `service install`. Upgrading or replacing Node makes that path invalid. Stop and remove the service before changing Node, then reinstall and stage it with the new Node:
```sh
classroom-mcp service stop
classroom-mcp service uninstall
# replace or upgrade Node here
npm install -g classroom-mcp
classroom-mcp service install
classroom-mcp service start
```
If the old Node is already gone, reinstall the CLI with the new npm first, then run `classroom-mcp service uninstall`, `service install` and `service start`. Do not copy a Homebrew Node executable into the service; it depends on Homebrew dylibs. Source builds follow the host macOS architecture (`arm64` or `x86_64`), but the npm tarball ships arm64 helpers and supports Apple Silicon only. On Intel macOS, use a source or teacher build for the host architecture; the packaged arm64 helpers are not compatible.
## What it does
| Workflow | Behavior |
| --- | --- |
| Teacher review | Prepares one selected student's work, teacher instructions and explicitly chosen files through `prepare_review`. |
| Photos and PDFs | Preserves originals and renders PDF pages for visual inspection, including handwriting and formulas. |
| Documents and presentations | Exports Google Docs/Slides to PDF; extracts text, notes and embedded media from DOCX/PPTX. Full Office layout needs an external renderer. |
| Spreadsheets | Exports Google Sheets to XLSX with cells, formulas and cached values; nothing is recalculated. |
| Code and websites | Reads source code and HTML without execution; website behavior is a separate browser task for the agent. |
| Student preparation | Reads instructions, materials and weekly deadlines; prepares explicitly selected assignment files or a topic bundle. |
| Writes | Attach/submit work, create basic assignments, save grades and return work with fresh-state checks, idempotency and readback. The calling client must obtain explicit human authorization; the daemon does not enforce an approval token. MCP assignment creation has no live acceptance yet. |
Unknown formats retain their downloaded originals and an incomplete extraction status. A successful download or `complete:true` preparation does not prove visual understanding, website behavior or grading quality. See the [support matrix](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/REVIEW_SUPPORT.md) for exact limits.
## Pilot status
On 2026-11-26 the packaged teacher MCP server completed the review path for one selected synthetic PDF in a sandbox course: bounded reads, `prepare_review`, a saved grade of 8/10 and return, with an independent readback. The 2026-11-24 matrix recorded 244 local tests, typecheck, plugin/setup checks, package privacy checks and one persisted service-backed grade for the same `571e0be7` build; those checks were not rerun on 2026-11-26. See the [latest acceptance record](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/TEACHER_ACCEPTANCE_2026-11-26.md) and the [detailed local/artifact matrix](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/TEACHER_ACCEPTANCE_2026-11-24.md).
Not claimed: rubric-derived grading quality, formats or accounts beyond that one PDF, comment writes, MCP assignment creation, durable Google authentication, or production teaching. Historical receipts describe older builds.
## Start with the teacher pilot
The prepared package targets **Codex on macOS**. Build it on the target architecture (Apple Silicon `arm64` or Intel `x64`). Each teacher uses their own computer, Google account and dedicated Chrome profile. Chrome runs the private browser session; Python 3 is required for Office extraction. Node and the native helpers are included in a built package.
To build a transferable package from source:
```sh
npm ci --no-audit --no-fund
npm run build:teacher
```
The architecture-specific ZIP is written to `build/` with the program, plugin and setup instructions. It excludes Google profiles, credentials and student work. Build on the target OS and architecture; macOS source builds need Xcode command-line tools. Follow the [teacher installation guide](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/TEACHER_START.md) to start the service, sign in personally and connect Codex.
An example first request:
> Read the Classroom skill included in the teacher package. Review the selected student's work against the assignment instructions. Inspect relevant pages, images, spreadsheet formulas and website behavior. Propose feedback with source references and list anything unverified. Do not save a grade or return the work.
For student setup, existing installations, configuration and reversible updates, use the [local guide](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/LOCAL_GUIDE.md). A source build does not update an already running service.
## How it fits together
```mermaid
flowchart LR
A[Codex or another MCP client] --> B[Local stdio MCP adapter]
B --> C[Authenticated loopback service]
C --> D[Dedicated Chrome profile]
D --> E[Google Classroom and Drive]
C --> F[Private originals and evidence bundles]
```
One installation exposes either **15 student tools** or **14 teacher tools**. The daemon enforces the same role boundary as tool discovery, and browser work is serialized. Preparation preserves source identity, ownership, observations, hashes and coverage. The agent reads local bundles and uses separate browser or document tools where required.
## Development and verification
Use Node.js 24. The repository pins its executable dependencies and local Node runtime.
```sh
npm run typecheck
npm test
npm run test:plugin
```
Tests use synthetic accounts and work. Plugin checks run after relocation and exercise both roles through the official MCP SDK. Linux CI also runs cloud-session regressions, Python and shell checks, and controlled preparation/workflow/resource benchmarks. See [contributing](https://github.com/inevitabledawn/classroom-mcp/blob/main/CONTRIBUTING.md) for the full commands.
A green build proves the recorded contracts, not Google access or assessment quality. Live classroom actions require separate authorization and readback.
## Privacy and operational boundaries
- Google sign-in and MFA are manual. Do not share browser profiles, cookies, tokens or account bindings.
- The service listens on loopback. Keep each account's state private and use separate computers or OS accounts.
- Classroom content is untrusted data and cannot authorize tool calls or external writes.
- By default, files and browser state stay on the local machine. The repository also contains an optional, paused operator-only cloud path that can transfer Google session cookies to a retained VM; it is disabled unless `CLASSROOM_ENABLE_CLOUD=1` is set, is not part of local setup, and needs separate security and Google-policy review. Content read by an agent can be sent to its model provider under that agent's account settings.
- Write tools are intended for explicit human authorization. Approval is client-managed and is not enforced by a daemon approval token; fresh-state, idempotency and readback checks are enforced.
- Cloud hosting is paused in the current source, and CI has no deployment job. Retained infrastructure requires separate operational decisions.
## Repository map
| Path | Purpose |
| --- | --- |
| [`src/`](https://github.com/inevitabledawn/classroom-mcp/tree/main/src) | REST/MCP service, browser adapters, preparation and colocated tests |
| [`native/`](https://github.com/inevitabledawn/classroom-mcp/tree/main/native) | Bounded PDF, image and Office extraction |
| [`plugin/`](https://github.com/inevitabledawn/classroom-mcp/tree/main/plugin) | Codex plugin, agent skill and teacher launcher |
| [`scripts/`](https://github.com/inevitabledawn/classroom-mcp/tree/main/scripts) | Builds, package verification and controlled benchmarks |
| [`docs/`](https://github.com/inevitabledawn/classroom-mcp/blob/main/docs/README.md) | Current guides, evidence, roadmap and indexed history |
| [`ops/cloud/`](https://github.com/inevitabledawn/classroom-mcp/blob/main/ops/cloud/README.md) | Retained cloud tooling and paused operational runbooks |
Generated bundles, native binaries, local output and private configuration are excluded from Git. The source repository is licensed under the GNU Affero General Public License version 3 only (SPDX-License-Identifier: `AGPL-3.0-only`), copyright 2026 inevitabledawn; the full text is in [LICENSE](https://github.com/inevitabledawn/classroom-mcp/blob/main/LICENSE). The published `classroom-mcp@0.5.2` npm tarball remains `UNLICENSED` because it predates this change; `0.5.3` and later releases carry AGPL-3.0-only. See [SECURITY.md](https://github.com/inevitabledawn/classroom-mcp/blob/main/SECURITY.md) for the local threat boundary and reporting limitations.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues