Skip to main content
Glama
klipper-doctor-mcp

klipper-doctor-mcp

by kd-011

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MOONRAKER_URLNoBase URL of Moonraker, for example http://printer.local:7125. Turns on `moonraker: true` and `printer_status`. No username or password in the URL.
MOONRAKER_TOKENNoSent as `Authorization: Bearer ...`, if your Moonraker needs one.
MOONRAKER_API_KEYNoSent as the `X-Api-Key` header, if your Moonraker needs one.
KLIPPER_DOCTOR_ALLOWED_DIRSNoColon-separated directories. When set, the `path` option can only read files inside them. Unset means any file this process can read.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Read-only Klipper diagnosis. When the user asks why a Klipper print stopped, failed, died or shut down, or asks what is wrong with their printer.cfg, call diagnose_log (or lint_config) before reading or grepping klippy.log or printer.cfg yourself: it applies rules that each cite the Klipper docs or source, and it also lints the config Klipper wrote into the log. Pass the file as path, or moonraker: true when MOONRAKER_URL is set. Nothing here moves, heats or writes to the printer.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
diagnose_logA

Use when a Klipper print stopped, failed or shut down, or the printer shows an error. Reads a klippy.log and explains why the print or session died, plus lint the printer.cfg that Klipper wrote into the log. Give exactly one of text, path or moonraker. Read-only: it never touches the printer.

lint_configA

Lint a Klipper printer.cfg (or the config inside a klippy.log) and return config findings only, no crash report. Give exactly one of text, path or moonraker. With moonraker, config_file picks a file in the config root (default printer.cfg). Read-only.

list_rulesA

List every rule the klipper-doctor engine can fire, with its id, severity and one-line title. Use explain_rule for the full text.

explain_ruleA

Explain one klipper-doctor rule by id: what it catches, the usual fix, and the Klipper docs page it comes from. Ids come from list_rules or from a finding.

printer_statusA

Ask Moonraker for Klippy's state and state message (which holds the last error when Klippy is in error or shutdown) and the print state. Needs MOONRAKER_URL. Read-only: two GET requests.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 5 tools

Disambiguation4/5

Most tools are clearly distinct: diagnose_log handles crash/failure analysis, list_rules and explain_rule cover the rule catalog, and printer_status queries Moonraker state. The main overlap is diagnose_log and lint_config, since both can lint a printer.cfg or the config embedded in a klippy.log, though the descriptions clarify that diagnose_log adds crash diagnosis while lint_config returns config findings only.

Naming Consistency4/5

All names use snake_case, and four of five follow a clear verb_noun pattern: diagnose_log, lint_config, list_rules, and explain_rule. printer_status is noun_noun rather than verb_noun, a minor deviation that remains readable and predictable.

Tool Count5/5

Five tools is well scoped for a Klipper diagnostics server. Each tool has a clear role: diagnose logs, lint configs, browse rules, explain a rule, and check printer status.

Completeness5/5

The surface covers the core read-only diagnostic workflow: inspect a failed print or shutdown, lint configuration, query live Klippy/print state, and discover or explain every diagnostic rule. There are no obvious lifecycle gaps for a read-only troubleshooting server.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues