Personal Brightspace MCP
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., "@Personal Brightspace MCP what assignments are due this week?"
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.
Personal Brightspace MCP
A local, read-only TypeScript MCP server that gives a school tutor access to your Brightspace courses, structured deadlines, announcements, assignment instructions, course outline, quiz metadata and your own released grades. It can also search explicitly imported school notes and compare course metadata with a previous successful check.
Connect locally with Claude Desktop, Claude Code or Codex. Install · Claude setup · Codex setup.
Use your institution's Brightspace URL during setup. The server supports a configurable Brightspace tenant; available APIs and permissions depend on your institution.
Quick start on your Mac
You need Node.js 22.16+ (an LTS version includes npm). Google Chrome is needed only for optional browser sign-in. No build step is required: dist/ is included.
Download the source ZIP and unzip it.
Open Terminal in the extracted folder and run:
bash setup.shThe setup installs locked dependencies with lifecycle scripts disabled, runs an offline smoke check, and prints the exact connection settings for your computer. It does not sign in, read school data, start a background service or change your MCP host settings. If Node or npm is missing, it explains what to install.
Alternatively, with Git installed:
git clone https://github.com/Proscled/personal-brightspace-mcp.git
cd personal-brightspace-mcp
bash setup.shNext, follow Connect to Claude or Connect to Codex below, then reload the host. Keep the extracted folder in a permanent location: the host runs the server from that path. A working offline check does not verify access to your school. For development, run npm run build after editing src/.
On Windows, use PowerShell in the extracted folder: run npm ci --ignore-scripts, then node scripts/smoke.mjs, and follow the Claude Desktop instructions below. Document rendering/OCR support varies by operating system; see Local readers.
Optional school sign-in
Replace https://brightspace.example.edu with your institution's Brightspace URL. Use a normal local terminal, not an AI tool call:
node dist/index.js init --url https://brightspace.example.edu
node dist/index.js login
node dist/index.js doctorlogin opens a separate, temporary Chrome session. Sign into your institution normally and complete MFA yourself. Open a course, return to the terminal and press Enter. The program collects only school-origin session cookies and any authentication headers the school page itself uses with its own API. It then checks the Brightspace identity endpoint before saving a session. It does not ask for your password, handle MFA codes, scrape your other browser tabs, or save identity-provider cookies.
To remember browser sign-in between login runs, use node dist/index.js login --remember-browser. This opts into a dedicated local Chrome profile, including school and SSO browser state; it never uses your ordinary Chrome profile. The profile is sensitive, stays outside the repository in the private state directory, and is removed by logout. School expiry and MFA policies still apply. Successful API reads now save replacement school cookies, when supplied by the server. There is no background refresh or automatic browser launch.
Browser-session API access is tenant-dependent. A successful browser login does not prove the student API is allowed. If verification returns 401/403, check docs/AUTHENTICATION.md; do not bypass school policy. An officially issued OAuth access token is the supported alternative.
The archive includes prebuilt dist/ files. You can run the protocol smoke test without installing dependencies:
node scripts/smoke.mjsBrowser login uses the optional playwright-core package installed by npm ci and your existing Google Chrome installation. Set BRIGHTSPACE_BROWSER_PATH to a Chrome/Chromium executable to use another installation.
Related MCP server: POSTECH PLMS MCP
Connect to Claude
Claude Desktop
From the installed project folder, print your exact JSON configuration:
node dist/index.js config-client --client claude-desktopIn the Claude Desktop app, open Settings → Developer → Edit Config. Merge the printed
brightspaceentry into the existingmcpServersobject. If the file is empty, use the complete printed JSON. Keep any other servers.Save the file, fully quit Claude, and reopen it. Find
brightspacein the local MCP server settings or the chat's connector menu.First ask: “Call brightspace_status with verifyConnection false.” This checks local setup without contacting your school. Course tools require separately authorized sign-in.
This uses local stdio; there is no hosted URL to paste into Claude's web connector form. The generated configuration uses absolute paths, including the Node executable, so it also works when the desktop app has a different PATH. See Claude setup and troubleshooting for Windows, config file locations and connection errors.
Claude Code
Print and run the generated command in Bash/zsh:
node dist/index.js config-client --client claude-codeIt registers a stdio server in your user scope (available across your projects). Then run claude mcp get brightspace and use /mcp in Claude Code to inspect the connection. The generator only prints a command; it does not change Claude settings itself. Official Claude Code MCP reference.
Connect to Codex
From the project directory:
codex mcp add brightspace -- "$(command -v node)" "$PWD/dist/index.js" serveRestart/reload the MCP host as needed. The server starts without a network call; authentication is checked when a live school tool is used. For larger multi-course requests, add tool_timeout_sec = 300 to this server's entry in your Codex configuration.
To print exact configuration paths for your machine:
node dist/index.js config-client --client codexThe output is a Codex TOML entry. Merge it into your existing configuration; do not replace the entire file. Without --client, the command prints both generic JSON and Codex TOML; use only the format your host accepts. Examples are also in examples/.
This command connects Codex to your local stdio server. For optional hosted HTTP setup, see web deployment.
Try it
In an MCP-connected host:
What is due in the next 14 days? Separate submission due dates from closing dates, and tell me which sources could not be checked.
Read the latest announcements for my mathematics course and find the preparation for the next exam.
Search my imported school snapshot for the assessment matrix, then give me one practice question at a time.
Check what changed since the last successful update check.
Or call a tool from your terminal:
node dist/index.js call brightspace_list_courses '{}'
node dist/index.js call brightspace_get_deadlines '{"daysAhead":14}'
node dist/index.js call brightspace_get_announcements '{"courseId":"100"}'Course IDs in examples are placeholders. list_courses is the source of truth for your account. A response with isError or an incomplete coverage entry must not be interpreted as “nothing due.”
To check for a submission receipt, pass both a course ID and a folder ID from the assignment list to brightspace_get_assignments. The ordinary course-wide list makes no receipt requests. A receipt confirms a submission. An empty result leaves completion unknown, particularly for group and on-paper work.
Search your existing School snapshot
Use the Markdown context file you already have; it is intentionally not bundled into this source repository.
node dist/index.js import-notes "/path/to/School_Context_2026-11-03.md" \
--title "School Brightspace snapshot" --as-of 2026-11-03
node dist/index.js call brightspace_search_notes '{"query":"toetsmatrijs"}'Search returns note IDs, line numbers, snippets and the snapshot date. brightspace_read_note expands an exact line range. Only files you explicitly import via the local CLI are searchable; the model cannot supply arbitrary filesystem paths. Notes remain snapshots, not live facts. Import a new version when you refresh your school export. Identical content is deduplicated; different versions remain separate and retain their dates.
Available tools
Tool | What it does |
| Local setup status; optional live identity check. Never returns tokens or cookies. |
| Accessible course enrollments with configurable course filtering. |
| Instructions, dates, attachments and rubric metadata. An optional |
| Course news text with published/modified dates and source links. |
| Only your own released Brightspace grade values. Missing grades stay null. |
| Quiz metadata and dates, never attempts or questions. |
| Your course calendar events within a bounded time window. |
| Nested modules/topics flattened into a searchable course outline. |
| Read a visible topic as text, including PDF, PPTX, DOCX, XLSX, HTML and notebook source. Select a section or page and page through long text. |
| Read a native file attached to a visible assignment or announcement, using its parent ID and FileId. |
| Return one PDF page or PowerPoint slide as an MCP image. Select a numbered picture to retrieve an embedded PNG or JPEG. |
| Look up the visible rubrics for a specific assignment and read their criteria, levels and available points. |
| Structured dates from assignments, quizzes, calendar and content, with per-source coverage. |
| Search course metadata and a batch of native files. File matches identify the slide, page, paragraph or spreadsheet row. |
| Compare current metadata with private local baselines. For one course, optionally hash file bytes to catch edits without metadata changes. |
| List explicitly imported Markdown/text snapshots. |
| Search imported text with line-numbered snippets. |
| Read bounded line ranges by note ID. |
Two optional prompts are exposed: school_weekly_plan and school_exam_tutor. A brightspace://guide resource documents source handling and limitations for the host. docs/TUTOR_PROMPT.md provides project instructions to adapt.
Presentations, documents and rubrics
Ask “Laat dia 9 zien en leg de formule uit” or “Zoek de toetsmatrijs en noem het werkblad en de rij.” Codex can call brightspace_view_page for an actual slide image and brightspace_read_topic for text, speaker notes and embedded-picture numbers. For a scanned or partly scanned document, request ocrPage with the one-based printed page number. For ordinary text use section to select a slide, PDF page, Word section or worksheet row. Each response identifies its source. The CLI prints image metadata; MCP clients receive the image itself.
Native assignment and announcement files come with a numeric FileId. Pass it with folderId or newsItemId respectively. Assignment instructionLinks also preserve the instructor’s link label and destination. Browser QuickLinks and external URLs can be opened manually. The reader does not follow them with your credentials. The rubric lookup checks the selected folder and reports any endpoint error alongside usable embedded definitions and document links. A denied lookup or a document linked as a marking guide should be reviewed separately.
File search scans three files per call by default. Look in fileSearch.matches for citations. Use nextMatchOffset for additional hits in the current batch, then advance nextFileOffset and reset the match offset. Set filename to narrow to a topic title or attachment name. includeFiles: false selects faster metadata-only search. A skipped or unreadable file appears in coverage. Images and diagrams inside mixed documents may need a visual read or page-specific OCR.
To detect changed bytes, call brightspace_check_updates with includeFiles: true and one entry in courseIds. Follow fileCoverage.nextFileOffset with the same course and options. A successful first read establishes each file’s SHA-256 baseline. Later reads identify changed content even when titles and dates match. An unreadable file keeps its previous baseline.
Local readers
Office XML extraction uses Python 3. On macOS, PDF reading and OCR use PDFKit and on-device Vision. Office page rendering uses a local LibreOffice installation in Applications or the bundled Codex desktop runtime. Conversion runs in a disposable local directory with restricted filesystem access, disabled macros and blocked network access. The reader accepts PDF and Office files up to 32 MiB by default. Set maxFileBytes to lower the limit. An existing explicit maxResponseBytes also applies to files unless overridden.
OCR can misread formulas and handwriting. Bulk PDF text extraction processes up to 100 pages and up to 12 OCR pages per request. Request a later page individually. LibreOffice layout depends on locally available fonts. The Excel text reader returns cell addresses, stored values and formula text. The visual reader returns one image per call.
What “read-only” means
The school client has a hardcoded GET-only API allowlist. It exposes no generic URL fetch, arbitrary API request, shell command, submission, edit, deletion, quiz-start, timed-review, or progress-write tool. Authenticated redirects are blocked rather than followed with your credentials. Normal school sign-in in the browser may of course use POST requests as part of SSO; these are user-driven login actions, not course-editing tools.
check_updates changes private local baseline files, so its MCP readOnlyHint is correctly false. All other tools advertise read-only access. The first check establishes baselines; it does not pretend that existing items are newly posted. A failed or incomplete read preserves the previous successful baseline. A disappeared item is “no longer visible,” not “deleted” or “completed.” Baselines are namespaced by school, account, course and resource.
No scheduler is running. The server checks when a host calls it. Reminders, regular checks and notifications require separately configured host automation. A normal local stdio connection does not itself create background monitoring.
Honest coverage limits
Structured dates do not capture every instruction in announcement text, slide decks or external systems. Use announcements/materials alongside the deadline tool. “Complete” means the selected API sources answered, not that every school obligation is known.
A due date is distinct from availability ending. A date-only value is not assigned a fictional time. Dates are rendered in
Europe/Amsterdam, including daylight-saving changes.Course-wide results leave submission status unknown. The optional single-folder receipt check distinguishes personal and group receipts. A passed date or absent receipt does not establish missed work. Special access, extensions, exemptions and group-specific dates may need checking in the student UI.
Legacy binary Office formats, audio and video are outside the document reader. Notebook cells are read as source. OCR, visual rendering and text search each report their own coverage.
External links and interactive/LTI topics are returned as references, never followed automatically. Osiris and Remindo are not connected. Recurring calendar rules are not expanded into every occurrence.
File search covers readable course topics and native attachments to visible assignments and announcements. Instruction links contribute their labels and URLs to metadata search. Their destinations are outside the file search.
Configuration and local data
Default state location:
~/.local/share/personal-brightspace-mcp/
├── config.json
├── session.json # SENSITIVE: never share or commit
├── notes/ # Private imported school content
└── snapshots/ # Private metadata baselinesconfig.json supports:
{
"baseUrl": "https://brightspace.example.edu",
"timezone": "Europe/Amsterdam",
"activeOnly": true,
"includeCourseIds": [],
"maxCourses": 30,
"maxPages": 30,
"requestTimeoutMs": 20000,
"requestSpacingMs": 200,
"retries": 2
}An empty course list means all accessible courses within the configured limits. Set activeOnly to false to include accessible inactive courses. Older materials offered inside an active course are not excluded based on their file name or year. API versions are discovered from the school; lpVersion and leVersion are optional overrides for supported versions.
Environment overrides: BRIGHTSPACE_URL, BRIGHTSPACE_MCP_HOME, BRIGHTSPACE_LP_VERSION, BRIGHTSPACE_LE_VERSION. BRIGHTSPACE_ACCESS_TOKEN selects official access-token authentication; it is not written by the program. BRIGHTSPACE_BROWSER_PATH affects only interactive browser login.
Sessions are not encrypted at rest. State directories use 0700 and files 0600 on macOS/Linux. Anyone controlling your OS account can read them; use device encryption and keep your account secure. On Windows, configure restrictive filesystem ACLs. Never upload state files to a model, GitHub, issue tracker or shared drive. The MCP host can receive the course data you ask it to retrieve, so review that host's data handling policy.
node dist/index.js logoutThis deletes the locally saved session and optional remembered browser profile. It does not revoke the school's session or an environment token. Revoke official OAuth access through the school when applicable. Notes and snapshots are retained; remove their directories manually when you want to erase local course history.
Development and tests
npm run typecheck
npm test
npm run smokeThe core uses Node's standard library and a small, explicitly implemented stdio MCP protocol subset, rather than a third-party MCP SDK. This keeps the prebuilt server runnable without npm runtime dependencies. playwright-core is optional and loaded only for interactive login. The supported protocol revisions and limitations are documented in docs/ARCHITECTURE.md. Migrating the transport to the official SDK is a reasonable future enhancement.
Tests use synthetic fixtures. The included package-lock.json pins the versions used by npm ci. The test report distinguishes offline checks from historical authenticated checks against a specific institution; those checks do not establish compatibility with every institution.
Sources and licensing
See docs/SOURCES.md for the D2L endpoint documentation, MCP specification, Playwright API and host configuration references. This is an independent implementation, not an official D2L product or an institution's official integration. MIT licensed; see LICENSE. Third-party packages retain their own licenses.
Available Tools
18 toolsbrightspace_check_updatesA
Compare metadata with local baselines. To detect changed file bytes despite identical metadata, pass includeFiles=true with one course ID and follow fileCoverage.nextFileOffset.
Inputs: courseIds, fileLimit, fileOffset, includeFiles.
brightspace_get_announcementsARead-onlyIdempotent
Read course announcements with publication/modification dates. Some copied announcements may concern older academic years or another class.
Inputs: courseId (required), limit, offset.
brightspace_get_assignment_rubricsARead-onlyIdempotent
Read rubrics associated with a visible assignment, including available criteria, achievement levels and points. Check completeness and warnings.
Inputs: courseId (required), folderId (required), limit, offset.
brightspace_get_assignmentsARead-onlyIdempotent
Read assignment instructions, dates and available rubric metadata. Supply a folderId to return one visible assignment and check your own submission receipts. A missing receipt leaves completion unknown.
Inputs: courseId (required), limit, offset, folderId.
brightspace_get_calendarARead-onlyIdempotent
Read your calendar events for one course. Recurrence rules are not expanded. Calendar events are not automatically deadlines.
Inputs: courseId (required), end, limit, start, +2 more.
brightspace_get_contentARead-onlyIdempotent
List nested course modules and topics, flattened with paths. Date-restriction bypass flags are never sent.
Inputs: courseId (required), limit, offset.
brightspace_get_deadlinesBRead-onlyIdempotent
Aggregate structured dates from assignments, quizzes, calendar and content. Due dates and availability end dates stay distinct. Always report coverage and limitations.
Inputs: end, limit, start, offset, +2 more.
brightspace_get_gradesARead-onlyIdempotent
Read only the signed-in user's released Brightspace grade values. Missing values are not zero; this does not read Osiris.
Inputs: courseId (required), limit, offset.
brightspace_get_quizzesARead-onlyIdempotent
Read quiz metadata and availability only. Does not open attempts, questions, review windows, or Remindo.
Inputs: courseId (required), limit, offset.
brightspace_list_coursesCRead-onlyIdempotent
List accessible course enrollments, respecting activeOnly and includeCourseIds. Check sourceComplete and nextOffset.
Inputs: limit, offset.
brightspace_list_notesARead-onlyIdempotent
List local Markdown/text snapshots explicitly imported through the CLI. Does not read arbitrary local files.
Inputs: no named parameters.
brightspace_read_attachmentARead-onlyIdempotent
Read a file that belongs to a visible assignment or announcement. Supply exactly one parent and its attachment FileId.
Inputs: fileId (required), courseId (required), offset, ocrPage, +4 more.
brightspace_read_noteARead-onlyIdempotent
Read a bounded line range of an imported note using its ID, not a filesystem path. Preserve the snapshot date when citing it.
Inputs: noteId (required), lineCount, startLine.
brightspace_read_topicARead-onlyIdempotent
Read text from a visible file topic, including PDF pages, PowerPoint slides and speaker notes, Word paragraphs and Excel rows.
Inputs: topicId (required), courseId (required), offset, ocrPage, +2 more.
brightspace_search_courseARead-onlyIdempotent
Search the course outline, announcements and assignments, plus a batch of visible files by default. File matches include slide, page or section references. Follow fileSearch.nextFileOffset.
Inputs: query (required), courseId (required), limit, filename, +4 more.
brightspace_search_notesARead-onlyIdempotent
Search manually imported local school snapshots with line-numbered snippets. These are not live Brightspace checks.
Inputs: query (required), limit.
brightspace_statusARead-onlyIdempotent
Check local configuration without exposing secrets. Set verifyConnection=true to verify the school API identity.
Inputs: verifyConnection.
brightspace_view_pageARead-onlyIdempotent
Return a rendered PDF page or PowerPoint slide as an MCP image. Optionally supply image to get one embedded slide picture. Choose a topic OR an assignment/news attachment.
Inputs: page (required), courseId (required), image, fileId, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools target a clearly distinct resource (grades, quizzes, calendar, rubrics, announcements), and descriptions do real work separating near-neighbors like get_deadlines (aggregator) from the individual getters. The only soft spots are the three file readers (read_topic vs read_attachment vs view_page) and the three local-note tools (list/search/read), which an agent could confuse without reading carefully.
Strong, uniform `brightspace_` prefix with a consistent verb_noun shape: list_*, get_*, read_*, search_*, check_*. The lone deviation is the bare noun `brightspace_status`, and the verb set is wider (list/get/read/view/search/check) than a pure CRUD scheme, but overall very readable and predictable.
18 tools is at the upper end but each maps to a real Brightspace surface (courses, assignments, rubrics, content, calendar, deadlines, notes). The local-snapshot trio and the file-reading trio are somewhat granular, pushing the set slightly into the heavy range, but nothing looks like filler.
The read-only surface is broad: enrollments, assignments with rubrics and submission receipts, announcements, grades, quizzes, nested content, calendar, aggregated deadlines, search, update diffing, and offline note snapshots. Obvious absences are any write path (submitting assignments, marking complete) and discussions/messages, so it is a solid reader but not a full lifecycle surface.
Related MCP Connectors
Read your plat.plus courses, tasks, course pages, sessions, files and messages. Read-only.
Search university course materials, your flashcards, quizzes, streak and quota. All tools read-only.
Read students, guardians, classes, attendance, assignments and fees; add notes in DreamClass.
Read-only access to a student's recorded classes: transcripts, notes, slides and concept map.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI clients to read a student's own UGent Ufora (D2L Brightspace) data, including courses, announcements, deadlines, grades, course materials, and PDF text, over stdio or local Streamable HTTP. All operations are read-only and run locally against the student's authenticated session.192MIT
- AlicenseBqualityCmaintenanceEnables natural-language, read-only access to a user's own learning-management account for courses, assignments and deadlines, lecture attendance, notices, grades, and syllabus evidence, including reading page/slide/cell locations inside PDF, Office, HWP/HWPX, HTML, and ZIP attachments. Runs locally over stdio or remotely over OAuth-protected Streamable HTTP for desktop and mobile clients, and can compare changes against a locally encrypted baseline.19MIT
- AlicenseCqualityBmaintenanceProvides read-only access to Indus LMS academic data, letting agents browse courses, announcements, assignments, shared resources, notifications, attendance records, and school email inboxes. It exposes these capabilities as MCP tools over stdio, with no login, mark-read, or submission operations.481GPL 3.0
- AlicenseNot gradedqualityCmaintenanceLets AI assistants read a student's Canvas LMS/Moodle courses, deadlines, announcements, grades and course files using their normal browser login instead of an access token. It is read-only and keeps all session data and downloads on the user's own machine.35 npm2MIT