npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

brightspace-mcp-server

v1.2.2

Published

MCP server for Brightspace (D2L). Check grades, due dates, assignments, announcements, syllabus, rosters and more via Claude, ChatGPT, Cursor, Windsurf, or any MCP client.

Readme

Brightspace MCP Server

By Rohan Muppa, ECE @ Purdue

Talk to your Brightspace courses with AI. Ask about grades, due dates, announcements, and more. Works with Claude, ChatGPT, Cursor, and Windsurf.

This is an MCP (Model Context Protocol) server that connects your AI to D2L Brightspace so it can pull your grades, assignments, syllabus, and course content on demand.

Works with any school that uses D2L Brightspace, including Purdue, USC, and hundreds more.

Try It

"Download my lecture slides and turn them into interactive flashcards" "Grab every assignment rubric and build me a visual dashboard of what I need to hit for an A"

Install

You need: Node.js 18+ (download the LTS version)

Option 1: Let your AI do it

Paste this into Claude Code, Cursor chat, Windsurf, Copilot, Codex, or any AI coding assistant:

I want to connect my Brightspace LMS to this AI client using the brightspace-mcp-server package on npm. Here's the repo: https://github.com/RohanMuppa/brightspace-mcp-server

Do everything needed to get it working:

1. First, check if Node.js 18+ is installed. If not, tell me how to install it and stop.

2. Run the setup wizard to save my Brightspace credentials:
   npx brightspace-mcp-server setup
   (If I'm a Purdue student, use: npx brightspace-mcp-server setup --purdue)
   This will open a browser for login and MFA. Let me complete that before continuing.

3. After setup finishes, configure this AI client to use the MCP server.
   The server command is: npx -y brightspace-mcp-server@latest
   Search the internet for how to configure MCP servers in general for
   whatever client I'm using. Every client has a different config format
   and file path. On Windows, npx must be wrapped with cmd /c.

4. Tell me to restart this AI client so it picks up the new MCP server.

Option 2: Run it yourself

npx brightspace-mcp-server setup

Purdue students can add --purdue to skip entering the school URL:

npx brightspace-mcp-server setup --purdue

The wizard walks you through login, MFA, and auto configures Claude Desktop and Cursor. Restart your AI client when it finishes.

Search your client's docs for how to add an MCP server. The server command to register is:

npx -y brightspace-mcp-server@latest

On Windows, npx must be wrapped: cmd /c npx -y brightspace-mcp-server@latest

You still need to run npx brightspace-mcp-server setup first to save your credentials.

Session Expired?

Sessions re-authenticate automatically. If auto-reauth fails (e.g., you missed the Duo push):

npx brightspace-mcp-server auth

What You Can Ask About

| Topic | Examples | |-------|---------| | Grades | "Am I passing all my classes?" · "Compare my grades across all courses" | | Assignments | "What's due in the next 48 hours?" · "Summarize every assignment I haven't turned in yet" | | Announcements | "Did any professor post something important today?" · "What did my CS prof announce this week?" | | Course content | "Find the midterm review slides" · "Download every PDF from Module 5" | | Roster | "Who are the TAs for ECE 264?" · "Get me my instructor's email" | | Discussions | "What are people saying in the final project thread?" · "Summarize the latest discussion posts" | | Planning | "Build me a study schedule based on my upcoming due dates" · "Which class needs the most attention right now?" |

Troubleshooting

"Not authenticated" → Run npx brightspace-mcp-server auth

AI client not responding → Quit and reopen it completely (not just close the window)

Need to redo setup → Run npx brightspace-mcp-server setup again

Config location~/.brightspace-mcp/config.json (you can edit this directly)

Browser launch times out (Windows) → Open Task Manager, end all Chromium/Chrome processes, and try again. If it persists, add the Playwright Chromium folder to your antivirus exclusion list.

Auth fails in WSL or Docker → Chromium dependencies may be missing. Run npx playwright install-deps chromium to install them. The server automatically adds --no-sandbox for these environments.

Headless login fails (Windows) → SSO login flows can fail in headless mode on Windows. The default is headed (a browser window opens). If you set D2L_HEADLESS=true and auth fails, switch back to headed mode.

Auth hangs or browser won't open

Delete stale session files and retry:

rm -rf ~/.d2l-session/session.json ~/.d2l-session/storage-state.json ~/.d2l-session/browser-data/SingletonLock
npx brightspace-mcp-server auth

Still running an old version after update

npx caches packages locally. Clear the cache to force a fresh download:

npx clear-npx-cache
npx brightspace-mcp-server@latest

Security

  • Credentials stay on your machine at ~/.brightspace-mcp/config.json (restricted permissions)
  • Session tokens are encrypted (AES-256-GCM)
  • All traffic to Brightspace is HTTPS
  • Nothing is sent anywhere except your school's login page

Contributing & Forking

Want to add your school, build a new tool, or fix something? Fork the repo, make your changes, and open a pull request. If it gets merged, it ships to every user automatically.

git clone https://github.com/RohanMuppa/brightspace-mcp-server.git
cd brightspace-mcp-server
npm install
npm run dev

Add your school: Add a preset to SCHOOL_PRESETS in src/setup.ts. If your school's login flow is different, add a handler in src/auth/.

Add a new tool: Create a file in src/tools/, add the schema in schemas.ts, export it in src/tools/index.ts, and register it in src/index.ts. Use any existing tool as a template.

Run your own version: You can also fork and run it independently. Clone it, build it, and point your AI client to the local build/index.js instead of using npx. No npm needed. Just know that forks don't receive updates from this repo automatically. If your changes could help others, consider opening a PR.

Licensed under the MIT License.

Updates

Automatic. Every time your AI client starts a session, it runs npx brightspace-mcp-server@latest which pulls the newest version from npm. No action needed.

If you ever suspect you're on an old version, run npm cache clean --force to clear the cache.


Proudly made for Boilermakers by Rohan Muppa 🚂

Report a bug · MIT · Copyright 2026 Rohan Muppa