UGS-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| UGS_HOST | No | UGS Pendant host | localhost |
| UGS_PORT | No | UGS Pendant port | 8080 |
| MACROS_DIR | No | Directory for saved G-code macros | ugs_mcp/macros/ |
| RAPID_SPEED_MM_MIN | No | Rapid speed used in return-to-zero | 5000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ugs_connect | Connect UGS to the CNC machine via serial port. |
| ugs_disconnect | Disconnect UGS from the CNC machine. |
| ugs_troubleshoot_connection | Diagnose connection issues: lists serial ports, checks pendant reachability, suggests fixes. |
| ugs_get_status | Get current machine state: position, status (Idle/Run/Alarm), feed rate, spindle speed. |
| ugs_jog | Jog a single axis (X, Y, or Z) by distance_mm at feedrate mm/min. Call with no token first to get a preview and confirmation token. The user must provide the token back before movement executes. Claude CANNOT self-confirm movement - the token enforces this at the server level. |
| ugs_home | Run the GRBL homing cycle ($H). All axes move toward limit switches at full speed. Call with no token first to get a preview and confirmation token. The user must provide the token back before homing executes. Claude CANNOT self-confirm movement - the token enforces this at the server level. |
| ugs_set_work_zero | Set G54 work zero at the current machine position for the specified axes. This does NOT move the machine - only sets coordinate offsets. Call with confirmed=False first to preview, then confirmed=True to apply. |
| ugs_return_to_zero | Rapid (G0) to G54 work zero (X0 Y0 Z0). Call with no token first to get a preview and confirmation token. The user must provide the token back before movement executes. Claude CANNOT self-confirm movement - the token enforces this at the server level. |
| ugs_run_file | Stream a G-code file to the machine. Runs safety check in preview mode. Call with no token first to get the safety report and confirmation token. The user must provide the token back before the job starts. Claude CANNOT self-confirm - the token enforces this at the server level. |
| ugs_pause_job | Pause the currently running G-code job (sends feed hold). |
| ugs_cancel_job | Cancel the running job. Stopping mid-cut will leave a mark on the part. Uses simple confirmed=True/False (not a token) because stopping is always safer than continuing - token friction on an emergency stop would be dangerous. Call with confirmed=False first to preview, then confirmed=True to cancel. |
| ugs_get_job_status | Get current job progress and machine state. |
| gcode_translate | Translate G-code to plain English, line by line. Accepts either a file path or raw G-code string. Shows each command, its meaning, and the current machine state context. |
| gcode_safety_check | Check G-code for safety issues: spindle off during cuts, missing unit declaration, zero feedrate on cut moves, and other DANGER/WARNING/CAUTION issues. Run this before ugs_run_file for any G-code you did not write yourself. |
| gcode_estimate_time | Estimate machining cycle time from G-code feedrates and distances. Returns HH:MM:SS. |
| gcode_list_tools | List all tools referenced in a G-code file, with first use line and usage count. |
| gcode_save_macro | Save a G-code macro to the macros directory after running a safety check. Claude writes the G-code content; this tool handles validation and persistence. Use gcode_list_macros to see saved macros, gcode_run_macro to execute one. |
| gcode_list_macros | List all saved macros with their names and descriptions. |
| gcode_run_macro | Run a saved macro by name. Call with no token first to get the G-code preview, safety check, and confirmation token. The user must provide the token back before the macro runs. Claude CANNOT self-confirm - the token enforces this at the server level. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zackpeters93/ugs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server