blackboard-learn-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
blackboard-learn-mcp
A standalone Model Context Protocol server wrapping the Blackboard Learn REST API. Point any MCP-compatible client at it — Claude Desktop, Cursor, agent-board, or anything else — and get structured access to courses, grades, assignments, announcements, and more.
Why standalone?
The integration logic lives here, not in the client. Tools like agent-board, Claude Desktop, and Cursor all connect the same way. Build it once, use it everywhere. Blackboard's own team could point internal tooling at this server without touching any frontend code.
Related MCP server: Learning MCP Suite
Architecture
┌─────────────────────────────────────────────────┐
│ Any MCP Client │
│ (Claude Desktop · Cursor · agent-board · ...) │
└──────────────────────┬──────────────────────────┘
│ MCP Protocol (HTTP or stdio)
▼
┌─────────────────────────────────────────────────┐
│ blackboard-learn-mcp (this repo) │
│ │
│ Auth layer → OAuth2, role gate, FERPA, │
│ rate limiting, PII scrub │
│ Tools (40) → student, instructor, admin, │
│ parent, grade write-back, │
│ webhook-subscription tools │
│ Metrics → Prometheus /metrics │
│ Audit log → structured JSON → stdout │
└──────────────────────┬──────────────────────────┘
│ REST API
▼
Blackboard Learn
(your instance or sandbox)Diagrams and generated visuals
bb-mcp has no web UI, so these are generated from the real tool manifest, RBAC policy and docs/diagrams/*.mmd by the visual-docs workflow.



Quick start
cp .env.example .env # Fill in BB_CLIENT_ID, BB_CLIENT_SECRET, BB_BASE_URL
docker compose -f config/docker-compose.yml up -dDevelopment
All checks run via Docker — no local Node.js required.
# Run all tests (151 tests, TypeScript)
docker compose -f config/docker-compose.yml --profile test run --rm test
# Full quality gate: lint + coverage + audit + complexity
make docker-test
# Individual targets
make docker-lint # lint only
make docker-build # production imagePre-commit hooks (type-check on commit, tests on push):
pip install pre-commit && pre-commit install && pre-commit install --hook-type pre-pushSee .github/workflows/ci.yml for the full CI pipeline.
Journeys (nightly, no AI): tests/journeys/ drives the real server over HTTP (health, manifest, the 401 gate, an MCP session, an RBAC refusal) and checks the Pages site at 1440 px and 375 px. Run them in the Playwright image with docker run --rm -v "$PWD:/w" -w /w -e CI=true mcr.microsoft.com/playwright:v1.64.1-jammy sh -c "npm ci && npm run test:journeys". Failures become bot:journey issues; the generated BUGS.md lives on the bot/journeys branch (contract).
Makefile reference
make docker-up # Build and start the standalone bb-mcp container
make docker-logs # Follow container logs
make docker-doctor # Safe env readiness report from inside the container
make docker-probe # Validate Blackboard credentials + minimal API call
make docker-manifest # Print the provider manifest from the built image
make docker-tools # Print the published tool catalog from the built image
make docker-down # Stop the standalone stackDocker (recommended)
cp .env.example .env
# Fill in BB_CLIENT_ID, BB_CLIENT_SECRET, BB_BASE_URL
docker compose -f config/docker-compose.yml up -dRepo-local standalone commands:
make docker-up # Build and start the standalone bb-mcp container
make docker-logs # Follow container logs
make docker-doctor # Safe env readiness report from inside the container
make docker-probe # Validate Blackboard credentials + minimal API call
make docker-manifest # Print the provider manifest from the built image
make docker-tools # Print the published tool catalog from the built image
make docker-down # Stop the standalone stackThe standalone compose stack keeps the same Dockerfile path used by agent-board, but now adds a more confined runtime posture: read-only filesystem, dropped Linux capabilities, no-new-privileges, and a small /tmp tmpfs for Node runtime needs.
Server is live at http://localhost:3100.
Endpoint | Description |
| MCP protocol entry point |
| Liveness probe |
| Prometheus text format |
| Provider contract with capabilities and tool manifest |
| Start the OAuth Authorization Code flow |
| Complete OAuth code exchange and return a managed session |
| Dedicated SSE stream for incremental |
cp .env.example .env
npm install
npm run dev # tsx watch — hot reloadstdio mode (Claude Desktop / Cursor)
npm run build
node dist/index.js --stdioCLI inspection commands
# Show available runtime modes and inspection commands
node dist/index.js --help
# Print the provider manifest without starting the server
node dist/index.js --manifest
# List the published tools with role coverage
node dist/index.js --tools
# Emit a safe environment readiness report (no secrets printed)
node dist/index.js --doctor
# Validate Blackboard credentials and a minimal API call
node dist/index.js --probeValidating with MCP Inspector
npm run inspect
# or, via Docker (matches CI's build):
make docker-inspectBoth run the official MCP Inspector CLI's tools/list method over a real stdio handshake against node dist/index.js --stdio, using config/mcp-inspector.config.example.json (checked-in, placeholder credentials — Inspector spawns the server with a sanitized environment that does not inherit your shell or .env, so BB_CLIENT_ID/BB_CLIENT_SECRET must come from the config file's env block or repeated -e KEY=value flags; any non-empty values work here since this only validates the transport/protocol/schema layer, not a live Blackboard connection — see --probe above for that). Currently passes with 0 errors (40 schema-portability warnings, all caller_identity: {} accepting any value — tracked separately in TASKS.md under "Add JSON schemas for all shipped tool inputs").
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"blackboard-learn": {
"command": "node",
"args": ["/path/to/bb-mcp/dist/index.js", "--stdio"]
}
}
}Configuration
Copy .env.example to .env and set:
Variable | Required | Description |
| ✅ | OAuth2 app client ID from developer.blackboard.com |
| ✅ | OAuth2 app client secret |
| ✅ | Base URL of your Blackboard Learn instance |
| — | Override the OAuth callback URL (defaults to |
| — | Optional scope string for the authorization code flow |
| — | Override Blackboard authorization endpoint path |
| — | Override Blackboard token endpoint path |
| — | HTTP port (default |
| — | Bind address (default |
| — |
|
| — | Publicly reachable base URL of this server (e.g. |
| Optional second factor | If set with OIDC, send it as |
| — | Paths to a PEM cert chain and matching private key. Set both to serve HTTPS directly instead of plain HTTP. |
| Alternative to | Set to |
| Required for non-loopback deployments | Validate signed RS256 bearer access tokens against the configured issuer, API audience, and JWKS endpoint. Set all three together; provider-specific SDKs are not required. |
| — | Claim path for stable end-user ID (default |
| — | Claim path containing the role or group values (default |
| Required when OIDC is enabled | Explicit comma-separated allowlist mapping institution-controlled claim/group values to |
| — | Signed claim that must be boolean |
| — |
|
| — | Prometheus push gateway URL (optional) |
| — | Comma-separated tool names requiring FERPA auth (default: |
| — | Max tool calls per minute for student role (default |
| — | Max tool calls per minute for instructor role (default |
| — | Max tool calls per minute for admin role (default |
| — | Max tool calls per minute for parent role (default |
Getting Blackboard credentials:
Register a REST API application at developer.blackboard.com. Use the free developer sandbox for testing — no live Blackboard instance required.
Authorization Code flow
bb-mcp now supports an operator-driven OAuth Authorization Code flow in addition to the existing client credentials probe path.
Visit
GET /oauth/authorizeto start the flow.Blackboard redirects back to
GET /oauth/callback.bb-mcp validates the
state, performs PKCE-backed token exchange, and returns a managed session payload.
For non-browser operators, GET /oauth/authorize?format=json returns the authorization URL and redirect URI without issuing an HTTP redirect.
Tools
Every tool requires a caller_identity argument:
{
"caller_identity": {
"userId": "bbuser123",
"role": "student",
"clientApp": "agent-board"
}
}For FERPA-restricted tools, add "ferpa_authorized": true — the calling application is responsible for asserting this only after real identity verification.
Student tools
Tool | Description |
| Courses the caller is enrolled in |
| Alias for |
| Assignments due within N days, sorted by due date |
| Grade breakdown across all courses or one course |
| Course modules and materials, with optional keyword search |
| Alias for |
| Instructor comments, rubric scores, and annotations |
| Course announcements |
| Submit an assignment attempt with optional student comments |
Instructor tools
Tool | Description | FERPA required |
| Enrolled users for a course, including user IDs and usernames | — |
| Course-wide or user-scoped grade details, optionally filtered to one column | ✅ |
| Who submitted, who hasn't, timestamps | ✅ |
| Mean, median, std dev, A/B/C/D/F buckets | ✅ |
| Participant count and post excerpts for a thread | — |
| Students with low grades or many missing submissions | ✅ |
| AI-assisted announcement draft, optionally posted | — |
Grade write-back tools
Tool | Description | FERPA required |
| Creates a student-visible content item + linked grade column in one call | — |
| Creates a gradebook column only (no content item) | — |
| Updates (or creates) a student's grade attempt for a column | — |
| Deletes a student's grade attempt for a column | — |
| Marks a student's grade as exempt for a column | — |
| Returns details of a specific grade column | — |
All require instructor or admin role.
Admin tools
Tool | Description | FERPA required |
| Paginated user directory with optional search | ✅ |
| Single user record by ID | ✅ |
| Enrollments filtered by course, user, or both | ✅ |
| Enrolls a user in a course | — |
| Updates an enrollment's role/availability | — |
| Removes an enrollment | — |
| Institutional audit logs — Blackboard's own (when available) plus bb-mcp's local access-audit trail | ✅ |
All require admin role.
Parent tools (guardian-scoped, read-only)
Tool | Description |
| Students the caller is a registered guardian/observer for |
| Course enrollments for one or all children |
| Grade summaries for one or all children |
| Upcoming assignments across children |
| Course announcements relevant to children |
All require parent role.
Webhook subscription tools
Tool | Description |
| Lists registered Blackboard webhook subscriptions |
| Returns a single webhook subscription |
| Registers a new webhook subscription |
| Updates an existing subscription |
| Removes a subscription |
All require admin role. This is subscription registration only — receiving inbound webhook calls and bridging them to the MCP SSE transport is tracked in ROADMAP.md's 2027 section.
Shared tools
Tool | Description |
| Full-text search across content in one or all courses |
MCP Resources
URI | Description |
| Full course object as JSON |
Identity & access control
Remote end-user authentication (OIDC) — every non-loopback deployment must configure OIDC_ISSUER, OIDC_AUDIENCE, and OIDC_JWKS_URI. A shared MCP_API_KEY authenticates a client application, not the person represented by caller_identity. The HTTP boundary verifies the RS256 signature against the configured JWKS, exact issuer, audience, expiration, and time claims, then derives the principal from signed claims. Client-supplied identity values must match the verified principal and cannot elevate role or FERPA authorization. Entra ID, Okta, and other OIDC providers are supported through configuration. The existing Blackboard OAuth authorization-code flow remains separate because it creates Blackboard API sessions, not general-purpose institutional identity tokens.
When OIDC is enabled, send the user's access token as Authorization: Bearer <OIDC_ACCESS_TOKEN>. If MCP_API_KEY is also configured, send it as X-MCP-API-Key. Do not send access tokens over plain HTTP.
mTLS — OIDC_MTLS_MODE=required requires a trusted client certificate and OIDC. optional permits OIDC without a certificate but rejects an explicitly presented untrusted certificate. Both direct modes require TLS_CERT_PATH and TLS_KEY_PATH. trusted-proxy is for mTLS terminated at a trusted gateway/service mesh; it requires TRUST_PROXY_TLS=true, which forces a loopback bind, and the proxy must strip/rewrite X-Client-Cert-Verified to SUCCESS only after certificate verification. The proxy must strip/rewrite the client-certificate header, and every process sharing the listener's network namespace must be trusted; loopback prevents remote direct access but does not isolate the listener from other local processes.
Loopback-only deployments can still use the legacy local-client flow without OIDC. It is not permitted on network-reachable binds.
Once authenticated, the authorization layer enforces:
Verified identity — in OIDC mode,
caller_identity.userId,role, andferpa_authorizedcannot override signed claims. Contradictory user/role claims and forged FERPA elevation are rejected.Rate gate — per-role, per-minute call limits prevent bulk data extraction; 429 responses include a retry-after interval.
Role gate — instructor-only tools reject student callers; unknown tools are denied by default.
FERPA gate — protected student-data tools require a signed, server-verified
ferpa_authorized: trueclaim in OIDC mode.Course entitlement gate — grade write-back tools verify that the caller is enrolled in the target course as Instructor, TeachingAssistant, or CourseBuilder. The admin role retains its documented org-wide bypass.
Every access attempt (granted or denied) is written to stdout as structured JSON and kept in a bounded in-memory ring buffer. User identifiers in bb-mcp's local audit trail are SHA-256 hashed before emission or storage. The separate Blackboard /audit/logs response is passed through as Blackboard provides it.
Every tool response is also scrubbed before it reaches the MCP client — src/output-scrub.ts strips email addresses from tool payloads centrally via withMetrics().
Example local audit event:
{
"timestamp": "2026-03-24T10:00:00.000Z",
"event": "access.granted",
"tool": "get_my_grades",
"subject": "anon:a3f9c1e02b47",
"role": "student",
"courseId": null,
"clientApp": "agent-board",
"reason": null,
"piiRedaction": "hashed-subject"
}This format is suitable for ingestion by log aggregators such as Datadog, CloudWatch, and Loki.
Metrics
GET /metrics returns Prometheus-compatible text:
bb_mcp_tool_calls_total{tool="get_my_courses"} 42
bb_mcp_tool_errors_total{tool="get_my_grades"} 1
bb_mcp_tool_avg_duration_ms{tool="get_upcoming_assignments"} 238Set METRICS_PUSH_URL to push to a Prometheus push gateway every 60 seconds.
agent-board integration
The server runs as a service in agent-board's Docker stack. The connector config lives at agent-board/config/connectors.json:
{
"name": "Blackboard Learn",
"mcp_server": "http://bb-mcp:3100",
"system_prompt": "You are a helpful study assistant...",
"safety_config": "strict",
"guided_prompts": [
"What do I have due this week?",
"How am I doing in my courses?",
"Summarize what I missed"
]
}agent-board proxies MCP calls through POST /api/mcp/blackboard-learn/proxy, keeping credentials server-side.
Project structure
bb-mcp/
├── src/
│ ├── index.ts Entry point — HTTP + stdio transports
│ ├── config.ts Env validation and rate-limit config
│ ├── bb-client.ts Blackboard REST API client (OAuth2 auto-refresh)
│ ├── auth.ts Rate limit, role gate, FERPA guard, audit logging
│ ├── rbac.ts Tool-to-role policy map
│ ├── oauth.ts PKCE authorization code flow + session store
│ ├── manifest.ts Provider manifest builder (GET /manifest)
│ ├── metrics.ts Prometheus metrics + withMetrics() wrapper
│ │ (also applies output-scrub to every tool result)
│ ├── privacy.ts PII scrubbing (audit logs) and subject hashing
│ ├── output-scrub.ts PII scrubbing (tool-call responses to the client)
│ ├── schemas.ts Shared Zod schemas
│ ├── cli.ts CLI subcommands (--doctor, --probe, --tools, etc.)
│ ├── constants.ts SERVER_NAME, SERVER_VERSION
│ ├── types.ts Domain types (BbCourse, BbGrade, etc.)
│ └── tools/
│ ├── student.ts Student-facing tools (9 incl. aliases)
│ ├── instructor.ts Instructor-facing tools (7)
│ ├── grade-writeback.ts Grade write-back + create_assignment (6)
│ ├── admin.ts Admin directory/enrollment/audit tools (7)
│ ├── parent.ts Guardian-scoped read-only tools (5)
│ ├── webhook-tools.ts Webhook subscription CRUD (5)
│ └── shared.ts search_course_materials (1)
├── config/
│ ├── docker-compose.yml Standalone stack (port 3100)
│ ├── vitest.config.ts Test runner config
│ └── eslint.config.mjs Lint config
├── Dockerfile Multi-stage build (node:22-slim)
├── .env.example
├── package.json
└── tsconfig.jsonSandbox testing
No live Blackboard instance needed. Register a free developer account at developer.blackboard.com, create a REST API application, and use the provided sandbox URL as BB_BASE_URL. The sandbox exposes the full API surface with pre-populated test data.
Docs Index
Every doc at the repo root (other than this README) and under docs/ (the files mirrored into the Obsidian vault), so none of them is orphaned.
Changelog —
docs/CHANGELOG.mdFeatures —
docs/FEATURES.mdMetrics —
docs/METRICS.mdROADMAP —
docs/ROADMAP.mdTASKS —
docs/TASKS.md
docs/archive/
Delivery Pipeline Handoff —
docs/archive/HANDOFF-mcp-provider-contract-20260403.mdArchived docs —
docs/archive/README.mdBlackboard Learn — MCP Server & Agent-Board Integration —
docs/archive/blackboard-learn-mcp-plan.mdProject: blackboard-learn-mcp + agent-board Edtech Integration —
docs/archive/blackboard-mcp-full-plan.md
License
MIT
Community Standards
Shared community policies are centralized in https://github.com/nitsuah/.github:
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
MCP adapter for the Paxaver school community platform. Streamable HTTP, OAuth 2.1, capability auth.
One MCP URL for all your connectors — scoped writes, enforced constraints, and a full audit trail.
One MCP endpoint for your company's tools, with per-person sign-in, policy and audit.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables MCP-compatible clients to read courses, assignments, announcements, files, and grades from a Canvas LMS instance.10-
- AlicenseNot gradedqualityBmaintenanceEnables users to link their Ed Discussion, Moodle and OnTrack accounts through a cloud-hosted SSO broker and then browse course materials, threads, deadlines, grades, tasks and attendance-code evidence from an OAuth-capable MCP client. Course discovery and binding tools let users associate courses across platforms, with per-user scoped access and revocation controls.5PolyForm Noncommercial 1.0.0
- AlicenseNot gradedqualityAmaintenanceEnables students, instructors, and account administrators to interact with Canvas LMS APIs for managing courses, assignments, submissions, grades, enrollments, users, accounts, reports, discussions, modules, and files through MCP clients.21 npmMIT
- AlicenseAqualityBmaintenanceEnables MCP clients to search and describe API routes, retrieve people, admissions, academics, and billing records, download exports, and optionally make changes against a school information system, read-only by default.671 npmMIT