Skip to main content
Glama

my-epitech-mcp

Your my.epitech.eu, as tools an AI agent can use. Moulinette results down to each failing test, projects and deadlines, marks, credits, and more.

Planning and registrations are epiplan's job. This one covers everything else.

What it does

  • Tells you why a moulinette failed: the failing test, its message, the delivery error, the coding style rule

  • Lists your projects with days left and their last run

  • Reads project subjects (PDFs converted to text)

  • Shows marks, defense grids and evaluator comments

  • Explains your credits: acquired, projected, at risk, lost

  • Stays logged in on its own, Microsoft SSO included

What it never does

  • Show other students' names or logins

  • Name your evaluators

  • Launch a moulinette run without a dry run first

  • Write anything unless MY_EPITECH_WRITES=1

  • Go past its write budget

  • Present projected credits as acquired ones

 AI agent ──MCP──▶ server.ts ─▶ tools.ts ─▶ api.ts ─▶ client.ts ─▶ my.epitech.eu/api
 (you ask)          stdio          │           │            │
                                   │    small objects,      └─ tokens.ts: rotating refresh,
                                   │    no classmates'         lock file, then sso.ts:
                                   │    names                  headless Microsoft re-login
                                   └─ dry run + audit log
                                      for the one write
WARNING

Unofficial project. It talks to the same private API as the website, with your own account. Use it at your own risk.

Install

git clone https://github.com/daniilsys/my-epitech-mcp && cd my-epitech-mcp && npm install
node src/cli.ts login                                   # paste the token value, then Ctrl-D
claude mcp add my-epitech -- node "$PWD/src/server.ts"  # or any MCP client

In the DevTools console of a logged-in my.epitech.eu tab:

copy(localStorage['@account']); localStorage.removeItem('@account')

Removing it from the browser matters: the refresh token rotates on every use, so the browser and the server must not share one. The site logs you back in through Microsoft on the next load.

Stay logged in

The refresh token dies after a few days unused. Anything that calls the API every few hours keeps it alive, or run node src/cli.ts keepalive from cron.

For a real safety net, save your Microsoft session once, as epiplan does. When the refresh token is dead, the session is replayed in a headless Chromium and fresh tokens come back without you.

npx playwright-core install chromium-headless-shell
node src/cli.ts login --browser              # visible browser, MFA ok, tick "Stay signed in"
node src/cli.ts import-session session.json  # or reuse an epiplan session.json
CAUTION

The session file opens your whole Microsoft account, mail included. Keep it0600, treat it like a password, and don't use the same one on two machines.

Related MCP server: moodle-mcp

Tools

Dates are Europe/Paris. From the shell, node src/cli.ts <tool> '<json>' runs a read tool, or the dry run of a write tool:

node src/cli.ts moulinette_results '{"failing_only":true}'

Safety

Your agent's own permission prompt on each real write is the last line of defence. Don't set "always allow" on the write tool.

Variable

Default

Purpose

MY_EPITECH_TOKENS

~/.config/my-epitech/tokens.json

Internal access and refresh tokens

MY_EPITECH_SESSION

~/.config/my-epitech/session.json

Saved Microsoft session, for silent re-logins

MY_EPITECH_WRITES

unset

Must be 1 to register the write tool

MY_EPITECH_MAX_WRITES

5

Real writes per process

MY_EPITECH_AUDIT

~/.config/my-epitech/audit.jsonl

Write audit log

Command

What it does

login

Paste the token value (stdin)

login --browser

Log in with Microsoft in a visible browser, save the session

import-session <file>

Reuse a saved session, then log in silently

sso

Silent Microsoft re-login now

status

Token state (never the tokens)

keepalive

Refresh if the access token has less than 3 h left

serve

MCP server on stdio

<tool> [json]

Run a tool from the shell

import { Epitech, EpitechClient, TokenStore, TOOLS } from "my-epitech-mcp";

const tokens = new TokenStore({ file: "/path/tokens.json" });
const ep = new Epitech(new EpitechClient({ tokens }));
await ep.moulinetteResults({ failingOnly: true });

TOOLS[i].input(z) builds each schema with your own zod instance. Write tools expose check (dry run) and apply separately, for hosts with their own confirmation flow.

API notes

What was reverse engineered, endpoint by endpoint, with the pitfalls: docs/API.md. It complements epiplan's notes on auth and planning.

License

MIT

Available Tools

14 tools
epitech_github_statsGitHub activityA
Read-only

My commits and lines added/deleted on the Epitech GitHub organisations, optionally between two dates (YYYY-MM-DD).

