A previous release had provenance metadata, but this release does not. View details.
mcp-systemd-crunchtools
MCP server for systemd unit management via D-Bus. Manages the full lifecycle of any systemd unit — not just Podman-managed containers: listing, status, lifecycle control, unit file authoring and decommissioning, journal queries, failed-unit and job triage, timers, host info, and login sessions.
Installation
# uvx (zero-install)
uvx mcp-systemd-crunchtools
# pip
pip install mcp-systemd-crunchtools
# Container
podman run \
-v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket \
-v /etc/systemd/system:/etc/systemd/system \
--security-opt label=type:container_runtime_t \
quay.io/crunchtools/mcp-systemd
The D-Bus socket mount is required for every tool. The /etc/systemd/system mount is only required for unit_file_write_tool and unit_file_remove_tool — omit it to run the server read/lifecycle-only.
Do not add :z or :Z to the unit-directory mount. Both relabel the host
directory recursively — z to container_file_t, Z to a container-private
MCS label — and /etc/systemd/system is not a volume, it is host state whose
SELinux type is a real security boundary. One such mount rewrites the type on
every unit on the host, including sshd and dbus, and it does it again on
every container restart. container_runtime_t can already read and write
systemd_unit_file_t, which is what the relabel was buying, so the mount
needs no label option at all. Fix an already-relabeled host with
restorecon -RF /etc/systemd/system (-F is required because
container_file_t is a customizable type, so a plain restorecon declines).
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
DBUS_SYSTEM_BUS_SOCKET |
No | /run/dbus/system_bus_socket |
D-Bus system bus socket path |
SYSTEMD_UNIT_DIR |
No | /etc/systemd/system |
Directory unit_file_write/remove operate on |
SYSTEMD_EXTRA_PROTECTED_UNITS |
No | — | Comma-separated units added to the built-in denylist |
Protected units
unit_stop, unit_restart, unit_disable, unit_mask, and unit_file_remove refuse to act on a small built-in denylist of core system units (dbus, sshd, networking, logind, journald). This cannot be bypassed — it exists so an agent can't take down the box it's running on. Add more units with SYSTEMD_EXTRA_PROTECTED_UNITS.
Claude Code Integration
claude mcp add mcp-systemd-crunchtools \
-- uvx mcp-systemd-crunchtools
Tools (21)
Units (3)
| Tool | Description |
|---|---|
unit_list |
List loaded units or installed unit files |
unit_status |
Curated status (active state, PID, memory, CPU) |
unit_show |
Full property dump (deps, exec settings, cgroup) |
Lifecycle (9)
| Tool | Description |
|---|---|
unit_start |
Start a unit |
unit_stop |
Stop a unit (protected-list guarded) |
unit_restart |
Restart a unit (protected-list guarded) |
unit_reload |
Reload a unit's config without restarting |
unit_enable |
Enable a unit to start on boot |
unit_disable |
Disable a unit from starting on boot (protected-list guarded) |
unit_mask |
Mask a unit (protected-list guarded) |
unit_unmask |
Unmask a unit |
daemon_reload |
Reload systemd's unit file cache |
Unit files (2)
| Tool | Description |
|---|---|
unit_file_write |
Write a new unit file (backs up any file it overwrites) |
unit_file_remove |
Decommission: stop, disable, back up, remove (protected-list guarded) |
Troubleshooting (3)
| Tool | Description |
|---|---|
journal_query |
Filtered journal query (unit, priority, since/until, pattern, boot) |
failed_units |
List units in the 'failed' state |
list_jobs |
List pending/stuck jobs |
Timers (1)
| Tool | Description |
|---|---|
timer_list |
List timers with next/last elapse |
System (2)
| Tool | Description |
|---|---|
system_status |
Manager state: running/degraded, failed/job counts, version |
hostinfo |
Hostname, kernel, OS |
Sessions (1)
| Tool | Description |
|---|---|
session_list |
Who's logged in right now |
License
AGPL-3.0-or-later
Metadata
Release files for mcp-systemd-crunchtools 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_systemd_crunchtools-0.4.0.tar.gz | 223.3 kB | Without provenance | Details for mcp_systemd_crunchtools-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_systemd_crunchtools-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_systemd_crunchtools-0.4.0-py3-none-any.whl |
Total release size: 256.9 kB
Release files / mcp_systemd_crunchtools-0.4.0.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | mcp_systemd_crunchtools-0.4.0.tar.gz |
|---|---|
| Size | 223.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ce237c96b7d899d9c3d662b155c96df200054c31a471488efebd3f7281c56a4
|
|
BLAKE2b-256 checksum How to use checksums |
da95b8857b07e532acb814e83f67b7410fa9bd2d5a48bad2c5173e8854e473be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Hummingbird OS","version":"20251124","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mcp_systemd_crunchtools-0.4.0-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | mcp_systemd_crunchtools-0.4.0-py3-none-any.whl |
|---|---|
| Size | 33.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0f739654989668d9e3f9bf4ddbfb96e3d19c025e251bf7f01e96713c8c9f419
|
|
BLAKE2b-256 checksum How to use checksums |
05aa449a90687b1a5eb7babff8af1abd49c52adc1f8ada75230fca510299d7e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Hummingbird OS","version":"20251124","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for mcp-systemd-crunchtools 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.3.7 2 files With provenance
- Added 0.4.0 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.