edupage-mcp
An MCP server that gives an agent read access to a family's EduPage school life — timetables, homework, grades, messages, absences, events, substitutions and canteen menus — plus two optional write actions (sending a teacher a message, ordering/cancelling a meal).
Account & briefing —
get_accountlists the account type, every reachable school and every student (call first to learnstudentnames);get_briefinggives a one-call daily overview per student: today's lessons, homework/exams due soon, recent messages and notices, last week's grades and today's lunch.Timetable & substitutions —
get_timetablereturns lessons by day (period, times, subject, teachers, room, group, changed/cancelled) over a date range;get_substitutionsshows the plan for a class or whole school, including absent teachers.Work & assessment —
get_homeworklists homework and announced exams by due date with attachments and done state;get_gradesreturns marks with weight, points, class average and per-subject weighted averages, filterable by subject, term and school year.Communication & timeline —
get_messagesfetches teacher/school messages and chats with nested replies, attachments and read-receipt requests;get_notificationscovers the whole timeline (grades, homework, events, absences, payments, sign-up forms, substitutions) with type filters.Attendance & events —
get_absencesreports absences with periods, excused state, excuse notes and day totals;get_eventslists trips, exams, school events, parents' evenings and holidays.Canteen —
get_mealsshows menus per meal with dishes, allergens and portions, what's ordered, deadlines and credit;get_school_infoadds the bell schedule, school email, class teachers and home rooms.Teacher lookup & write actions —
list_teachersgives teachers withrecipient_id;send_message(destructive/non-idempotent) sends a new message to one or more teachers;order_mealorders, changes or cancels a canteen meal before the deadline. Both disappear whenEDUPAGE_READ_ONLY=true.Login support —
complete_loginfinishes a login that required two-factor approval in the EduPage app or an emailed code.Cross-cutting —
studentis matched by first name, full name, ID or school subdomain (case/accent-insensitive) and can be omitted for single-child accounts; dates acceptYYYY-MM-DD,today,tomorrow,yesterday; errors come back as{"status": "error", "error": "..."}so the agent can self-correct.
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., "@edupage-mcp What homework and exams does my daughter have this week?"
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.
edupage-mcp
An MCP server that lets an agent read a family's school life from EduPage, the school system used across Slovakia, Czechia and beyond: timetables with substitutions, homework and exams, grades, messages from teachers, notices, absences, school events and the canteen menu. It can also send a message to a teacher and order or cancel school meals.
EduPage has no public API, so this builds on the community
edupage-api library, which logs in
the way the website does. One login covers every child and every school on a
parent account; the schools are discovered automatically.
Tools
Tool | Input | Output |
| — | Account type, every school (subdomain, school year, email) and every student with class and school |
|
| Per student: today's lessons, homework and exams due soon, recent messages and notices, last week's grades, today's lunch |
|
| Lessons by day: period, times, subject, teachers, room, group, |
|
| Homework and announced exams by due date, with subject, teacher, details, attachments, done state |
|
| Messages and chats, newest first, replies nested, attachments, read-receipt requests |
|
| The whole timeline: grades, homework, events, absences, payments, sign-up forms, substitutions... |
|
| Marks with weight, points, class average, teacher; per-subject weighted averages; written evaluations as |
|
| Absences with periods and excused state, excuse notes, day totals |
|
| Trips, exams, school events, holidays and days off |
|
| The substitution plan for the student's class (or the whole school) and missing teachers |
|
| Canteen menus per meal with dishes, allergens and portions; what is ordered; deadlines; credit |
|
| Bell schedule, school email, the student's class teachers and home room |
|
| Teachers with the |
|
| Sends a new message to one or more teachers |
|
| Orders, changes or cancels a canteen meal before the deadline |
|
| Finishes a login that EduPage wanted a second factor for |
✏️ changes something in EduPage. Set EDUPAGE_READ_ONLY=true to remove these
two tools entirely.
student is a first name, full name, student ID or school subdomain, matched
without regard to case or accents; it can be left out when the account has a
single student. Dates are YYYY-MM-DD, or today, tomorrow, yesterday.
Related MCP server: EduPage MCP Server
Setup
1. Install and configure
You need uv; it fetches Python 3.12+ for you if necessary.
git clone https://github.com/glowpotion/edupage-mcp.git
cd edupage-mcp
cp .env.example .env # then fill it in
uv syncVariable | Required | Default | Purpose |
| yes | — | The username you sign in to EduPage with (usually an email) |
| yes | — | Your EduPage password |
| no | discovered | Comma-separated schools, e.g. |
| no |
| IANA timezone that "today" is judged in |
| no |
|
|
| no | — | Keep sessions in this file (mode 600) so a two-factor login survives restarts |
| no |
| How old a session may get before it is refreshed |
| no |
| Seconds to wait for EduPage |
Without EDUPAGE_SUBDOMAINS, the server logs in through
portal.edupage.org and then finds every school a parent account belongs to.
Set it if your account only works at one school's address, or to limit the
agent to some of your schools.
2. Verify the login
set -a && source .env && set +a
uv run edupage-mcp --checkThis logs in, prints what the account reaches and exits, so problems surface before you wire anything up:
OK: logged in as you@example.com (parent account)
Timezone: Europe/Bratislava
2 school(s):
- myschool https://myschool.edupage.org 2026/2027
- otherschool https://otherschool.edupage.org 2026/2027
2 student(s):
- Jana Nováková class IV.A at myschool
- Peter Novák class I.A at otherschoolIf EduPage asks for a second factor, --check waits for you to approve the
login in the EduPage app (or to type the emailed code).
3. Register with the agent
By default the server speaks MCP over stdio, run on the same machine as the
client (to host it on another machine, see
Running on a Raspberry Pi). Replace
/path/to/edupage-mcp with the directory you cloned into. For Claude Code:
claude mcp add edupage \
--env EDUPAGE_USERNAME=you@example.com \
--env EDUPAGE_PASSWORD=your-edupage-password \
-- uv --directory /path/to/edupage-mcp run edupage-mcpOr, as raw config for any host that takes the standard mcpServers shape:
{
"mcpServers": {
"edupage": {
"command": "uv",
"args": ["--directory", "/path/to/edupage-mcp", "run", "edupage-mcp"],
"env": {
"EDUPAGE_USERNAME": "you@example.com",
"EDUPAGE_PASSWORD": "your-edupage-password"
}
}
}
}Then ask things like "What does Jana have tomorrow, and is any homework due?", "Summarise this week's messages from school in English" or "Did anyone get a grade today?".
Hermes Agent
Hermes Agent reads MCP servers from
mcp_servers in ~/.hermes/config.yaml. It gives a stdio server only the
environment variables listed under its env, so the credentials have to be
listed there. Keep the values themselves in ~/.hermes/.env:
# ~/.hermes/.env
EDUPAGE_USERNAME=you@example.com
EDUPAGE_PASSWORD=your-edupage-passwordThen add one of these to ~/.hermes/config.yaml.
From a local checkout (if Hermes can't find uv, use the full path that
command -v uv prints):
mcp_servers:
edupage:
command: "uv"
args: ["--directory", "/path/to/edupage-mcp", "run", "edupage-mcp"]
env:
EDUPAGE_USERNAME: "${EDUPAGE_USERNAME}"
EDUPAGE_PASSWORD: "${EDUPAGE_PASSWORD}"With Docker, and nothing to install:
mcp_servers:
edupage:
command: "docker"
args: ["run", "-i", "--rm", "-e", "EDUPAGE_USERNAME", "-e", "EDUPAGE_PASSWORD",
"ghcr.io/glowpotion/edupage-mcp:latest"]
env:
EDUPAGE_USERNAME: "${EDUPAGE_USERNAME}"
EDUPAGE_PASSWORD: "${EDUPAGE_PASSWORD}"Over HTTP, to an always-on server (the Pi service
or Docker Compose), with EDUPAGE_MCP_TOKEN=<token>
added to ~/.hermes/.env:
mcp_servers:
edupage:
url: "http://127.0.0.1:8766/mcp"
headers:
Authorization: "Bearer ${EDUPAGE_MCP_TOKEN}"Check the connection with hermes mcp test edupage; it should list sixteen
tools (fourteen when read-only). Then run /reload-mcp in an open chat, or
start a new one. The tools show up as mcp__edupage__get_briefing and so on.
A daily cron job that calls get_briefing replaces a hand-written summary
script.
To give the agent read access only, set EDUPAGE_READ_ONLY: "true" under
env (or in the service's env file); the two write tools then disappear.
Running with Docker
A multi-arch image (amd64 and arm64, so a Raspberry Pi works too) is published
as ghcr.io/glowpotion/edupage-mcp. To build it yourself instead, run
docker build -t edupage-mcp . in a checkout and use that name below.
Check your credentials first, using a .env file filled in from
.env.example:
docker run --rm -it --env-file .env ghcr.io/glowpotion/edupage-mcp --checkAs a stdio server
The agent starts a fresh container for each session and talks to it over
stdin/stdout, so -i is required. A bare -e NAME forwards that variable from
the agent's own environment, which keeps the password out of the command line.
For Claude Code:
claude mcp add edupage \
--env EDUPAGE_USERNAME=you@example.com \
--env EDUPAGE_PASSWORD=your-edupage-password \
-- docker run -i --rm -e EDUPAGE_USERNAME -e EDUPAGE_PASSWORD ghcr.io/glowpotion/edupage-mcpAlways on, over HTTP
docker-compose.yml runs the streamable-HTTP server with
a restart policy, a health check, a read-only filesystem and a small volume
for cached sessions:
cp .env.example .env # fill in your credentials
echo "MCP_AUTH_TOKEN=$(openssl rand -hex 32)" >> .env
docker compose up -dIt listens on http://127.0.0.1:8766/mcp on this machine only. Connect with the
header Authorization: Bearer <MCP_AUTH_TOKEN>, just as for the
Pi service. To open it to your network, change
the port mapping to "8766:8766"; the security notes for the Pi apply. Use
docker compose logs -f for logs, and
docker compose pull && docker compose up -d to update.
Running on a Raspberry Pi
The same server can run as an always-on service on a Pi (or any systemd Linux
box), speaking MCP's streamable-HTTP transport and guarded by a bearer token.
By default it listens on 127.0.0.1 only, for an agent harness running on the
Pi itself; --lan opens it to your home network or Tailscale instead. It uses
port 8766.
Requirements on the Pi: 64-bit Raspberry Pi OS (Bookworm or later),
SSH access from your machine, rsync, and uv:
ssh pi@raspberrypi.local 'curl -LsSf https://astral.sh/uv/install.sh | sh'Deploy from this directory on your machine:
deploy/deploy.sh pi@raspberrypi.local # agent on the Pi itself
deploy/deploy.sh --lan pi@raspberrypi.local # clients elsewhere on the networkThat copies the project to ~/edupage-mcp on the Pi (never .git or .env)
and runs deploy/install.sh there, which:
installs the dependencies into a local
.venvwithuv sync --frozen;on the first run, creates
/etc/edupage-mcp.env(root-only, mode 600) from your local.env— sent once and then deleted on the Pi — or by prompting if you have none, and generates a randomMCP_AUTH_TOKEN;checks the EduPage login with
--check;installs and starts a hardened
edupage-mcpsystemd service on port 8766, with sessions cached in/var/lib/edupage-mcp, and prints the URL and token to give your agent.
Run the same command again to deploy an update; the configuration is kept.
--lan only matters on the first install; to switch afterwards, change
MCP_HOST in the env file (127.0.0.1 or 0.0.0.0) and restart.
Connect the agent. Any MCP client that supports streamable HTTP needs two
things: the URL http://127.0.0.1:8766/mcp (or http://raspberrypi.local:8766/mcp
with --lan) and the header Authorization: Bearer <token>. For Claude Code:
claude mcp add --transport http edupage http://127.0.0.1:8766/mcp \
--header "Authorization: Bearer <token>"For clients that only launch local commands (such as Claude Desktop's
mcpServers config), bridge with
mcp-remote:
{
"mcpServers": {
"edupage": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://raspberrypi.local:8766/mcp", "--allow-http",
"--header", "Authorization:Bearer <token>"]
}
}
}Day to day, on the Pi:
Task | Command |
Logs |
|
Status |
|
Change settings or rotate the token |
|
Health check (no token needed) |
|
Uninstall |
|
Security notes. The token guards your EduPage account: anyone holding it
can read your children's grades, messages and absences, and (unless
read-only) send messages as you. On the default localhost bind nothing off the
Pi can connect, and the token keeps other local processes out. With --lan,
traffic is plain HTTP, so keep it on a network you trust or on Tailscale
(which encrypts it); don't port-forward it to the internet. To listen only on
the tailnet, set MCP_HOST to the Pi's Tailscale IP. MCP_ALLOWED_HOSTS
optionally restricts accepted Host headers as a DNS-rebinding defence. The
server refuses to bind beyond loopback without a token of at least 32
characters.
You can also run HTTP mode by hand anywhere:
MCP_AUTH_TOKEN=$(openssl rand -hex 32) uv run edupage-mcp --transport http --host 0.0.0.0Two-factor login
If the account has two-factor authentication on, a login pauses until it is
confirmed. The tool that triggered it returns an error saying so; approve the
login in the EduPage app and have the agent call complete_login, or tell the
agent the code EduPage emailed and it passes it as code. --check does the
same interactively.
Sessions are refreshed in place rather than by logging in again, so a
confirmed login keeps working while the server runs. Set
EDUPAGE_SESSION_FILE (the Pi service and Docker Compose do) to keep it
across restarts too.
How it works
Sessions. Each school is a separate EduPage session. The server logs in on first use, refreshes a session older than
EDUPAGE_SESSION_TTL_MINUTES, and retries a failed read once with a fresh session. Writes are never retried, so a message is never sent twice.Several children. A parent's timeline mixes every child at a school. Items addressed only to another child (their class, their courses) are filtered out, and the session is switched to the right child before reading grades or the canteen.
Where the data comes from. Timetables come from EduPage's timetable service, one request for the whole range. Messages, notices, homework, events and absences come from the timeline, fetched fresh (and cached for a minute so
get_briefingdoesn't repeat itself). Grades and substitutions come fromedupage-api; the canteen from the menu page.Times. EduPage stores school-local times without an offset; they come back as ISO 8601 in
EDUPAGE_TIMEZONE.Language. EduPage content is whatever the school wrote, usually Slovak or Czech. Field names are in English; the agent can translate the rest.
Every tool returns {"status": "error", "error": "..."} rather than raising, so
the agent can read the problem and correct itself: missing credentials, a
rejected password or a captcha, an ambiguous student or teacher name (with the
choices listed), a date it cannot read, a meal past its deadline.
Limitations
get_absencesis built from the absence and excuse notices on the timeline, not EduPage's attendance page, so it can miss entries a school records without a notice.get_eventslists events that were announced on the timeline; EduPage's full calendar can hold more.Replying inside an existing message thread, excusing an absence, signing forms and uploading attachments are not supported yet.
send_messageandorder_mealfollow the requests the EduPage web app makes; canteens differ, so check the result in the app the first time.EduPage can change its pages at any time. Anything that stops parsing shows up as a tool error rather than wrong data.
Development
uv run pytestThe suite uses a fake Edupage object and invented JSON shaped like
EduPage's, so nothing touches the network. It covers configuration, school
discovery, student and teacher name matching, sibling filtering, session retry
and two-factor login, the session cache, every parser (timetable, timeline,
homework, events, absences, meals, grades), the service logic behind each
tool, the MCP tool schemas and read-only mode, and the HTTP bearer-token
middleware.
Layout
src/edupage_mcp/
server.py MCP tool definitions and CLI entry point
service.py What each tool does: filtering, windows, summaries
client.py EduPage sessions, school discovery, the raw requests
parsing.py EduPage JSON -> plain dicts
http_app.py Streamable-HTTP transport with bearer-token auth
config.py Environment configuration
Dockerfile Container image (stdio by default)
docker-compose.yml Always-on HTTP server in Docker
deploy/
deploy.sh Copy to a Pi over SSH and install/update there
install.sh Install or update the systemd service (runs on the Pi)
edupage-mcp.service systemd unit templateEdupageService is importable on its own if you want the EduPage logic
without the MCP layer.
License
MIT. Not affiliated with EduPage or asc Applied Software Consultants.
Available Tools
16 toolscomplete_loginComplete two-factor loginA
Finish an EduPage login that asked for a second factor. After the user approves the login in the EduPage app, call this with no code; if EduPage emailed a code instead, pass it as code. school is only needed if several schools are waiting.
Inputs: code, school. Returns: object
get_absencesGet absencesARead-only
Absences recorded for a student since since (default the start of the school year): each absence with the affected periods and whether it is excused, plus excuse notes and reminders, with totals of days absent and days not yet excused.
Inputs: since, student. Returns: object
get_accountGet account overviewARead-only
Who is on this EduPage login: the account type (parent or student), every school it reaches (subdomain, school year, email) and every student with their class and school. Call this first to learn the names to pass as student to the other tools.
Inputs: no named parameters. Returns: object
get_briefingGet daily briefingARead-only
One-call overview for every student (or just student): today's lessons with changes and cancellations, homework and exams due in the next days_ahead days (default 3), messages and notices from the last two days, grades from the last week, and today's canteen menu. Sections that fail are listed under warnings instead of failing the whole call.
Inputs: student, days_ahead. Returns: object
get_eventsGet school eventsARead-only
School calendar events for a student between start_date (default today) and end_date (default 30 days later): exams, trips, excursions, school events, parents' evenings, holidays and days off, as announced on the timeline, with the subject, teachers and classes involved.
Inputs: student, end_date, start_date. Returns: object
get_gradesGet gradesARead-only
A student's marks for the current term, newest first, with a per-subject summary (count and weighted average). Marks run 1 (best) to 5; points and percentage marks include max_points and percent. Filter with subject (name or abbreviation) and since. For an earlier term pass school_year (the starting year, e.g. 2025 for 2025/26) and term (1 or 2).
Inputs: term, since, student, subject, +1 more. Returns: object
get_homeworkGet homework and examsARead-only
Homework and announced exams (tests, quizzes, oral exams) due between start_date (default today) and end_date (default two weeks later), sorted by due date. kind filters to 'homework' or 'exam' (default 'all'). Items marked done in EduPage are left out unless include_done is true. Each item has the subject, teacher, title, details, due date and any attachments.
Inputs: kind, student, end_date, start_date, +1 more. Returns: object
get_mealsGet canteen menuARead-only
The school canteen menu for date (default today) and the following days days (1-14), per meal (breakfast, snack, lunch, ...): each menu option with its dishes, allergens and portion sizes, whether a meal is ordered and which menu, the order/cancel deadlines, and the remaining meal credit.
Inputs: date, days, student. Returns: object
get_messagesGet messagesARead-only
Messages from teachers and the school (and chats) since since (default 14 days ago), newest first, with replies nested under the message they answer. Each has the author, who it was addressed to (a class, parents of a class, the whole school, or you), the full text, attachments, and confirmation_requested when the sender asked for a read receipt. search filters by text, author or recipient (accent-insensitive).
Inputs: limit, since, search, student. Returns: object
get_notificationsGet notificationsARead-only
Everything on the student's EduPage timeline since since (default 7 days ago), newest first: messages, homework, grades, events, absences, payments, sign-up forms, substitutions and more. Filter with types, using the returned type or type_code values, e.g. ['grade', 'payments_published', 'enrollment']. EduPage's own tips and bookkeeping entries are hidden unless include_system is true. search matches text, author or recipient.
Inputs: limit, since, types, search, +2 more. Returns: object
get_school_infoGet school infoARead-only
Facts about a school (by subdomain or a student's name): the bell schedule with each period's start and end, the school's email, each student's class with its class teachers and home classroom, and how many teachers, classes, subjects and rooms it has.
Inputs: school. Returns: object
get_substitutionsGet substitutionsARead-only
The school's substitution plan for date (default today): lessons cancelled, moved or taught by someone else, and which teachers are away. Pass a student to see only their class, or a school subdomain (or all_classes: true) for the whole school.
Inputs: date, student, all_classes. Returns: object
get_timetableGet timetableARead-only
A student's lessons for date (default today) and the following days days (1-31, default 1), grouped by day. Each lesson has its period, start and end time, subject, teachers, classroom and group. Substitutions show the original lesson with cancelled: true next to its replacement with changed: true. homework_ids link a lesson to entries from get_homework. Weekends and holidays have no entries.
Inputs: date, days, student. Returns: object
list_teachersList teachersARead-only
Teachers at a school (by subdomain or a student's name), optionally filtered by query (part of a name, or the abbreviation used in the timetable). Each has a recipient_id for send_message.
Inputs: query, school. Returns: object
order_mealOrder or cancel a mealADestructiveIdempotent
Choose a menu for a student's canteen meal on date, or cancel it. meal is 'lunch' (default), 'breakfast', 'snack', ... as returned by get_meals; menu is one of that meal's choosable_menus (e.g. 'A', 'B') or 'cancel'. Only works before the canteen's deadline. Confirm the day and choice with the user first.
Inputs: date (required), menu (required), meal, student. Returns: object
send_messageSend messageA
Send a new EduPage message from this account to one or more teachers at a school (by subdomain or a student's name). recipients are teacher names or recipient_ids from list_teachers; a name must match exactly one teacher. The message cannot be unsent: confirm the recipients and text with the user before calling.
Inputs: text (required), recipients (required), school. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Every tool targets a distinct EduPage resource or action, and the descriptions clearly separate overlapping areas like get_messages vs. get_notifications and get_timetable vs. get_substitutions. An agent should be able to select the right tool without confusion.
Tool names almost universally follow a snake_case verb_noun pattern, with get_* for reads and imperative verbs like send_, order_, and complete_ for actions. list_teachers is a conventional collection-naming exception rather than an inconsistency.
At 16 tools, the surface is just above the ideal 3-15 range, but the EduPage domain is genuinely broad and each tool covers a meaningful module. The count feels comprehensive rather than bloated.
The set covers nearly every core student/parent workflow: timetable, homework, messages, grades, absences, meals, events, substitutions, school info, and login. A few smaller capabilities are missing, such as toggling homework completion or detailed payment actions, but the main workflows have no dead ends.
Maintenance
Related MCP Connectors
Manage a family's Plannie calendar, tasks, lists, files and meal plan as an agent.
Your household's calendar, tasks, messages and apps. Read, update, or build new apps with AI.
Family calendars, tasks, reminders, and pickup coordination for your AI assistant.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that connects Claude to Edupage, a school information system used across Europe. Provides access to timetables, grades, homework, messages, students, teachers, and more.251GPL 3.0
- AlicenseAqualityBmaintenanceEnables AI agents to query and manage EduPage school accounts, including timetables, grades, homework, meals, messages, multi-school discovery, role-aware student switching, and 2FA login.3141 PyPI5MIT
- AlicenseAqualityCmaintenanceEnables Claude to access school information system data such as timetables, grades, homework, messages, students, teachers, and meal information, including meal ratings.26GPL 3.0
- AlicenseAqualityAmaintenanceEnables an AI assistant to browse a signed-in school-communication account's classes, chats and message streams, inspect and adjust notification preferences and delivery devices, and send messages to a chat or class. Write actions require explicit user confirmation, and a read-only GraphQL tool allows arbitrary queries for anything the built-in tools don't cover.10114 npmMIT