MCP Server Studio
D2L Brightspace MCP server: grades, due dates, assignments, announcements and files. Any school.
Registry name: io.github.RohanMuppa/brightspace
Add to claude_desktop_config.json:
{
"mcpServers": {
"brightspace": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"D2L_BASE_URL": "<D2L_BASE_URL>",
"D2L_SESSION_DIR": "<D2L_SESSION_DIR>",
"D2L_HEADLESS": "<D2L_HEADLESS>",
"D2L_TOKEN_TTL": "<D2L_TOKEN_TTL>",
"D2L_INCLUDE_COURSES": "<D2L_INCLUDE_COURSES>",
"D2L_EXCLUDE_COURSES": "<D2L_EXCLUDE_COURSES>",
"D2L_ACTIVE_ONLY": "<D2L_ACTIVE_ONLY>",
"D2L_CURRENT_ONLY": "<D2L_CURRENT_ONLY>",
"D2L_DEV_MODE": "<D2L_DEV_MODE>",
"D2L_NO_UPDATE_CHECK": "<D2L_NO_UPDATE_CHECK>"
}
}
}
}Run in your terminal:
claude mcp add brightspace -e D2L_BASE_URL='<D2L_BASE_URL>' -e D2L_SESSION_DIR='<D2L_SESSION_DIR>' -e D2L_HEADLESS='<D2L_HEADLESS>' -e D2L_TOKEN_TTL='<D2L_TOKEN_TTL>' -e D2L_INCLUDE_COURSES='<D2L_INCLUDE_COURSES>' -e D2L_EXCLUDE_COURSES='<D2L_EXCLUDE_COURSES>' -e D2L_ACTIVE_ONLY='<D2L_ACTIVE_ONLY>' -e D2L_CURRENT_ONLY='<D2L_CURRENT_ONLY>' -e D2L_DEV_MODE='<D2L_DEV_MODE>' -e D2L_NO_UPDATE_CHECK='<D2L_NO_UPDATE_CHECK>' -- npx -y [email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"brightspace": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"D2L_BASE_URL": "<D2L_BASE_URL>",
"D2L_SESSION_DIR": "<D2L_SESSION_DIR>",
"D2L_HEADLESS": "<D2L_HEADLESS>",
"D2L_TOKEN_TTL": "<D2L_TOKEN_TTL>",
"D2L_INCLUDE_COURSES": "<D2L_INCLUDE_COURSES>",
"D2L_EXCLUDE_COURSES": "<D2L_EXCLUDE_COURSES>",
"D2L_ACTIVE_ONLY": "<D2L_ACTIVE_ONLY>",
"D2L_CURRENT_ONLY": "<D2L_CURRENT_ONLY>",
"D2L_DEV_MODE": "<D2L_DEV_MODE>",
"D2L_NO_UPDATE_CHECK": "<D2L_NO_UPDATE_CHECK>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"brightspace": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"D2L_BASE_URL": "<D2L_BASE_URL>",
"D2L_SESSION_DIR": "<D2L_SESSION_DIR>",
"D2L_HEADLESS": "<D2L_HEADLESS>",
"D2L_TOKEN_TTL": "<D2L_TOKEN_TTL>",
"D2L_INCLUDE_COURSES": "<D2L_INCLUDE_COURSES>",
"D2L_EXCLUDE_COURSES": "<D2L_EXCLUDE_COURSES>",
"D2L_ACTIVE_ONLY": "<D2L_ACTIVE_ONLY>",
"D2L_CURRENT_ONLY": "<D2L_CURRENT_ONLY>",
"D2L_DEV_MODE": "<D2L_DEV_MODE>",
"D2L_NO_UPDATE_CHECK": "<D2L_NO_UPDATE_CHECK>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"brightspace": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"D2L_BASE_URL": "<D2L_BASE_URL>",
"D2L_SESSION_DIR": "<D2L_SESSION_DIR>",
"D2L_HEADLESS": "<D2L_HEADLESS>",
"D2L_TOKEN_TTL": "<D2L_TOKEN_TTL>",
"D2L_INCLUDE_COURSES": "<D2L_INCLUDE_COURSES>",
"D2L_EXCLUDE_COURSES": "<D2L_EXCLUDE_COURSES>",
"D2L_ACTIVE_ONLY": "<D2L_ACTIVE_ONLY>",
"D2L_CURRENT_ONLY": "<D2L_CURRENT_ONLY>",
"D2L_DEV_MODE": "<D2L_DEV_MODE>",
"D2L_NO_UPDATE_CHECK": "<D2L_NO_UPDATE_CHECK>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
D2L_BASE_URL | No | Your school's Brightspace URL. Default: https://purdue.brightspace.com. Normally set by the setup wizard in ~/.brightspace-mcp/config.json instead. |
D2L_SESSION_DIR | No | Local root for separate per-school/account directories containing encrypted tokens and browser storage. Encryption keys are kept in the native credential store. Default: ~/.d2l-session |
D2L_HEADLESS | No | Run browser authentication without a visible window. Set false only for MFA methods that require browser interaction. Default: true |
D2L_TOKEN_TTL | No | Seconds an access token is used before it is re-minted from the session cookie. Default: 3600 |
D2L_INCLUDE_COURSES | No | Comma separated course (org unit) ids to include. Default: all enrolled courses. |
D2L_EXCLUDE_COURSES | No | Comma separated course (org unit) ids to exclude. |
D2L_ACTIVE_ONLY | No | Only return courses whose enrollment is active. Default: true |
D2L_CURRENT_ONLY | No | Only return courses whose Access.StartDate to Access.EndDate window contains now, matching Brightspace's "Current Courses" widget. Default: false |
D2L_DEV_MODE | No | Set to true to record local tool timestamps and safe authentication outcomes in the account session directory. No arguments, results or credentials are logged. Default: false. |
D2L_NO_UPDATE_CHECK | No | Set to any value to disable the startup check against the npm registry for a newer version. |