Skip to main content
Glama
Purdue Brightspace MCP (policy-aware)

Purdue Brightspace MCP (policy-aware)

by gotsevrossen

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 .env, typed by a bot

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

compliance_status

Public

Shows the settings in force and why. No Brightspace request.

sign_in / sign_out

–

Opens Purdue's sign-in page / ends the session and clears tokens.

list_courses

Sensitive

Your enrollments: name, code, dates. Other tools take a course name or code, e.g. CS 18000.

upcoming_due_dates

Sensitive

Calendar events for your active courses, up to 60 days ahead.

list_assignments

Sensitive

Names, due dates, points. Instructions only for AI-permitted courses.

assignment_submission_status

Sensitive / Restricted

Submission dates. Score and feedback only at the Restricted tier.

get_announcements

Sensitive

Titles and dates. Bodies only for AI-permitted courses.

get_course_outline

Sensitive

Module and topic titles. No file contents.

get_my_grades

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.git
cd Brightspace_legal_MCP && python3 -m venv .venv && . .venv/bin/activate
pip install -e .

For browser mode, also install Playwright:

pip install -e ".[browser]" && playwright install chromium

Configure

All settings are environment variables, set in your MCP client's config. Note that there is no password setting.

Variable

Default

Meaning

PURDUE_MCP_AI_DATA_TIER

sensitive

Highest Purdue data tier your AI client is authorized for on Purdue's AI tools list. sensitive (default) enables everything but grades and feedback. restricted enables those too. public disables every data tool.

PURDUE_MCP_AI_PERMITTED_COURSES

(none)

Comma-separated course codes (e.g. CS 18000, MA 26100) whose syllabus you checked and which allow AI with course materials. Matches the course code or the start of the course name, ignoring case and spacing. * is rejected.

PURDUE_MCP_AUTH_MODE

oauth

oauth or browser.

PURDUE_MCP_OAUTH_CLIENT_ID

–

Issued by Purdue's Brightspace admins for an approved OAuth 2.0 app.

PURDUE_MCP_OAUTH_CLIENT_SECRET

–

Only if the registered app is confidential. Prefer the OS keyring or your client's secret store.

PURDUE_MCP_OAUTH_REDIRECT_PORT

8765

The registered redirect URI must be http://127.0.0.1:<port>/callback.

PURDUE_MCP_BROWSER_MODE_ACKNOWLEDGED

false

Must be true to use browser mode. Read POLICY_COMPLIANCE.md §4 first.

PURDUE_MCP_MAX_REQUESTS_PER_HOUR

300

Capped at 600.

PURDUE_MCP_AUDIT_LOG

true

Metadata-only log at ~/.local/state/purdue-brightspace-mcp/audit.jsonl.

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:read

Development

pip install -e ".[dev]" && pytest

The 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 tools
assignment_submission_statusB
Read-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_statusA
Read-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_announcementsB
Read-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_outlineB
Read-onlyIdempotent

Module and topic titles for one course (no file contents). Purdue Sensitive data.

Inputs: course_id (required). Returns: object

get_my_gradesA
Read-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_assignmentsA
Read-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_coursesB
Read-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_datesB
Read-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

    A3.6/5.0

    Scored across 10 tools

    Disambiguation4/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers