Skip to main content
Glama

@jalibu/careman-mcp

Read-only MCP server for CareMan Dienstplan (opta data / SIEDA).
Exposes the CareMan REST API as MCP tools so LLMs can query duty rosters, shift requests, vacant duties, and shift swaps.


⚠️ Disclaimer

This is an unofficial, community-developed MCP server. It is not affiliated with, endorsed by, or in any way connected to CareMan or any other company behind the CareMan product. All product and company names are trademarks of their respective owners.

Use at your own risk. This project reverse-engineers an undocumented private API. It may break at any time without notice. The author accepts no liability for any damage, data loss, account suspension, or other consequences arising from its use.

Data privacy warning. CareMan contains sensitive personal and operational data (duty rosters, employee information, etc.). Whenever you use an MCP client that connects to a cloud-hosted AI model (e.g. Claude Desktop → Anthropic, ChatGPT, Gemini, …), your CareMan data will be transmitted to and processed on the AI provider's servers. This is likely incompatible with your organisation's data protection obligations (GDPR / DSGVO). The only way to keep data under your full control is to use a locally running, self-hosted AI model (e.g. Open WebUI + Ollama). You are solely responsible for compliance with applicable data protection laws.


Setup

Open WebUI with a locally running Ollama model keeps all data on your own machine — nothing is sent to external servers.

Prerequisites: Open WebUI and Ollama must already be running locally.

  1. In Open WebUI, go to Settings → Tools → MCP Servers (or Admin Panel → Settings → Tools).

  2. Add a new MCP server entry:

    • Name: careman

    • Command: npx

    • Args: -y @jalibu/careman-mcp@latest

    • Environment variables:

      CAREMAN_URL=https://careman.mycompany.com
      CAREMAN_USERNAME=your-username
      CAREMAN_PASSWORD=your-password
  3. Save and reload. The CareMan tools are now available in your local chat.

Supported Ollama models with good tool-calling ability: qwen2.5:14b, llama3.1:8b, mistral-nemo.


Claude Desktop ⚠️ Cloud — data leaves your network

Privacy notice: Claude Desktop sends your conversations — including all data returned by CareMan — to Anthropic's cloud servers for inference. Only use this setup if you have reviewed and accepted the implications for your organisation's data protection policy.

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "careman": {
      "command": "npx",
      "args": ["-y", "@jalibu/careman-mcp@latest"],
      "env": {
        "CAREMAN_URL": "https://careman.mycompany.com",
        "CAREMAN_USERNAME": "your-username",
        "CAREMAN_PASSWORD": "your-password"
      }
    }
  }
}

Restart Claude Desktop. The tools become available immediately.

Environment variables

Variable

Required

Description

CAREMAN_URL

✓

Base URL of your CareMan instance

CAREMAN_USERNAME

✓

Your CareMan login name

CAREMAN_PASSWORD

✓

Your CareMan password

Related MCP server: deephr-mcp

Tools

get_planungsgruppen

Lists all planning groups available for a given month.
Call this first to discover group IDs for get_abteilungsdienstplan.

get_planungsgruppen(year, month)
→ [{ name: "Group A", id: 100 }, { name: "Group B", id: 101 }, ...]

get_abteilungsdienstplan

Returns the full team duty roster for one planning group and month — every employee with their assigned duty codes per day.

get_abteilungsdienstplan(year, month, planningGroupId, planningGroupName?)
→ { data: { data: [{ item1: { name, id }, item2: { data: [...] } }], legendDuties, ... } }

Each day entry in item2.data:

  • day.date — UTC timestamp of local Berlin midnight

  • day.bankHolidayName — non-empty string if public holiday

  • shortName — duty code, e.g. "H31T", "H31N", "H51T"

Days without an assignment are omitted (sparse array).

get_rosters_preload

Returns personal roster data for one month — covers three areas in a single API call:

Einsatzwünsche (shift requests) — in rosterUrlaubEinsatzwunsch.data.data[0].item2.data[]:

  • einsatzwunsch: true flags days with a shift request

  • shortNameSollplan — requested duty code

  • genehmigt / beantragt — approval status

Vakante Dienste (vacant duties) — in vacantDutiesOccupied.data.duties[] and vacantDutiesAssumed.data.duties[]:

  • idVacantDuty — use with get_vakante_duty_details

  • duty, nameWorkstation, atDate, state, comment

Diensttausch (shift swaps) — in swapDutyOffersOffered.data.offers[] (incoming) and swapDutyOffersOwn.data.offers[] (own):

  • offerer, acceptor, dutiesOfferer, dutiesAcceptor

  • workstationsOfferer, planninggroupsOfferer

  • state, comment

get_rosters_preload(year, month)
→ { rosterUrlaubEinsatzwunsch, swapDutyOffersOffered, swapDutyOffersOwn,
    vacantDutiesOccupied, vacantDutiesAssumed, fehlzeiten }

get_vakante_duty_details

Returns full shift details for a single vacant duty entry.

get_vakante_duty_details(idVacantDuty)
→ { entries: [{ shortName, nameWorkplace, from, to, stringDuration, ... }] }

Architecture

   LLM
    │  MCP (stdio)
    ▼
CareMan MCP Server
    ├─ Session Manager  (auto-login, token cache, employeeId)
    ├─ get_planungsgruppen        → POST /api/-/vacant-duties/possible-planninggroups
    ├─ get_abteilungsdienstplan   → POST /api/-/team-duty/roster/{employeeId}
    ├─ get_rosters_preload        → POST /api/-/rosters/preload
    └─ get_vakante_duty_details   → GET  /api/-/vacant-duties/roster-details-id/{id}

Notes

Undocumented API. All endpoints were reverse-engineered from the minified CareMan JavaScript bundle and verified via browser network inspection. They may change with CareMan updates. If a tool starts returning errors after a CareMan upgrade, compare the request/response format in browser DevTools against the code in src/api.js.

Login format. The login request body uses { item1: username, item2: password } — a generic tuple wrapper pattern used throughout the CareMan codebase. If login fails, verify this against a live browser login via DevTools → Network → POST /api/-/auth/login.

Token lifetime. JWTs expire after roughly 8 hours. The server tracks expiry and re-logs in automatically.

Read-only. No tool submits, modifies, or deletes data. POST requests are used only where the API requires them for data retrieval (a common pattern in this codebase).

Available Tools

4 tools
get_abteilungsdienstplanA

Returns the full team duty roster (Abteilungsdienstplan) for one planning group and month. Contains every employee with their assigned duty codes per day.

Returns raw API data: { data: { from, to, data: [{ // one entry per employee item1: { id, name }, // employee info item2: { data: [{ // assigned days only (sparse) day: { date, bankHolidayName, isSchoolHoliday }, shortName // duty code, e.g. "H31T" }]} }], legendDuties: { ... }, // duty code definitions with times legendLeavePeriods: { ... } } }

Use get_planungsgruppen first to find the planningGroupId.

Inputs: year (required), month (required), planningGroupId (required), planningGroupName.

get_planungsgruppenA

Returns all planning groups (Planungsgruppen) visible to the logged-in employee for the given month. Use this to discover available group IDs before calling get_abteilungsdienstplan.

Returns: Array of { name: string, id: number }

Example IDs (may vary per installation): 948 = RW 44 Haßloch 949 = RW 51 Neustadt

Inputs: year (required), month (required).

get_rosters_preloadA

Returns the personal roster preload for one month. A single API call that covers multiple areas: Einsatzwünsche, Vakante Dienste, and Diensttausch.

Returns raw API data with these top-level keys: { rosterUrlaubEinsatzwunsch: { // personal calendar + shift requests data: { data: [{ item1: { name, id }, // employee (self) item2: { data: [{ // all days of the month (not sparse) day: { date, bankHolidayName, isSchoolHoliday }, shortName, // duty type label shortNameSollplan, // concrete duty code, e.g. "H31T" einsatzwunsch: boolean, // true = shift request exists for this day prioritaet: boolean, beantragt: boolean, // requested genehmigt: boolean, // approved einsatzwunschWunsch: number, // wish priority level kommentar: string }]} }]} },

swapDutyOffersOffered: { // Diensttausch: offers from others (can accept) data: { offers: [{ id, date, offerer, acceptor, dutiesOfferer: { data: [string] }, dutiesAcceptor: { data: [string] }, workstationsOfferer, planninggroupsOfferer, workstationsAcceptor, planninggroupsAcceptor, state, comment }]} },

swapDutyOffersOwn: { // Diensttausch: own offers data: { offers: [...] } },

vacantDutiesOccupied: { // Vakante Dienste: taken on by employee data: { duties: [{ idVacantDuty, atDate, nameWorkstation, duty, occupyUntil, state, comment, isAssumed, idPlanningGroup, namePlanningGroup }], legendDuties: { ... } } },

vacantDutiesAssumed: { // Vakante Dienste: assumed but pending data: { duties: [...] } },

fehlzeiten: { ... } // absences }

Inputs: year (required), month (required).

get_vakante_duty_detailsA

Returns full shift details for a single vacant duty entry.

Use idVacantDuty from get_rosters_preload → vacantDutiesOccupied.data.duties[].idVacantDuty

Returns: { day, from, to, employeeId, entries: [{ shortName, // duty code nameWorkplace, shortNameWorkplace, nameShiftType, nameRole, from, to, // UTC shift start/end times stringDuration, // e.g. "12h00" genehmigungsebene }] }

Inputs: idVacantDuty (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct resource: planning groups, team duty roster, personal preload, and vacant duty details. The only potential overlap is between get_abteilungsdienstplan and get_rosters_preload, but one is team-wide and the other is personal, making them clearly complementary.

    Naming Consistency3/5

    All tool names start with 'get_', but the object part mixes German and English inconsistently (e.g., 'planungsgruppen' vs. 'rosters_preload' vs. 'abteilungsdienstplan'). This mixed-language pattern is predictable at the verb level but not at the noun level.

    Tool Count5/5

    With 4 tools, the server is well-scoped for a read-only duty management API. Each tool serves a clear, non-redundant purpose, and the count fits within the ideal 3-15 range.

    Completeness5/5

    The tools cover the core read operations: discovering planning groups, retrieving team rosters, accessing personal roster data with multiple sub-areas, and drilling into vacant duty details. No obvious read-only gaps exist for the implied domain of viewing duty plans.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers