Scan your whole stack
From OX Research Newsroom
Are you using linuxcnc-grpc?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.0rc1
linuxcnc-grpc was last scanned on 29 Nov 2026 at version 1.1.0rc1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.1.0rc1 LATEST | 29 Nov 2026 | No rules fired |
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.
The publisher’s own README, as collected from the registry.
gRPC interface for LinuxCNC machine control and HAL (Hardware Abstraction Layer).
LinuxCNC's native Python API only works locally. This project exposes it over gRPC, enabling:
The server runs on your LinuxCNC machine and exposes the gRPC interface.
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.1and connect through an SSH tunnel (ssh -N -L 50051:127.0.0.1:50051 user@cnc-machine), or use--host 0.0.0.0only 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.
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
pip install linuxcnc-grpc
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 get github.com/dougcalobrisi/linuxcnc-grpc
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())
npm install linuxcnc-grpc
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)}`);
});
[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);
}
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.
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.
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
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:
--host 127.0.0.1) and connect through an SSH tunnel:
ssh -N -L 50051:127.0.0.1:50051 user@cnc-machine--host 0.0.0.0 only on a trusted, isolated LAN, never on a
shared network or the internetThe 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.
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.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.