dsbmobile
@udondan/dsbmobile

Inoffizielles Community-Projekt. Nicht mit der heinekingmedia GmbH verbunden, nicht von ihr unterstützt oder autorisiert.
Inoffizielles Node.js-Paket für den Zugriff auf DSBmobile – die digitale Schulkommunikationsplattform für Vertretungspläne, Neuigkeiten und Dokumente. Es kapselt die DSBmobile-API und bietet drei Schnittstellen über einen gemeinsamen Kern:
SDK – importierbare
DsbmobileClient-Klasse für Node.js-ProjekteCLI –
dsbmobile-Befehl für das TerminalMCP-Server –
dsbmobile mcpstellt alle Funktionen als Tools für KI-Assistenten bereit
Inhalt
Related MCP server: comci-agent
Installation
# Globale Installation (empfohlen für CLI-Nutzung)
npm install -g @udondan/dsbmobile
# Ohne Installation direkt nutzen
DSB_USERNAME=benutzername DSB_PASSWORD=passwort npx @udondan/dsbmobile mcpCLI und MCP-Server gibt es auch als Docker-Image
udondan/dsbmobile (amd64 und
arm64), ohne dass Node.js installiert sein muss. Siehe Mit Docker.
Konfiguration
Die Zugangsdaten werden über Umgebungsvariablen übergeben:
Variable | Pflicht | Beschreibung |
| ✅ | DSBmobile-Benutzername bzw. -ID |
| ✅ | DSBmobile-Passwort |
| ❌ | Standard-Klassenfilter für |
SDK
npm install @udondan/dsbmobileimport { DsbmobileClient } from '@udondan/dsbmobile';
const client = new DsbmobileClient({
username: process.env.DSB_USERNAME!,
password: process.env.DSB_PASSWORD!,
});
// Vertretungsplan abrufen
const plans = await client.getSubstitutions();
// Timetable-Einträge (Plan-URLs) abrufen
const timetables = await client.getTimetables();
// Neuigkeiten abrufen
const news = await client.getNews();
// Dokumente abrufen
const documents = await client.getDocuments();Exportierte Typen
import type {
DsbmobileConfig,
SubstitutionPlan,
SubstitutionEntry,
TimetableEntry,
NewsEntry,
DocumentEntry,
DsbItem,
} from '@udondan/dsbmobile';CLI
# Vertretungspläne als JSON ausgeben
dsbmobile substitutions
# Nur eine bestimmte Klasse (überschreibt DSB_CLASS)
dsbmobile substitutions --class 07b
# Timetable-Einträge (Plan-URLs) als JSON ausgeben
dsbmobile timetables
# Neuigkeiten als JSON ausgeben
dsbmobile news
# Dokumente als JSON ausgeben
dsbmobile documents
# MCP-Server über stdio starten
dsbmobile mcpMit Docker
Argumente nach dem Image-Namen gehen an das CLI. -e NAME ohne Wert übernimmt
die Variable aus der eigenen Shell:
docker run --rm -e DSB_USERNAME -e DSB_PASSWORD -e DSB_CLASS udondan/dsbmobile substitutionsAls Alias verhält sich das Image wie ein installiertes dsbmobile:
alias dsbmobile='docker run --rm -e DSB_USERNAME -e DSB_PASSWORD -e DSB_CLASS udondan/dsbmobile'
dsbmobile substitutions --class 07bMCP-Server
Der Server läuft über stdio, entweder per npx (siehe unten) oder als
Docker-Image:
docker run --rm -i -e DSB_USERNAME -e DSB_PASSWORD -e DSB_CLASS udondan/dsbmobileOhne Argumente startet das Image den MCP-Server. -i hält stdin offen, über das
der Server mit dem Client spricht.
In der MCP Registry ist der Server
als io.github.udondan/dsbmobile gelistet.
Einrichtung in Claude Code
claude mcp add dsbmobile -- npx @udondan/dsbmobile mcpAnschließend die Zugangsdaten in der MCP-Konfiguration hinterlegen (~/.claude.json oder .claude/settings.json):
{
"mcpServers": {
"dsbmobile": {
"command": "npx",
"args": ["@udondan/dsbmobile", "mcp"],
"env": {
"DSB_USERNAME": "benutzername",
"DSB_PASSWORD": "passwort",
"DSB_CLASS": "07b"
}
}
}
}Einrichtung in Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"dsbmobile": {
"command": "npx",
"args": ["@udondan/dsbmobile", "mcp"],
"env": {
"DSB_USERNAME": "benutzername",
"DSB_PASSWORD": "passwort",
"DSB_CLASS": "07b"
}
}
}
}Mit Docker statt npx sieht der Eintrag so aus. -e NAME ohne Wert reicht die
Variable aus env an den Container weiter:
{
"mcpServers": {
"dsbmobile": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"DSB_USERNAME",
"-e",
"DSB_PASSWORD",
"-e",
"DSB_CLASS",
"udondan/dsbmobile"
],
"env": {
"DSB_USERNAME": "benutzername",
"DSB_PASSWORD": "passwort",
"DSB_CLASS": "07b"
}
}
}
}Einrichtung in anderen MCP-Clients
{
"command": "npx",
"args": ["@udondan/dsbmobile", "mcp"],
"env": {
"DSB_USERNAME": "benutzername",
"DSB_PASSWORD": "passwort",
"DSB_CLASS": "07b"
}
}Docker MCP Toolkit
Mit dem Docker MCP Toolkit von Docker Desktop läuft der Server als Container hinter dem MCP Gateway. Das Gateway startet den Container bei Bedarf und reicht seine Tools an die verbundenen Clients weiter. Die Zugangsdaten liegen als Secrets in Docker Desktop statt im Klartext in der Client-Konfiguration.
Voraussetzung ist Docker Desktop mit aktiviertem MCP Toolkit.
Die Server-Definition
docker-mcp.ymlherunterladen und einem Toolkit-Profil hinzufügen. Das Toolkit liest solche Dateien nur aus seinem Katalog-Verzeichnis:mkdir -p ~/.docker/mcp/catalogs curl -fsSL https://raw.githubusercontent.com/udondan/dsbmobile/main/docker-mcp.yml -o ~/.docker/mcp/catalogs/dsbmobile.yml # neues Profil "dsbmobile" ... docker mcp profile create --name dsbmobile --id dsbmobile --server "file://$HOME/.docker/mcp/catalogs/dsbmobile.yml" # ... oder einem bestehenden Profil hinzufügen docker mcp profile server add default --server "file://$HOME/.docker/mcp/catalogs/dsbmobile.yml"Das Profil behält das Image in der Version, die es beim Hinzufügen hatte. Zum Aktualisieren
profile server adderneut ausführen.Die Zugangsdaten als Secrets hinterlegen (
dsbmobile.classist optional):docker mcp secret set dsbmobile.username=benutzername docker mcp secret set dsbmobile.password=passwort docker mcp secret set dsbmobile.class=07bEinen Client mit dem Profil verbinden:
docker mcp client connect claude-desktop --profile dsbmobiledocker mcp client connect --helplistet weitere Clients wieclaude-code,cursorodervscode. Das geht auch in Docker Desktop unter MCP Toolkit.
docker mcp gateway run --profile dsbmobile --dry-run --verbose prüft die
Einrichtung, ohne einen Client zu starten. Die Ausgabe sollte die Zeile
dsbmobile: (4 tools) enthalten.
Verfügbare MCP-Tools
get_timetables
Gibt alle verfügbaren Vertretungsplan-Einträge zurück.
Rückgabe: Liste von Plan-Einträgen, jeweils mit:
id: Eindeutige IDtitle: Planname (z. B. „V-Homepage heute - subst_001 (Seite 1)")date: Zeitstempel der letzten Aktualisierung im FormatTT.MM.JJJJ HH:MMurl: Link zur HTML-Planseite mit der VertretungstabellepreviewUrl: Link zu einem Vorschaubild (optional)
get_substitutions
Lädt und parst alle Vertretungsplan-Seiten und gibt strukturierte Einträge zurück.
Parameter:
className(optional): Klassenfilter, z. B.07boderQ2_Kra. Groß-/Kleinschreibung wird ignoriert. Standardmäßig wirdDSB_CLASSverwendet, falls gesetzt.
Rückgabe: Liste von Plänen (ein Objekt pro Tag), jeweils mit:
date: Datum im ISO-Format (z. B.2026-03-20)lastUpdated: Zeitstempel der letzten Aktualisierungentries: Liste der Vertretungseinträge, jeweils mit:className: Klasse (z. B.07b,Q2_Kra)type: Art der Vertretung (z. B.Vertretung,Statt-Vertretung,Entfall)period: Stunde(n) (z. B.3oder5 - 6). Einträge, die sich nur durch direkt aufeinanderfolgende Stunden unterscheiden, werden zu einem Bereich zusammengefasst (aus3und4wird3 - 4).originalTeacher: Kürzel der vertretenen LehrkraftsubstituteTeacher: Kürzel der vertretenden Lehrkraftsubject: Fachkürzel (z. B.SPO,ETHI,E)originalRoom: Ursprünglicher RaumsubstituteRoom: Ausweichraumtext: Zusätzliche Hinweise
get_news
Ruft alle Neuigkeiten und Ankündigungen von DSBmobile ab.
Rückgabe: Liste von Nachrichten, jeweils mit id, title, detail, date, tags.
get_documents
Listet alle verfügbaren Dokumente und Dateien auf.
Rückgabe: Liste von Dokumenten, jeweils mit id, title, url, date.
Sicherheit
CLI und MCP-Server: Zugangsdaten werden ausschließlich über Umgebungsvariablen übergeben und nie im Code hinterlegt
SDK: Zugangsdaten werden explizit als
DsbmobileConfig-Objekt im Konstruktor übergeben – nie hartcodiert oder aus Umgebungsvariablen gelesenZugangsdaten erscheinen weder in Logs noch in Fehlermeldungen
Es werden keine sensiblen Daten auf der Festplatte gespeichert
Der Server ist schreibgeschützt – er kann keine Daten auf DSBmobile verändern
Entwicklung
# Repository klonen
git clone https://github.com/udondan/dsbmobile.git
cd dsbmobile
# Abhängigkeiten installieren
bun install
# TypeScript kompilieren
bun run build
# Im Watch-Modus kompilieren
bun run dev
# MCP-Server starten
DSB_USERNAME=benutzername DSB_PASSWORD=passwort node dist/cli.js mcp
# Tests ausführen
bun run test
# Lint
bun run lint
# Docker-Image bauen und einem Docker MCP Toolkit-Profil hinzufügen
mise run docker-build # docker build -t udondan/dsbmobile .
mise run docker-register [profil] # Standard-Profil: dsbmobile
mise run docker # beidesDas lokal gebaute udondan/dsbmobile:latest ersetzt das öffentliche Image, das
Docker MCP Toolkit nutzt also den lokalen Build. docker pull udondan/dsbmobile
wechselt zurück.
Lizenz
MIT
Disclaimer
Dieses Projekt ist ein inoffizielles, unabhängiges Open-Source-Projekt und steht in keiner Verbindung zur heinekingmedia GmbH. DSBmobile und Digitales Schwarzes Brett (DSB) sind Produkte bzw. Marken der heinekingmedia GmbH. Die Namen werden ausschließlich zur Beschreibung der Kompatibilität verwendet. Die Nutzung erfolgt auf eigenes Risiko und unter Beachtung der Nutzungsbedingungen von DSBmobile.
Available Tools
4 toolsget_documentsGet DSBmobile DocumentsARead-onlyIdempotent
Retrieves all documents and files available on DSBmobile.
Returns a list of document entries, each with:
id: Unique identifier for the document
title: Document name or title
url: Download URL for the document (typically a PDF or image)
date: Upload date in DD.MM.YYYY HH:MM format
Use this tool when:
A user asks about school documents or files
A user wants to download a specific document
A user asks "Are there any documents on DSBmobile?"
Returns "No documents available" if no documents are currently published.
Error handling:
Returns an error message if authentication fails (check DSB_USERNAME and DSB_PASSWORD)
Returns an error message if the DSBmobile service is unavailable
Inputs: no named parameters.
get_newsGet DSBmobile News and AnnouncementsARead-onlyIdempotent
Retrieves all news and announcements posted on DSBmobile.
Returns a list of news items, each with:
id: Unique identifier for the news item
title: News headline or title
detail: News content, URL to more details, or plain text announcement
date: Publication date in DD.MM.YYYY HH:MM format
tags: Associated tags or categories (may be empty)
Use this tool when:
A user asks about school announcements or news
A user wants to know about upcoming school events
A user asks "What's new at school?"
Returns "No news available" if no news items are currently published.
Error handling:
Returns an error message if authentication fails (check DSB_USERNAME and DSB_PASSWORD)
Returns an error message if the DSBmobile service is unavailable
Inputs: no named parameters.
get_substitutionsGet DSBmobile Substitution EntriesARead-onlyIdempotent
Fetches and parses the actual substitution plan (Vertretungsplan) pages from DSBmobile, returning structured substitution entries for each class.
Returns a list of substitution plans (one per day), each containing:
date: ISO date string (e.g., "2026-03-20")
lastUpdated: When the plan was last updated
entries: Array of substitution entries, each with:
className: The class (e.g., "05b", "Q2_Kra")
type: Substitution type (e.g., "Vertretung", "Statt-Vertretung", "Entfall")
period: Lesson period(s) (e.g., "3" or "5 - 6")
originalTeacher: Abbreviation of the absent teacher
substituteTeacher: Abbreviation of the substitute teacher
subject: Subject abbreviation (e.g., "SPO", "ETHI", "E")
originalRoom: Original room
substituteRoom: Substitute room
text: Additional notes
Use this tool when:
A user asks "Do I have any substitutions today?"
A user wants to know which teacher is substituting for whom
A user asks "Is lesson X cancelled?"
A user wants to filter substitutions by class name
This tool downloads and parses all plan pages, which may take a few seconds. For just the list of plan URLs, use get_timetables instead.
The className parameter is optional. If omitted, the DSB_CLASS environment variable is used as the default filter. If neither is set, all classes are returned. If the filter matches no entries, the plans are still returned with empty entries and totalEntries 0. If no plans are published, plans is an empty list.
Error handling:
Returns an error message if authentication fails (check DSB_USERNAME and DSB_PASSWORD)
Returns an error message if the DSBmobile service is unavailable
Inputs: className.
get_timetablesGet DSBmobile Substitution PlansARead-onlyIdempotent
Retrieves all available substitution plan (Vertretungsplan) entries from DSBmobile.
Returns a list of substitution plan entries, each with:
id: Unique identifier for the plan entry
title: Plan name (e.g., "Vertretungen-heute" for today's substitutions)
date: Last updated timestamp in DD.MM.YYYY HH:MM format
url: URL to the HTML page containing the actual substitution plan table
previewUrl: URL to a preview image of the plan (optional)
The substitution plan HTML pages contain the detailed schedule showing which classes have substitutions, which teachers are replaced, which rooms are used, etc. The HTML format varies by school, so the URL is returned for further processing.
Use this tool when:
A user wants to know which plans are published and when they were last updated
A user wants the link to a plan or its preview image
For questions about the substitutions themselves ("Do I have any substitutions today?", teacher absences, cancelled lessons, room changes), use get_substitutions, which reads the plans and returns the entries.
Returns "No substitution plans available" if no plans are currently published.
Error handling:
Returns an error message if authentication fails (check DSB_USERNAME and DSB_PASSWORD)
Returns an error message if the DSBmobile service is unavailable
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 4 tools
Each tool targets a distinct DSBmobile content type: substitution plans, parsed substitutions, documents, and news. The only possible confusion is between get_timetables and get_substitutions, but the descriptions explicitly clarify that the former returns plan links and the latter parses the actual substitution entries.
All tool names follow the same get_<resource> snake_case convention. There are no mixed styles or vague verbs.
Four tools is well-scoped for a read-only school portal covering substitution plans, documents, and news. The split between listing plans and parsing substitutions is justified by the different use cases.
The read-only surface covers the main DSBmobile content areas: substitution plans, documents, and news. Minor gaps exist around deeper per-item retrieval or filtering, but the core workflows are supported via returned URLs and structured entries.
Maintenance
Related MCP Connectors
Swiss Transport MCP — wraps Transport Open Data API (free, no auth)
DB Rail MCP — German + European rail and public transport, keyless.
Hosted MCP App, public transport worldwide powered by Transitous: journeys, boards, real time, maps
Unofficial Linear MCP — wraps the Linear GraphQL API (OAuth)
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server for the Bakaláři v3 API that provides access to the popular Czech school management system. It enables users to retrieve schedules, permanent timetables, absence records, and grades through a standardized interface.3MIT
- FlicenseCqualityDmaintenanceMCP server that reads Korean school class and teacher timetables from Comci's public schedules, detects schedule changes, and exposes structured data via CLI, local REST, and MCP stdio.81-
- AlicenseAqualityBmaintenanceUnofficial read-only MCP server for the Somtoday school portal (parent/student accounts): grades, homework, schedule, messages.26424 npm2MIT
- AlicenseAqualityAmaintenanceA local stdio MCP server that lets students query their HSE (NIU VShE) accounts: SmartLMS courses, materials, assignments, grades and internal messages, plus the ELK personal cabinet — schedule, academic record, services, requests and notifications. It also assembles day/week summaries, deadline alerts and change tracking, with optional write tools for submitting assignments kept off by default.21485 npm1MIT