Purdue Brightspace MCP (policy-aware)
A read-only, policy-gated MCP server that lets an AI assistant view your own Purdue Brightspace data (courses, due dates, assignments, announcements, outline, grades) without ever handling your password.
Check policy state —
compliance_statusshows the active data tier, enabled tools, AI-permitted courses and request limits, with no Brightspace call.Sign in / out —
sign_inopens Purdue's own login page (you handle password and Duo);sign_outends the session and clears tokens and cache.See your courses —
list_coursesreturns your enrollments (optionally active only).Plan ahead —
upcoming_due_dateslists calendar events and due dates up to 60 days out.Review assignments —
list_assignmentsgives names, due dates and points; instructions only for courses you marked AI-permitted.Check submissions —
assignment_submission_statusshows whether/when you submitted; score and feedback only at the Restricted tier.Read announcements —
get_announcementsreturns titles and dates; bodies only for AI-permitted courses.Browse structure —
get_course_outlinelists module and topic titles, no file contents.View grades —
get_my_gradesreturns your released grades, only when the client is authorized for Restricted data.Deliberately absent — no quizzes/exams, classlists, groups, discussions, email, file downloads, or any write operations; results are tier-gated, rate-limited and audit-logged.
Note — the schema takes numeric
course_id/folder_idarguments, which conflicts with the README's claim that internal IDs are never exposed to the AI.
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., "@Purdue Brightspace MCP (policy-aware) what assignments are due for my courses 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.
Purdue Brightspace MCP (policy-aware)
A read-only Model Context Protocol server that lets an AI assistant see a Purdue student's own Brightspace data: courses, due dates, assignments, announcements, submission status and grades. It is built to follow Purdue's IT, data classification, FERPA, intellectual property, academic integrity and AI-use policies.
This is a from-scratch redesign of pranav-vijayananth/brightspace-mcp-server. POLICY_COMPLIANCE.md lists every Purdue policy considered, what the original did that conflicts with them, and how this version handles each one.
Unofficial. Not affiliated with or approved by Purdue University or D2L, and not legal advice.
What is different from the original
Original | This server | |
Purdue password | Plaintext | Never seen. You sign in on Purdue's page yourself (S-13, S-16). |
How data is read | HTML scraping with CSS selectors | Documented Brightspace REST API, GET only, fixed route allowlist |
Auth | Automated login | OAuth 2.0 + PKCE (default), or opt-in manual browser session held in memory |
Data sent to the AI | Everything, unlabelled | Gated by Purdue data tier (Public / Sensitive / Restricted), every result labelled (VII.A.5) |
Course materials | No limits | Instructor text only for courses whose syllabus you confirmed allows AI (I.A.1, academic integrity) |
Other students' data, quizzes, files | Not prevented | Blocked before any request (FERPA, academic integrity) |
Internal IDs | Course URLs exposed | Never shown to the AI. Courses and assignments are referred to by name; IDs stay inside the server |
Files on disk | JSON dump and screenshots | None, apart from a metadata-only audit log |
Load | Unlimited | 1 request/s at most, hourly cap, cache (VII.A.4) |
Related MCP server: google-classroom-student-mcp
Tools
Tool | Data tier | Notes |
| Public | Shows the settings in force and why. No Brightspace request. |
| – | Opens Purdue's sign-in page / ends the session and clears tokens. |
| Sensitive | Your enrollments: name, code, dates. Other tools take a course name or code, e.g. |
| Sensitive | Calendar events for your active courses, up to 60 days ahead. |
| Sensitive | Names, due dates, points. Instructions only for AI-permitted courses. |
| Sensitive / Restricted | Submission dates. Score and feedback only at the Restricted tier. |
| Sensitive | Titles and dates. Bodies only for AI-permitted courses. |
| Sensitive | Module and topic titles. No file contents. |
| Restricted | Your released grades. |
There are deliberately no tools for quizzes or exams, classlists, groups, discussions, email, file downloads, or anything that writes to Brightspace.
Install
Requires Python 3.10+.
git clone https://github.com/gotsevrossen/Brightspace_legal_MCP.gitcd Brightspace_legal_MCP && python3 -m venv .venv && . .venv/bin/activatepip install -e .For browser mode, also install Playwright:
pip install -e ".[browser]" && playwright install chromiumConfigure
All settings are environment variables, set in your MCP client's config. Note that there is no password setting.
Variable | Default | Meaning |
|
| Highest Purdue data tier your AI client is authorized for on Purdue's AI tools list. |
| (none) | Comma-separated course codes (e.g. |
|
|
|
| – | Issued by Purdue's Brightspace admins for an approved OAuth 2.0 app. |
| – | Only if the registered app is confidential. Prefer the OS keyring or your client's secret store. |
|
| The registered redirect URI must be |
|
| Must be |
|
| Capped at 600. |
|
| Metadata-only log at |
Choosing the data tier honestly
Purdue's AI Use policy (VII.A.5) and its authorized AI tools list say:
The default,
sensitive, assumes your AI client is authorized for Sensitive data and that you use it through Purdue SSO under Purdue's enterprise or API license. Check the current list.An AI tool not on the list, including a personal Claude, ChatGPT or Gemini account, may receive Public data only. In that case set
PURDUE_MCP_AI_DATA_TIER=public.Grades, scores and feedback are Restricted and stay off until you set
restricted, which needs a tool authorized for Restricted data.
Example: Claude Desktop
{
"mcpServers": {
"purdue-brightspace": {
"command": "/absolute/path/to/Brightspace_legal_MCP/.venv/bin/purdue-brightspace-mcp",
"env": {
"PURDUE_MCP_AI_DATA_TIER": "sensitive",
"PURDUE_MCP_AI_PERMITTED_COURSES": "CS 18000",
"PURDUE_MCP_AUTH_MODE": "oauth",
"PURDUE_MCP_OAUTH_CLIENT_ID": "issued-by-purdue"
}
}
}
}Use these values only if that Claude Desktop is signed in through Purdue's enterprise license. Then ask: "Check my Purdue compliance status", "Sign me in to Brightspace", "What's due in the next two weeks?"
Getting an OAuth client ID
Students cannot register Brightspace API apps. The sanctioned route is through Purdue: an
instructor, department or student organization files a
New Brightspace Tool Integration
request, or Purdue IT registers the app under Manage Extensibility > OAuth 2.0. Use the
authorization-code grant, redirect URI http://127.0.0.1:8765/callback, and these read-only
scopes:
calendar:my_events:read content:toc:read dropbox:folders:read enrollment:own_enrollment:read grades:own_grades:read news:newsitems:readDevelopment
pip install -e ".[dev]" && pytestThe tests check the policy gates directly. Examples: every data tool refuses at the default tier, grades need Restricted, instructor text is withheld without course permission, forbidden routes are blocked before any request, no credential settings exist, and the audit log holds no content.
License
Apache-2.0. See LICENSE.
Available Tools
10 toolsassignment_submission_statusBRead-onlyIdempotent
Whether and when the student submitted to one assignment folder. Score and feedback are included only at the Restricted tier.
Inputs: course_id (required), folder_id (required). Returns: object
compliance_statusARead-onlyIdempotent
Show the Purdue policy settings in force: the declared AI data tier, which tools are enabled, courses with AI permission, request limits, and the policies they implement. Makes no Brightspace request.
Inputs: no named parameters. Returns: object
get_announcementsBRead-onlyIdempotent
Recent announcements in one course. Bodies are included only for courses with AI permission. Purdue Sensitive data.
Inputs: course_id (required), limit. Returns: object
get_course_outlineBRead-onlyIdempotent
Module and topic titles for one course (no file contents). Purdue Sensitive data.
Inputs: course_id (required). Returns: object
get_my_gradesARead-onlyIdempotent
The student's own released grades in one course. Purdue Restricted data: available only when the AI client is authorized for Restricted data.
Inputs: course_id (required). Returns: object
list_assignmentsARead-onlyIdempotent
Assignment folders in one of the student's courses: names, due dates, points. Instructions are included only for courses with AI permission. Purdue Sensitive data.
Inputs: course_id (required). Returns: object
list_coursesBRead-onlyIdempotent
List the student's own Brightspace course enrollments with their course IDs. Purdue Sensitive data.
Inputs: active_only. Returns: object
sign_inA
Open Purdue's sign-in page in the user's browser so they can sign in and approve Duo themselves. The server never sees the password.
Inputs: no named parameters. Returns: object
sign_outA
End the Brightspace session and clear cached data and stored tokens.
Inputs: no named parameters. Returns: object
upcoming_due_datesBRead-onlyIdempotent
Calendar events and due dates across the student's active courses for the next days
days (max 60). Purdue Sensitive data.
Inputs: days. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct resource or lifecycle action (compliance, auth, courses, deadlines, assignments, grades, announcements, outline), and descriptions explicitly bound each one. The only mild overlap is between assignment_submission_status and get_my_grades, since both can surface score/feedback, but the per-assignment vs. per-course framing keeps them separable.
The set mixes verb_noun names (list_courses, get_my_grades, get_course_outline), verb_particle names (sign_in, sign_out), and bare noun phrases (compliance_status, upcoming_due_dates, assignment_submission_status). All names are readable and descriptive, but there is no single predictable pattern an agent can rely on.
Ten tools is well within the sweet spot, and every tool earns its place: auth pair, one policy/introspection tool, and seven read operations covering the student's domain. Nothing appears redundant or padding.
For a policy-aware, read-only student surface, coverage is solid: courses, deadlines, assignment folders and submission status, grades, announcements, and course structure. Minor gaps remain—no way to fetch a single assignment's details, list announcements across all courses, or access course content/files—but these are workable omissions rather than dead ends.
Maintenance
Related MCP Connectors
Read-only access to a student's recorded classes: transcripts, notes, slides and concept map.
Read-only access to Epivo's live course catalogue for AI agents.
Connect AI assistants to Edusign attendance, courses, learners, documents, and API docs via OAuth.
Securely review your Neuron business profile, services, calls, leads, bookings, and CRM data after account owner authorization. Read-only: the assistant can view only the Neuron account and permissions the owner approves.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Canvas LMS course content, including assignments, modules, announcements, and files, to help students manage their coursework.ISC
- 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.14172 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to access and manage academic course information, assignments, submissions, grades, calendars, materials, recordings, and announcements through authenticated LMS sessions.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to inspect enrolled courses, extract readable text from course documents, track upcoming deadlines, view announcements, and retrieve assignment details through the platform’s REST API.MIT