Inputs: to, from.

epitech_invitationsProject invitationsC
Read-only

Pending invitations to join a project group.

Inputs: no named parameters.

epitech_marksMarksA
Read-only

Published marks and evaluation grids (defenses, reviews, pitches, exams), newest first, with criteria and evaluator comments. Evaluators are not named. since filters by date. Dates are local time (Europe/Paris): 'YYYY-MM-DD' (midnight) or 'YYYY-MM-DD HH:MM'.

Inputs: limit, since.

epitech_moulinette_historyMoulinette historyB
Read-only

Every moulinette run of one project, oldest first, to see the progression. unit and slug come from epitech_moulinette_results.

Inputs: slug (required), unit (required), year.

epitech_moulinette_resultsMoulinette resultsA
Read-only

Latest automated test run (moulinette / Hermes) of each project this year, newest first: tests passed/total, failure flags (delivery-error, make-error, crash, coding-style-fail…), coding style counts and penalty, coverage. Use project/unit to filter, failing_only for what needs work.

Inputs: unit, limit, project, failing_only.

epitech_moulinette_runMoulinette run detailA
Read-only

One moulinette run in detail: every test with its failure message, coding style errors by rule, coverage, delivery error and traces. Ids come from epitech_moulinette_results.

Inputs: run_id (required), project_instance_id (required).

epitech_notificationsNotificationsC
Read-only

The intranet notification feed: registrations, cancellations, schedule changes, published results.

Inputs: limit.

epitech_peer_evaluationsPeer evaluationsB
Read-only

Peer evaluations I must do (status) and the marks and comments my peers gave me.

Inputs: no named parameters.

epitech_profileProfileB
Read-only

My cohort: cursus, year, semester, promotion, campus. No login or name.

Inputs: no named parameters.

epitech_progressProgressA
Read-only

Where I stand: credits actually acquired, plus the school's projections (credits obtainable with current registrations, maximum still obtainable, units at risk or lost), skill blocks and learning outcomes, blocking exams (TEPitech…), alerts, XP and streak. Projections are not acquired credits: never present them as such.

Inputs: no named parameters.

epitech_projectProject detailB
Read-only

One project: description, dates, my group, my activities (kick-off, follow-ups, defenses) with attendance, subject files, and the moulinette runs I can still launch.

Inputs: project_instance_id (required).

epitech_project_fileProject file textB
Read-only

Text of one project resource, e.g. the subject PDF (path from epitech_project.resources). PDFs are converted to text.

Inputs: path (required), project_instance_id (required).

epitech_projectsProjectsA
Read-only

My projects this year with deadlines (end, days_left), group size and the last moulinette result. status: current (default), upcoming, past, all.

Inputs: status.

epitech_school_calendarSchool calendarC
Read-only

School and company weeks of my year (training planning).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools target clearly distinct resources (marks, notifications, invitations, calendar, GitHub stats), and the moulinette trio is well separated by scope: list summaries, one run in detail, one project's history. The only real friction is the singular/plural pair epitech_projects vs epitech_project and the related epitech_project_file, which rely on descriptions to disambiguate list-view versus detail-view.

    Naming Consistency5/5

    Every tool follows the same epitech_<noun> snake_case convention with no mixing of styles or verb patterns. Singular/plural is used deliberately and consistently to signal list vs single-item access, which is a predictable scheme an agent can learn.

    Tool Count5/5

    14 tools is squarely in the well-scoped range for a student intranet surface covering projects, moulinette results, marks, progress, notifications and calendar. Each tool maps to a distinct data area with no filler entries.

    Completeness4/5

    Read coverage is strong across the whole lifecycle: projects, deadlines, moulinette runs and history, subject files, marks, peer evaluations, progress, notifications, invitations and calendar. The notable gap is action coverage — epitech_project mentions moulinette runs 'I can still launch,' but no tool exists to launch a run, accept an invitation, or register/deregister from a project.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Connects AI agents to the École Directe API to access grades, homework, timetables, school life, messages, and documents.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to access a student's EPFL Moodle data—deadlines, course files, assignments, forums, and grades—through read-only tools.
      12
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables an AI agent to read your my.epitech.eu planning — modules, events, seats, slots and existing bookings — and to register or unregister for activities with mandatory dry runs, guardrails and a write budget. Authenticates via your own Microsoft SSO session without storing a password.
      15
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding assistants to query a student's eLearning assignments and deadlines, timetable, exams, grades, library resources, notices, campus card balance, dorm electricity, and read-only mail, and to download course files.
      28 npm
      5
      MIT