blok-berichtsheft
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., "@blok-berichtsheft add activity for today: trained on API design, 1.5h"
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.
blok-berichtsheft MCP server
An MCP server that fills out your BLok Berichtsheft
(Ausbildungsnachweis) via browser automation. BLok is an Apache Wicket app whose forms autosave
per-field over AJAX (change for dropdowns, blur for text/number fields) — there's no public API,
so this drives a real headless Chromium with Playwright instead of raw HTTP calls.
Setup
npm install
npx playwright install chromium
npm link # exposes the `blok-berichtsheft-mcp` binary on PATH
cp .env.example .env # then fill in your real credentials.env is only used when running the server or scripts standalone (e.g. blok-berichtsheft-mcp
directly). It is git-ignored — never commit it.
Related MCP server: Playwright Server MCP
Registering with Claude Code
claude mcp add blok-berichtsheft -s user \
-e BLOK_USERNAME=your-username -e BLOK_PASSWORD=your-password \
-- blok-berichtsheft-mcp(or, without npm link, use -- node /absolute/path/to/index.js instead)
Check it's connected:
claude mcp get blok-berichtsheftCredentials passed via -e are stored in ~/.claude.json, not in this project — that's what Claude
Code actually uses at runtime. The .env file here is a separate, optional copy for local testing.
To remove: claude mcp remove blok-berichtsheft -s user
Registering with opencode
opencode has a native opencode mcp add command, but the simplest path is editing its config
directly (~/.config/opencode/opencode.jsonc or opencode.json in a project) and adding an entry
under mcp:
"mcp": {
"blok-berichtsheft": {
"type": "local",
"command": ["blok-berichtsheft-mcp"],
"environment": {
"BLOK_USERNAME": "your-username",
"BLOK_PASSWORD": "your-password"
},
"enabled": true
}
}(or "command": ["node", "/absolute/path/to/index.js"] without npm link)
Verify with:
opencode mcp listRegistering with Codex CLI
Codex CLI (codex, from OpenAI) configures MCP servers in ~/.codex/config.toml:
[mcp_servers.blok-berichtsheft]
command = "blok-berichtsheft-mcp"
env = { "BLOK_USERNAME" = "your-username", "BLOK_PASSWORD" = "your-password" }(or command = "node", args = ["/absolute/path/to/index.js"] without npm link)
Recent Codex CLI versions also support codex mcp add, e.g.:
codex mcp add blok-berichtsheft \
--env BLOK_USERNAME=your-username --env BLOK_PASSWORD=your-password \
-- blok-berichtsheft-mcpCodex CLI isn't installed on this machine, so this section is based on documented conventions
rather than a locally verified run — check codex mcp --help / codex --help against your
installed version if the exact flags differ.
Tools
All date parameters are YYYY-MM-DD and must fall on a Monday–Friday (BLok doesn't track weekends).
Passing any date within a week navigates to that week automatically — past or future.
get_week(date?)— reads the week containingdate(defaults to the current week): each day's location, presence, activities (text + hours), the week's department and remarks.add_activity(date, text, hours?, location?, presence?, department?)— adds an activity entry for a day. Reuses an empty row for that day if one exists, otherwise adds a new row.set_day_status(date, location?, presence?)— sets a day's location/presence without adding an activity.list_departments(date?)— returns the account's actual valid "Abteilung/Sparte" codes (read live from the account's own autocomplete list). Call this and ask the user which one applies before callingset_departmentoradd_activitywith a department — never guess a code.set_department(date, department)— sets the week's "Abteilung/Sparte" field to a code returned bylist_departments.set_week_remarks(date, text)— sets the week's free-text "Bemerkungen".
location is one of berufsschule, ausbildungsbetrieb, ueberbetrieblich.
presence is one of anwesend, arbeitsunfaehig, abwesend, urlaub, sonderurlaub, feiertag.
hours accepts any format BLok itself accepts: "1h:30min", "1:30", or "1,5".
What it deliberately does not do
None of these tools touch "Freigeben zur Abnahme durch Ausbilder" — submitting a week for trainer approval stays a manual, in-app action.
Files
index.js— MCP server entry point, tool definitions (schemas viazod)report.js— page actions: read/write entries, day status, department, remarksbrowser.js— login, session reuse, and week navigation (parses the "Kalenderwoche vom … bis …" banner and clicks the week-forward/backward links until it lands on the target week)
Known quirk
The "Abteilung/Sparte" field is a jQuery UI autocomplete widget. Do not send Escape to close its
suggestion menu after typing — jQuery UI's default Escape handler reverts the field to its prior
value, which silently discards the edit before the save fires. Just blur the field (e.g. Tab).
Known issues
Adding a brand-new row can occasionally throw
Clicked "Zeile hinzufügen" but no new activity row appearedeven though the row is added server-side a moment later — BLok's AJAX response for that specific action is sometimes slower than the fixed wait this checks against. Safe to just retry the sameadd_activitycall; it will reuse the now-existing empty row instead of adding another one.No delete/remove tool yet. BLok's UI does support deleting a row (a "Zeile löschen" link sits next to each activity row), so this is addable, but no
remove_activitytool exists in this version.BLok also disables editing for weeks too far in the future (somewhere between 4 and 7 weeks ahead, in testing) — not a bug in this tool, just BLok's own limit on how far in advance you can log entries.
Available Tools
6 toolsadd_activityA
Add a new Berichtsheft activity entry for a specific day. Reuses an empty row if one exists for that day, otherwise adds a new row. Optionally also sets that day's location and/or presence status.
Inputs: date (required), text (required), hours, location, +2 more.
get_weekA
Read the Berichtsheft (training log) entries for the week containing the given date, including each day's location, presence, logged activities with hours, and the week remarks.
Inputs: date.
list_departmentsA
List the valid "Abteilung/Sparte" codes for this account (the same autocomplete list BLok itself offers). Call this and ask the user which one applies before calling set_department or add_activity with a department - do not guess a code.
Inputs: date.
set_day_statusA
Set the location and/or presence status for a specific day in the Berichtsheft, without adding an activity.
Inputs: date (required), location, presence.
set_departmentA
Set the "Abteilung/Sparte" field for the week containing the given date. Call list_departments first and confirm the code with the user rather than guessing.
Inputs: date (required), department (required).
set_week_remarksA
Set the free-text remarks ("Bemerkungen") for the week containing the given date.
Inputs: date (required), text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct operation: reading a week, adding an activity, setting day status, listing departments, setting department, and setting week remarks. There is no functional overlap.
All tools follow a consistent verb_noun pattern (e.g., get_week, add_activity, set_day_status), making the API intuitive and predictable.
With 6 tools, the server is well-scoped for managing a training log (Berichtsheft). Each tool serves a clear purpose without redundancy or deficiency.
The core workflow (read week, add activity, set status/department/remarks) is covered. However, there is no explicit update or delete operation for activities, which could be a minor gap.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceA MCP server that provides browser automation tools, allowing users to navigate websites, take screenshots, click elements, fill forms, and execute JavaScript through Playwright.82Apache 2.0
- AlicenseBqualityDmaintenanceA browser automation server providing Playwright capabilities for controlling web browsers, capturing screenshots, extracting content, and performing complex interactions through an MCP interface.6Apache 2.0
- FlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that provides browser automation capabilities via Playwright using Server-Sent Events (SSE). It enables clients to perform web operations and scraping through a containerized Docker environment.-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that automates Playwright-based UI and API testing, supporting test case generation from requirements or API specs, and execution with detailed reports.1MIT