portflow-docent-mcp
Provides read-only access to Canvas courses, assignments, rubrics, submissions, and Portflow submission links so a teacher can review submitted student work; it does not write grades or feedback to Canvas.
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., "@portflow-docent-mcp Maak per student een conceptoordeel voor opdracht 'Portfolio eind' in cursus Cyber Security S3."
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.
portflow-docent-mcp
Onofficiële, alleen-lezen MCP-server voor docenten die met Drieam Portflow en Canvas werken. Je bekijkt wat studenten hebben ingeleverd (Canvas-opdracht → Portflow-snapshot of -portfolio), haalt bestanden lokaal binnen en laat Claude een conceptoordeel opstellen langs de rubric. Dat oordeel wordt alleen als Markdown-bestand op je eigen computer opgeslagen.
Niet verbonden aan Drieam, Instructure of Fontys. Gebruikt Portflows interne API, die zonder aankondiging kan veranderen. Gebaseerd op portflow-mcp van christianchill (MIT).
Wat hij wel en niet doet
Wel | Niet |
Canvas: je cursussen, opdrachten, rubric, inleveringen (met Portflow-links) | Cijfers of feedback in Canvas zetten |
Portflow: collecties, evidence, doelen en feedback van portfolio's waar je toegang toe hebt | Iets in Portflow aanmaken, wijzigen of verwijderen |
Bestanden van evidence downloaden naar je beoordelingsmap | Lokale bestanden uploaden |
Conceptoordelen opslaan; een oudere versie blijft altijd bewaard | Buiten de beoordelingsmap schrijven |
De server stuurt alleen GET-requests naar Portflow en Canvas. Dat controleert de test ook. De enige uitzondering is het optionele automatisch inloggen (zie hieronder), dat het LTI-loginformulier nabootst.
Related MCP server: canvas-session-mcp
Installatie (macOS)
cd ~/pad/naar/portflow-docent-mcp
npm install
npm link # maakt de commando's portflow-docent-mcp en portflow-docent-token beschikbaar
npm test # optioneel: test alle tools tegen een lokale nep-Portflow en nep-CanvasVereist Node.js 18 of nieuwer.
Configuratie
Alles via omgevingsvariabelen in de MCP-config. De standaardwaarden gaan uit van Fontys ICT.
Variabele | Standaard | Betekenis |
|
| Jouw Canvas-omgeving |
|
| Portflow-host (controleer in DevTools) |
|
| De enige map waarin de server schrijft |
| uit |
|
|
| Maximale lengte van een tool-antwoord; zet lager (bv. |
| uit |
|
|
| Alleen voor automatisch inloggen: het pad in de adresbalk als je in Canvas op Portfolio klikt |
Tokens instellen (in Terminal, nooit in de chat)
Canvas-token (nodig voor inleveringen en rubrics): Canvas → Account → Instellingen → Nieuw toegangstoken. Kies een korte vervaldatum. Kopieer het token en voer dit uit:
portflow-docent-token canvasPortflow-token (8 uur geldig): open in Chrome Canvas → Portfolio, open DevTools → Network, filter op
api/v1, rechtsklik een request → Copy as cURL. Voer dan dit uit:portflow-docent-tokenControleren:
portflow-docent-token status
Tokens staan in ~/.portflow-docent-token en ~/.portflow-docent-canvas-token (rechten 600) en het klembord
wordt gewist. Opruimen doe je met portflow-docent-token clear all.
Koppelen aan Claude
Claude Code:
claude mcp add portflow-docent --scope user -- node /VOLLEDIG/PAD/portflow-docent-mcp/server.jsClaude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"portflow-docent": {
"command": "/opt/homebrew/bin/node",
"args": ["/VOLLEDIG/PAD/portflow-docent-mcp/server.js"],
"env": {
"CANVAS_BASE_URL": "https://fontysict.instructure.com",
"PORTFLOW_REVIEW_DIR": "/Users/pascal/Portflow-beoordelingen",
"PORTFLOW_PSEUDONYMIZE": "true"
}
}
}
}Gebruik het volledige pad naar node (which node).
Koppelen aan AnythingLLM (Desktop, v1.8.0 of nieuwer)
Voeg dezelfde mcpServers-entry toe aan
~/Library/Application Support/anythingllm-desktop/storage/plugins/anythingllm_mcp_servers.json,
zet de server aan onder Agent Skills → MCP Servers, en roep hem in een workspace aan met @agent.
Voeg voor een lokaal model "PORTFLOW_MAX_OUTPUT_CHARS": "12000" toe aan env.
Werkwijze
Bijvoorbeeld: "Beoordeel de inleveringen voor opdracht 'Portfolio eind' in cursus Cyber Security S3. Maak per student een conceptoordeel langs de rubric en noem bij elk criterium op welke evidence je je baseert."
Claude doorloopt dan:
list_my_courses→list_assignments→get_assignment_rubriclist_submissions→ per student eenstudent_labelenportflow_linksget_submitted_portfolio(metfrozen_portfolio_id) ofresolve_portflow_link→ de ingeleverde snapshotget_collection/get_evidence→ de inhouddownload_evidence_file→ bijlagen in<map>/<opdracht>/<student>/bestanden/save_assessment_draft→<map>/<opdracht>/<student>/oordeel.md
Het oordeel is een concept. Jij leest het na, past het aan en zet het cijfer zelf in Canvas.
Ingeleverde snapshots ("frozen portfolios")
Een ingeleverd portfolio is in Portflow een frozen portfolio. In SpeedGrader haalt Portflow
/api/v1/frozen-portfolios/<id> op en leest daarna met de gewone portfolio-endpoints, met datzelfde id.
Zie API-NOTES.md.
get_submitted_portfoliohaalt het overzicht op en geeft eenportfolio_idterug voor de andere tools.Het id komt idealiter uit
list_submissions→frozen_portfolio_id. Is dat leeg, open dan de inlevering in SpeedGrader met DevTools (Network, filterdrieam) en zoek de requestfrozen-portfolios/<id>.Token: kopieer het Portflow-token bij voorkeur uit een request in SpeedGrader (bijvoorbeeld
frozen-portfolios/<id>), niet uit de gewone Portfolio-pagina. Het is nog niet getest of een gewoon token ook bij de snapshots van studenten kan.
Risico's en afspraken
AVG: met deze server gaan portfolio's van studenten (persoonsgegevens) naar een AI-dienst. Stem dat af met je instelling (privacy officer of FG) voordat je hem met echte studentdata gebruikt. Zet in elk geval
PORTFLOW_PSEUDONYMIZE=true, maar besef dat de inhoud van portfolio's zelf ook namen kan bevatten.Portflow-AUP: Drieam verbiedt het gebruik van Portflow om AI te "trainen of te voeden", en ook onredelijk veel of herhaalde API-aanroepen. Vraag Drieam of dit gebruik is toegestaan.
Canvas-token: met een docenttoken kan alles wat jij in Canvas kunt. Geef het een korte vervaldatum. Laat
PORTFLOW_AUTO_LOGINuit tenzij je het echt nodig hebt: dan wordt het token omgezet in een volledige Canvas-websessie.Interne API: kan na een Portflow-update ongemerkt breken.
Licentie
MIT. Zie LICENSE (met naamsvermelding van het oorspronkelijke project).
Available Tools
18 toolsdownload_evidence_fileA
Download a file attached to an evidence version into the local review folder (//bestanden/), so you can open it yourself. file_id comes from get_evidence → latest_version.files[].id.
Inputs: file_id (required), student (required), assignment (required), portfolio_id (required), +1 more.
get_assignment_rubricARead-only
Assignment description and its Canvas rubric (criteria, ratings, points). Use this as the assessment framework when drafting an oordeel.
Inputs: course_id (required), assignment_id (required).
get_collectionARead-only
Full view of one collection: description, goals with their evidence, evidence not in a goal, and feedback.
Inputs: portfolio_id (required), collection_id (required).
get_evidenceARead-only
Full view of one evidence item: details, latest version (with file ids), version history, goals, collections and feedback.
Inputs: evidence_id (required), portfolio_id (required).
get_submitted_portfolioARead-only
Overview of a submitted portfolio snapshot (Portflow 'frozen portfolio'): its metadata plus sections and collections. The returned portfolio_id works with list_collections, get_collection, list_evidence, get_evidence and list_goals. Get the id from list_submissions → frozen_portfolio_id, from resolve_portflow_link, or from DevTools in SpeedGrader (request /api/v1/frozen-portfolios/).
Inputs: frozen_portfolio_id (required).
list_assignmentsCRead-only
Assignments in a Canvas course (id, name, due date, submission types, whether a rubric is attached).
Inputs: course_id (required), search.
list_collectionsARead-only
Collections in a portfolio, grouped by section. portfolio_id = the student's portfolio (from a link or portflow_get).
Inputs: portfolio_id (required).
list_evidenceCRead-only
Evidence items in a portfolio, newest first.
Inputs: portfolio_id (required), page, per_page.
list_goalsCRead-only
Goals and goal sets (learning outcomes) in a portfolio, plus progress reviews.
Inputs: portfolio_id (required).
list_my_coursesCRead-only
Canvas courses where you are a teacher.
Inputs: no named parameters.
list_review_folderBRead-only
List the files in the local review folder (all assignments, or one).
Inputs: assignment.
list_submissionsBRead-only
Submissions for a Canvas assignment, with any Portflow links (submitted snapshots) extracted. Returns a student_label per submission: use that label for download_evidence_file and save_assessment_draft.
Inputs: course_id (required), assignment_id (required), only_submitted.
portflow_getARead-only
Read-only GET on any Portflow API path under /api/v1 (for endpoints this server has no dedicated tool for, e.g. snapshots or portfolios shared with you). Example path: /portfolios/123/shares?page=1. Set all_pages to follow pagination.
Inputs: path (required), all_pages.
read_assessment_draftBRead-only
Read the current draft assessment for a student.
Inputs: student (required), assignment (required).
resolve_portflow_linkARead-only
EXPERIMENTAL. Given a Portflow link from a submission (see list_submissions → portflow_links), try likely Portflow API paths to fetch the submitted snapshot/portfolio. Reports every path tried. If none work, use portflow_get with the path you see in DevTools when you open that link yourself.
Inputs: url (required).
save_assessment_draftA
Save a DRAFT assessment (oordeel) as a Markdown file in the local review folder: //oordeel.md. An existing draft is kept as oordeel-.md, never overwritten. Nothing is sent to Canvas or Portflow. Structure it along the rubric criteria (get_assignment_rubric), cite the evidence you based each judgement on, and mark anything the teacher still has to verify. The teacher decides the final grade.
Inputs: student (required), markdown (required), assignment (required), user_id, +3 more.
token_statusBRead-only
Check the Portflow and Canvas login, and show where local review files are stored.
Inputs: no named parameters.
whoamiARead-only
Your own Portflow user profile (to confirm you are logged in as the teacher).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools target a clear resource+action (list_assignments, get_evidence, save_assessment_draft), but three tools overlap on fetching portfolio data: get_submitted_portfolio, resolve_portflow_link (explicitly 'EXPERIMENTAL') and portflow_get all aim at the same goal via different paths. token_status and whoami also both answer 'am I logged in?', which invites misselection.
The dominant pattern is verb_noun snake_case (list_collections, get_evidence, download_evidence_file, save_assessment_draft), applied consistently across most of the surface. Deviations are minor: whoami and token_status are not verb_noun, and portflow_get inverts the convention (namespace_verb instead of get_portflow).
At 18 tools the set is on the heavy side for a single review workflow, and a few slots are arguably redundant (resolve_portflow_link as an experimental fallback alongside the generic portflow_get). The core read/write pipeline does justify most of the count, so it is borderline rather than bloated.
The surface covers the full teacher workflow end to end: auth check, course/assignment/rubric discovery, submissions, portfolio and evidence traversal, file download, and draft assessment read/write plus folder listing. Gaps are minor—no delete/cleanup of drafts, no edit-in-place beyond re-save, and no way to push feedback back, though that appears intentionally out of scope.
Maintenance
Related MCP Connectors
Manage your Canvas coursework with quick access to courses, assignments, and grades. Track upcomin…
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
Study from your own classes: synced Canvas coursework, notes, flashcards and study progress.
Read students, guardians, classes, attendance, assignments and fees; add notes in DreamClass.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to automatically pull Canvas LMS course materials into Obsidian, syncing files, assignments, grades, and announcements organized by course and module.-
- AlicenseNot gradedqualityCmaintenanceConnects Claude, Cursor, Codex and other AI assistants to Canvas LMS through a normal browser sign-in (SSO and MFA included) instead of an access token, letting them read courses, assignments, rubrics, announcements, discussions, grades, calendar and inbox, and read or save course files locally. It is strictly read-only, sending only GET requests, and keeps all session data on the user's own machine.4MIT
- AlicenseAqualityCmaintenanceLets AI assistants read a student's Canvas LMS courses, modules, deadlines, announcements and course files through the Canvas REST API, using university single sign-on with MFA instead of an API token, and download lecture slides into per-course folders. All access is read-only and works with any Canvas site, defaulting to Oxford.92MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Canvas LMS courses, assignments, deadlines, announcements, modules, files, pages, discussions, grades, and calendar events through a personal API token, plus a locally computed grade-progress dashboard. All Canvas access is read-only, with only local state ever written.MIT