Skip to main content
Glama

waterjet-mcp

A Model Context Protocol server that gives an AI assistant the complete technical documentation of one water jet cutting installation:

Part

What

Cutting table

PTV WJ3020B 1Z-PJ-NL ("New Line") gantry table, 3000 x 2000 mm, ProgressJet 5-axis head (axes X1, Y1, Y2, Z1, A1, B1), abrasive feeder, height control

Control

AREM PRO Cnc886 on an Advantech IPC, Windows 10 IoT, CAN bus to drives and I/O

Servo drives

6 x Kollmorgen SERVOSTAR 600 (443M / 403M / 403A), with the parameter dumps of every axis

PLC I/O

Elsaco PROMOS line2 CBIO-12 / CAIO-12 modules

High-pressure pump

PTV JETS 3.8/60-COMPACT, 37 kW, 4100 bar, 3.8 l/min, H2O Jet 60K intensifier

Documentation

126-sheet electrical documentation, pump manual (82 p.), H2O Jet intensifier service manual (47 p.), drawings (DWG + PDF), spare parts list, service procedures

The machine is operated by A. Moreira Cadete, Lda. (AMC), Portugal. The server was built so that an assistant can help with troubleshooting, electrical modifications, adding hardware and maintenance planning while quoting the exact sheet, page, terminal or part number.

What the assistant can ask

Tool

Purpose

machine_overview

Identity, power supply, safety chain, installed options, where things are documented

search

Full-text search over every page of every document + curated data (designators, part numbers, signals, words)

get_page, get_page_image

Text and rendered image of any page / schematic sheet

find_sheet, get_sheet_index

Find sheets by subject ("drive Z1", "PLC A2", "terminal XT7", "hydraulic scheme")

get_axis

Drive, motor, feedback, switches, valves, connectors and sheets of an axis

get_drive_parameters, compare_drive_parameters, explain_drive_parameter

SERVOSTAR parameter sets of X, Y1, Y2, Z, A, B with meanings and diffs

get_plc_io

I/O map of A2 / A3 / A5, the pump handshake signals, spare capacity

find_component

Any designator or type number -> function, manufacturer part number, location, sheet

search_parts

H2O Jet / PTV spare parts list (intensifier, check valves, seals, on/off valve, nozzles, filters)

get_pump_info

Pump specs, distributor elements, hydraulic scheme positions, menus, passwords levels, intervals, alarms, torques

nozzle_flow

Orifice flow at a pressure and whether the pump can supply it

list_procedures, get_procedure

Step-by-step service procedures (oil change, check valve lapping, seal change, on/off valve kit, portal alignment, control PC, adding I/O ...)

list_drawings, get_drawing, get_document_images

CAD drawings (PNG/DXF) and the photos inside the procedure documents

dump_machine_data

Load a whole curated subject at once

Resources: waterjet://docs/{id} (document text), waterjet://pages/{id}/{page} (page PNG), waterjet://drives/{axis} (raw parameter dump). Prompts: troubleshoot, plan-hardware-addition.

Related MCP server: Document Automation MCP Server

Install

Requires Node.js 18 or newer.

git clone https://github.com/<you>/waterjet-mcp.git
cd waterjet-mcp
npm install
npm run build
npm test            # end-to-end smoke test over stdio

Claude Desktop / Claude Code

claude_desktop_config.json (or .mcp.json in a project for Claude Code):

{
  "mcpServers": {
    "waterjet": {
      "command": "node",
      "args": ["C:/path/to/waterjet-mcp/dist/index.js"]
    }
  }
}

Claude Code one-liner:

claude mcp add waterjet -- node C:/path/to/waterjet-mcp/dist/index.js

The knowledge folder is found next to dist/; set WATERJET_KB=/other/path/knowledge to use another copy.

Try the MCP Inspector: npm run inspect.

Repository layout

src/            TypeScript server (index.ts entry, kb.ts loader + search, tools.ts tool definitions)
knowledge/
  catalog.json  document catalogue
  docs/         per-page extracted text of every document (JSON)
  pages/        rendered page images (PNG, 1600 px) and pictures from the Word procedures
  machine/      curated data: overview, axes, plc_io, components, pump, procedures, nozzle_flow, sheets
  drives/       SERVOSTAR parameter dumps (raw + parsed) and the parameter dictionary
  parts/        spare parts price list
  drawings/     DWG conversions (PNG renders, DXF, extracted text) + drawings.json
  source/       the original PDF / DOC / XLS / DWG files
scripts/        build_kb.py (extraction), dwg_convert.mjs (LibreDWG wasm), render_dxf.py (ezdxf)
test/           smoke test

Rebuilding the knowledge base

pip install pymupdf pillow python-docx xlrd ezdxf matplotlib
npm install                       # also installs @mlightcad/libredwg-web for the DWG conversion
node scripts/dwg_convert.mjs "knowledge/source/Desenhos Tecnicos" /tmp/dwg
python scripts/render_dxf.py /tmp/dwg
python scripts/build_kb.py knowledge/source knowledge --dwg-dir /tmp/dwg

The curated files in knowledge/machine/ and knowledge/drives/servostar_params.json were written by hand from the documents and are not overwritten by the build script.

Notes and caveats

  • Copyright. The manuals and drawings belong to PTV spol. s r.o., H2O Jet Inc., Performance Waterjet and 1. Tousenska; several drawings carry a confidentiality notice. They are included for the machine owner's own maintenance use. Keep the repository private unless you have permission to publish them, or move knowledge/ elsewhere and point WATERJET_KB at it.

  • Pump password. The level-A service password of the pump panel was deliberately left out of the knowledge base.

  • Drive parameters. Meanings in the SERVOSTAR dictionary carry a confidence level; those marked medium/low were written from memory of the SERVOSTAR 600 ASCII reference and should be checked against the official document before a drive is changed.

  • Safety. The pump works at 4100 bar and the drives have a 600 V DC bus. Every procedure in the knowledge base starts with lock-out and bleed-down; the assistant is instructed to quote them. Nothing here replaces the manufacturer's service.

  • The server is read-only: it never talks to the machine.

License

Code (src/, scripts/, test/) is MIT licensed. The documents under knowledge/ remain the property of their respective owners.

Available Tools

22 tools
compare_drive_parametersCompare two drivesA

Diff the parameter sets of two axis drives and explain each differing parameter. Useful when cloning a drive, replacing a SERVOSTAR, or checking why two axes behave differently.

Inputs: axis_a (required), axis_b (required).

dump_machine_dataDump curated dataA

Return one curated data file as text: overview, axes, plc_io, components, pump, procedures, nozzle_flow, sheets. Handy to load a whole subject into context at once.

Inputs: name (required).

explain_drive_parameterExplain drive parameterA

Explain a SERVOSTAR 600 ASCII parameter (e.g. GP, GVTN, FBTYPE, IN3MODE, PGEARI) and show its value in every axis drive. Entries carry a confidence level; verify medium/low ones in the Kollmorgen ASCII reference before changing a drive.

Inputs: name (required).

find_componentFind electrical componentA

Look up an electrical component of the cutting table by designator (KM1, FU3, SQ14, YV11, XT7, GF1.5 ...), type (LC1D18BD, XPS-AC5121), manufacturer or function words (contactor, limit switch, valve, fuse). Returns function, type, manufacturer part number, location and the sheet where it is drawn. Also searches cables.

Inputs: query (required), limit.

find_sheetFind schematic sheetA

Find sheets (pages) of the electrical documentation or the pump manual by subject, e.g. "drive Z1", "PLC A2", "terminal XT7", "hydraulic scheme", "operator panel". Returns page numbers to use with get_page_image.

Inputs: query (required), doc_id.

get_axisAxis detailsA

Everything about one axis of the cutting table: drive model and CAN address, motor, feedback, limit/reference switches, valves and sensors on that trolley, connectors, terminal strips and the schematic sheets. Axes: X1, Y1, Y2, Z1, A1, B1, abrasive feeder. Without an argument returns all axes plus general notes.

Inputs: axis.

get_document_imagesGet document imagesC

Return the pictures embedded in a Word procedure document (portal alignment photos, pump display screenshots, intensifier seal replacement photos).

Inputs: doc_id (required), max_images.

get_drawingGet drawingA

Return a CAD drawing as an image (PNG render of the DWG) together with its metadata and extracted text; DXF/SVG file paths are reported for CAD use. For PDF drawings use get_page_image with the document id.

Inputs: id (required).

get_drive_parametersSERVOSTAR drive parametersA

Return the Kollmorgen SERVOSTAR parameter set dumped from one axis drive (files "Amplifier X/Y1/Y2/Z/A/B" kept by AMC). Optionally filter by parameter names or a substring. Each value is annotated with its meaning from the parameter dictionary when known.

Inputs: axis (required), raw, names, filter.

get_pageGet page textA

Return the extracted text of one page of a document (and optionally the rendered page image). For schematic sheets the text is a list of labels, designators and wire numbers; request the image to read the actual circuit. Page numbers are PDF page numbers (= sheet numbers for the electrical documentation).

Inputs: page (required), doc_id (required), include_image.

get_page_imageGet page imageA

Return the rendered image (PNG, 1600 px long side) of a document page, e.g. a wiring sheet of the electrical documentation, the hydraulic scheme of the pump, or a drawing. Use search or find_sheet to find the page number first.

Inputs: page (required), doc_id (required).

get_plc_ioPLC I/O mapC

I/O assignment of the Elsaco PROMOS line2 modules (A2 CBIO-12, A3 CAIO-12, A5 CBIO-12) on CAN bus 2, the relay interface to the high-pressure pump (COM_IN/COM_OUT), and notes on spare capacity for adding hardware.

