Skip to main content
Glama
Debeka MCP Server

Debeka MCP Server

by schmelli

Debeka MCP Server

Ein MCP (Model Context Protocol) Server zur Automatisierung von Debeka Leistungsaufträgen mit Playwright.

Features

  • 🌐 Automatisches Öffnen der Debeka Leistungsauftrag-Seite

  • 📝 Ausfüllen von Servicenummer und Geburtsdatum

  • 📎 Upload von PDF-Dokumenten (Arztrechnungen)

  • 📸 Screenshots zur Überprüfung

  • ✅ Formular absenden

Related MCP server: form-auto-mcp

Installation

Voraussetzungen

  • Node.js 18 oder höher

  • npm

Installation

cd debeka-mcp-server
npm install
npm run build

Dies installiert auch automatisch den Chromium-Browser für Playwright.

Konfiguration in Claude Desktop / Cowork

Füge folgende Konfiguration zu deiner claude_desktop_config.json hinzu:

macOS

Pfad: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "debeka": {
      "command": "node",
      "args": ["/pfad/zu/debeka-mcp-server/dist/index.js"]
    }
  }
}

Windows

Pfad: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "debeka": {
      "command": "node",
      "args": ["C:\\pfad\\zu\\debeka-mcp-server\\dist\\index.js"]
    }
  }
}

Verwendung

Nach der Konfiguration stehen folgende Tools zur Verfügung:

1. debeka_open_page

Öffnet die Debeka Leistungsauftrag-Seite im Browser.

debeka_open_page(headless=false)  # Mit sichtbarem Browser
debeka_open_page(headless=true)   # Ohne UI (Hintergrund)

2. debeka_fill_credentials

Füllt Servicenummer und Geburtsdatum aus.

debeka_fill_credentials(
  servicenummer="123456789",
  geburtsdatum="15.03.1985"
)

3. debeka_upload_documents

Lädt PDF-Dokumente hoch.

debeka_upload_documents(
  file_paths=["/pfad/zu/rechnung1.pdf", "/pfad/zu/rechnung2.pdf"]
)

4. debeka_screenshot

Macht einen Screenshot der aktuellen Seite.

debeka_screenshot(output_path="/pfad/zum/screenshot.png")

5. debeka_submit

Sendet das Formular ab.

debeka_submit()

6. debeka_close

Schließt den Browser.

debeka_close()

7. debeka_get_page_info

Zeigt Informationen über die Seitenstruktur (für Debugging).

Typischer Workflow

  1. Seite öffnen: debeka_open_page(headless=false)

  2. Credentials eingeben: debeka_fill_credentials(servicenummer="...", geburtsdatum="...")

  3. Dokumente hochladen: debeka_upload_documents(file_paths=[...])

  4. Überprüfen: debeka_screenshot()

  5. Absenden: debeka_submit()

  6. Browser schließen: debeka_close()

Integration mit Paperless-NGX

Der Server kann zusammen mit Paperless-NGX verwendet werden:

  1. Arztrechnungen aus Paperless exportieren

  2. Mit diesem MCP-Server automatisch bei Debeka einreichen

Fehlerbehebung

Browser startet nicht

  • Stelle sicher, dass Chromium installiert ist: npx playwright install chromium

Formularfelder werden nicht gefunden

  • Die Debeka-Website könnte ihre Struktur geändert haben

  • Nutze debeka_get_page_info um die aktuelle Struktur zu sehen

  • Nutze debeka_screenshot um den aktuellen Zustand zu überprüfen

Wartungsarbeiten

  • Die Debeka-Website ist manchmal in Wartung

  • Versuche es später erneut

Lizenz

MIT

Available Tools

7 tools
debeka_closeClose Debeka BrowserA
Idempotent

Closes the browser instance.

Call this when you're done with the Debeka form to free up resources.

Returns: Confirmation that browser was closed.

Inputs: no named parameters.

debeka_fill_credentialsFill Debeka CredentialsA
Idempotent

Fills in all personal data fields on the Debeka Leistungsauftrag form.

This tool enters your credentials into the open Debeka form. Make sure to call debeka_open_page first.

Args:

  • servicenummer (string): Your Debeka Servicenummer (e.g., '2267092.1')

  • geburtsdatum (string): Your birth date (DD.MM.YYYY or YYYY-MM-DD format)

  • vorname (string): First name of the insured person

  • nachname (string): Last name of the insured person

  • telefon (string, optional): Phone number for contact

Returns: Success message if credentials were entered, or error details.

Example: servicenummer="2267092.1", geburtsdatum="25.06.1974", vorname="Jyn", nachname="Schultze-Melling", telefon="+4917672825190"

Inputs: vorname (required), nachname (required), geburtsdatum (required), servicenummer (required), +1 more.

debeka_get_page_infoGet Debeka Page InfoA
Read-onlyIdempotent

Gets information about the current page structure.

Useful for debugging if the form structure has changed.

Returns: Page URL, title, and list of form elements found.

Inputs: no named parameters.

debeka_open_pageOpen Debeka Leistungsauftrag PageA
Idempotent

Opens the Debeka Leistungsauftrag form page in a browser.

This tool launches a Chromium browser and navigates to the Debeka form for submitting medical invoices.

Args:

  • headless (boolean): If true, runs browser without UI. Default: false (shows browser window)

Returns: Success message with page title, or error if page couldn't be loaded.

Example:

  • debeka_open_page with headless=false to see the browser

  • debeka_open_page with headless=true for automated processing

Inputs: headless.

debeka_screenshotTake Screenshot of Debeka PageA
Read-onlyIdempotent

Takes a screenshot of the current browser page.

Useful for verifying the current state of the form before submitting.

Args:

  • output_path (string, optional): Path to save the screenshot. If not provided, returns base64.

Returns: Screenshot saved confirmation or base64 encoded image data.

Inputs: output_path.

debeka_submitSubmit Debeka FormA
Destructive

Submits the Debeka Leistungsauftrag form.

WARNING: This will actually submit the form! Make sure all data is correct first.

Returns: Success message if form was submitted, or error details.

Inputs: no named parameters.

debeka_upload_documentsUpload Documents to DebekaA

Uploads PDF documents to the Debeka form.

This tool uploads one or more PDF files to the Debeka Leistungsauftrag form. Make sure to call debeka_open_page and debeka_fill_credentials first.

Args:

  • file_paths (string[]): Array of absolute file paths to PDF documents

Returns: Success message listing uploaded files, or error details.

Example: file_paths=["/path/to/invoice1.pdf", "/path/to/invoice2.pdf"]

Inputs: file_paths (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct role in the form automation workflow: opening, filling, uploading, inspecting, screenshotting, submitting, and closing. There is no meaningful overlap that would cause an agent to select the wrong tool for a given step.

    Naming Consistency4/5

    Tool names consistently use snake_case with a debeka_ prefix and mostly follow a verb_noun pattern like debeka_open_page and debeka_fill_credentials. Minor deviations like debeka_submit and debeka_close omit an explicit object, but the pattern remains predictable.

    Tool Count5/5

    Seven tools is well-scoped for the server's stated purpose of automating a single form submission workflow. Each tool maps to a necessary step or useful utility, with no redundant or excessive additions.

    Completeness4/5

    The tool set covers the full lifecycle from opening the page, filling credentials, uploading documents, submitting, and closing the browser, plus debugging aids like screenshot and page info. Minor gaps exist around post-submission verification or waiting for confirmation, but agents can generally complete the core workflow without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Lemonade's insurance services for renters, homeowners, pet, and car insurance using Playwright browser automation. Users can retrieve quotes, manage existing policies, file claims, and access policy documents through natural language.
      7
      8 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Automates internal system form submissions by reading data from Excel/CSV or Google Sheets and using Playwright to navigate menus and fill form fields, with support for both visible and headless modes.
      1
      11 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Automates T-Mobile account interactions such as viewing usage, paying bills, and checking upgrade eligibility using Playwright browser automation.
      5
      10 npm
      MIT