Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

linuxcnc-grpc

Latest version: v1.1.0rc1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: dougcalobrisi
6 Stars
0 Forks
1 Versions
810 Downloads
Python Repo language

Scan summary

linuxcnc-grpc was last scanned on 29 Nov 2026 at version 1.1.0rc1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 1.1.0rc1.
  • Downloads: 810 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.0rc1 LATEST 29 Nov 2026 No rules fired

No rules fired in 1.1.0rc1

Findings

Findings for v1.1.0rc1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.1.0rc1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

linuxcnc-grpc

PyPI npm crates.io

gRPC interface for LinuxCNC machine control and HAL (Hardware Abstraction Layer).

Why gRPC?

LinuxCNC's native Python API only works locally. This project exposes it over gRPC, enabling:

  • Remote monitoring - Build web dashboards, mobile apps, or desktop GUIs
  • Multi-machine management - Monitor a fleet of CNC machines from one place
  • Any-language integration - Use Go, Node.js, Rust, or any gRPC-supported language
  • Real-time streaming - Subscribe to status updates instead of polling

Running the Server

The server runs on your LinuxCNC machine and exposes the gRPC interface.

Basic Usage
pip install linuxcnc-grpc
# or with uv
uv pip install linuxcnc-grpc
linuxcnc-grpc --host 0.0.0.0 --port 50051

Security warning: the server has no authentication and no TLS. Anyone who can reach the port can command the machine. Bind to 127.0.0.1 and connect through an SSH tunnel (ssh -N -L 50051:127.0.0.1:50051 user@cnc-machine), or use --host 0.0.0.0 only on a trusted LAN. See Security Considerations.

The server can start before LinuxCNC: it waits, reports NOT_SERVING on the gRPC health service and answers UNAVAILABLE on the RPCs that need LinuxCNC until it is up (GetServerInfo, UploadFile, ListFiles, ReadFile, DeleteFile and the HAL service work meanwhile). Pass --require-linuxcnc to make it exit instead.

Auto-start with LinuxCNC

To start the gRPC server automatically when LinuxCNC launches, add to your machine's HAL file:

# Start gRPC server (runs until LinuxCNC exits)
loadusr linuxcnc-grpc --host 0.0.0.0 --port 50051

Or use a dedicated HAL file via your INI:

[HAL]
POSTGUI_HALFILE = grpc-server.hal

Quick Start

Python
pip install linuxcnc-grpc

PyPI package

import grpc
from linuxcnc_pb import linuxcnc_pb2, linuxcnc_pb2_grpc

channel = grpc.insecure_channel("localhost:50051")
stub = linuxcnc_pb2_grpc.LinuxCNCServiceStub(channel)

status = stub.GetStatus(linuxcnc_pb2.GetStatusRequest())
pos = status.position.actual_position
print(f"Position: X={pos.x:.3f} Y={pos.y:.3f} Z={pos.z:.3f}")
Go
go get github.com/dougcalobrisi/linuxcnc-grpc

pkg.go.dev

import (
    pb "github.com/dougcalobrisi/linuxcnc-grpc/packages/go"
    "google.golang.org/grpc"
    "google.golang.org/grpc/credentials/insecure"
)

conn, _ := grpc.NewClient("localhost:50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
client := pb.NewLinuxCNCServiceClient(conn)

status, _ := client.GetStatus(context.Background(), &pb.GetStatusRequest{})
pos := status.GetPosition().GetActualPosition()
fmt.Printf("Position: X=%.3f Y=%.3f Z=%.3f\n", pos.GetX(), pos.GetY(), pos.GetZ())
Node.js / TypeScript
npm install linuxcnc-grpc

npm package

import * as grpc from "@grpc/grpc-js";
import { LinuxCNCServiceClient, GetStatusRequest } from "linuxcnc-grpc";

const client = new LinuxCNCServiceClient("localhost:50051", grpc.credentials.createInsecure());

client.getStatus(GetStatusRequest.create(), (err, status) => {
  if (err) throw err;
  const pos = status!.position!.actualPosition!;
  console.log(`Position: X=${pos.x.toFixed(3)} Y=${pos.y.toFixed(3)} Z=${pos.z.toFixed(3)}`);
});
Rust

crates.io

[dependencies]
linuxcnc-grpc = "1.1"
tokio = { version = "1", features = ["full"] }
tonic = "0.12"
use linuxcnc_grpc::linuxcnc::linux_cnc_service_client::LinuxCncServiceClient;
use linuxcnc_grpc::linuxcnc::GetStatusRequest;

let mut client = LinuxCncServiceClient::connect("http://localhost:50051").await?;
let status = client.get_status(GetStatusRequest {}).await?.into_inner();
if let Some(pos) = status.position.as_ref().and_then(|p| p.actual_position.as_ref()) {
    println!("Position: X={:.3} Y={:.3} Z={:.3}", pos.x, pos.y, pos.z);
}

Using with Claude (MCP)

linuxcnc-mcp is an MCP server and Claude Code plugin built on this API. It is read-only by default; control tools are opt-in and, by default, ask for approval before each call. See Using with Claude.

Examples

Complete examples for all supported languages:

Example Description Python Go Node.js Rust
get_status Poll machine status view view view view
stream_status Real-time status streaming view view view view
jog_axis Jog axes with keyboard view view view view
mdi_command Execute G-code via MDI view view view view
hal_query Query HAL pins/signals view view view view
upload_file Upload, list, delete G-code files view view view view

See examples/README.md for setup instructions.

Services

  • LinuxCNCService - Machine control: status, jogging, MDI, program execution, file management
  • HalService - HAL introspection: query pins, signals, parameters (read-only)
File Management

The server provides UploadFile, ListFiles, ReadFile, DeleteFile and ResolveFile RPCs for remote G-code file management. Files are stored in the NC files directory (default: /home/linuxcnc/linuxcnc/nc_files).

Configure the directory with --nc-files or the LINUXCNC_NC_FILES environment variable:

linuxcnc-grpc --host 0.0.0.0 --nc-files /path/to/nc_files

Safety Warning

This server provides remote control of CNC machinery, and it has no authentication and no TLS: anyone who can reach the port can command the machine. Ensure proper safety measures:

  • Bind to localhost (--host 127.0.0.1) and connect through an SSH tunnel: ssh -N -L 50051:127.0.0.1:50051 user@cnc-machine
  • Otherwise use --host 0.0.0.0 only on a trusted, isolated LAN, never on a shared network or the internet
  • Never leave machines unattended during remote operation
  • Verify E-stop and safety systems are functional

Production Deployment

The packaged server does not enable TLS; the SSH tunnel above is the supported way to secure it. If you embed the servicers in your own server, you can add TLS yourself:

# Server with TLS
credentials = grpc.ssl_server_credentials([(private_key, certificate)])
server.add_secure_port('[::]:50051', credentials)
# Client with TLS
credentials = grpc.ssl_channel_credentials(root_certificates)
channel = grpc.secure_channel('your-machine:50051', credentials)

See Server Configuration for complete TLS setup instructions.

Development

Requires uv for Python dependency management:

# Install dev dependencies
make setup

# Run tests
make test          # Python tests
make test-all      # All languages

# Generate proto code
make proto-all     # Regenerate for all languages

See CLAUDE.md for detailed development documentation.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases linuxcnc-grpc

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229