Inputs: module.

get_procedureGet procedureA

Return a step-by-step maintenance procedure with torques, part numbers and the source pages. Use list_procedures for the ids; a free-text name also works.

Inputs: id (required).

get_pump_infoHigh-pressure pump infoB

Structured data on the JETS 3.8/60-COMPACT pump: technical parameters, electrical installation and distributor elements, hydraulic scheme positions, display abbreviations, password levels and menus, service intervals, alarm thresholds, torques, lubricants.

Inputs: section.

get_sheet_indexSheet indexB

Complete page/sheet index of the electrical documentation (126 sheets) and the pump manual (82 pages) with one-line titles.

Inputs: doc_id.

list_documentsList documentsB

List all documents in the knowledge base (manuals, electrical schematics, drawings, procedures, notes) with their ids, titles, vendor, language and page counts.

Inputs: no named parameters.

list_drawingsList drawingsB

List the CAD drawings (converted from DWG: table general arrangement, workshop layout, cutting head, height sensor arm, X bellows) and the PDF drawings (table dimensions, ON/OFF valve holder, abrasive hopper air assembly, check valve machining) with key dimensions.

Inputs: no named parameters.

list_proceduresList proceduresA

List the maintenance and service procedures available (pump start/stop, oil change, service counter reset, check valve lapping, HP seal change, LP seals/end bells, bleed-down valve, ON/OFF valve repair kit, firing pin, portal alignment, control PC maintenance, adding hardware/I-O).

Inputs: no named parameters.

machine_overviewMachine overviewA

Identity and key facts of the water jet installation: PTV WJ3020B 1Z-PJ-NL cutting table (Cnc886 control, Kollmorgen SERVOSTAR drives, Elsaco PLC I/O), JETS 3.8/60-COMPACT pump, power supply, safety chain, options installed and where to find each subject in the documents. Call this first.

Inputs: no named parameters.

nozzle_flowOrifice flow / pump capacityA

Water flow through a pure-water orifice from the pump manual table (orifice diameter in thousandths of an inch, pressure in psi or bar) and whether the JETS 3.8/60 pump (3.8 l/min) can supply it. Give several orifices to check a multi-head or orifice + leak scenario. Also returns the pump pressure-level table.

Inputs: orifice_thou (required), pressure_bar, pressure_psi.

search_partsSearch spare partsB

Search the H2O Jet / PTV spare parts price list used by AMC (intensifier, check valves, seals, on/off valve, nozzles, mixing tubes, filters, lubricants, swivels) by name or order number, and the spare-parts pages of the pump manual.

Inputs: query (required), limit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools have a clearly distinct target: procedures, drawings, pages, sheets, axes, drive parameters, PLC I/O, components, parts and pump flow are all separable, and descriptions actively steer selection ("call this first", "use list_procedures for the ids"). The main friction is that dump_machine_data re-packages subsets of machine_overview, get_axis, get_plc_io, get_pump_info and list_procedures, and that global search overlaps with find_component/search_parts/find_sheet, so an agent may pick the wrong entry point for a lookup.

    Naming Consistency4/5

    The dominant pattern is verb_noun (list_procedures, get_procedure, get_drawing, get_page, get_page_image, get_axis, get_plc_io, find_component, search_parts, get_pump_info, compare_drive_parameters, explain_drive_parameter). A few deviate into bare nouns or odd forms (machine_overview, nozzle_flow, get_sheet_index, dump_machine_data), but nothing is chaotic and the intent is always readable.

    Tool Count4/5

    22 tools is on the heavy side, but the domain genuinely spans documents, CAD drawings, electrical schematics, drive parameter files, PLC I/O, spare parts and pump hydraulics, so each tool maps to a real subject area. A couple of pairs (list_documents/list_drawings, find_sheet/get_sheet_index) could be consolidated without losing capability.

    Completeness4/5

    Coverage of a technical documentation/knowledge base is strong: overview, document listing, full-text search, page text and images, procedures, drawings, axes, drive parameters (get/diff/explain), PLC I/O, component lookup, spare parts and nozzle flow calculations. Minor gaps remain — no alarm/fault-code troubleshooting tool despite alarm thresholds being mentioned, and drawing retrieval is split (get_drawing handles CAD only, PDF drawings require get_page_image).

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      This server enables AI assistants (CLINE, Cursor, Windsurf, Claude Desktop) to share a common knowledge base through Retrieval Augmented Generation (RAG), providing consistent information access across multiple tools.
      4
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      An MCP server that turns AI assistants into competent Festo/CODESYS PLC engineers by grounding them in curated, manufacturer-accurate knowledge and forcing every artifact through a machine-checked validation pipeline for CODESYS import.
      18
      65 npm
      2
      MIT