# Linux MCP daemon (mcpd) [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/nucleusv/linux-mcp-daemon  
**GitHub Stars:** 7  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/linux-mcp-daemon-mcpd

## Description
Self-hosted Linux admin over MCP: 38 tools, per-user workers, root per tool within path limits

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/nucleusv/linux-mcp-daemon), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/nucleusv/linux-mcp-daemon/main/scripts/install.sh | sudo bash
```

2. Install:

```sh
sudo apt install ./linux-mcp-daemon_<version>_amd64.deb
```

3. Install:

```sh
curl -fsSL .../install.sh | bash -s -- --bin-dir ~/.local/bin
```

4. Install:

```sh
./scripts/deploy.sh
```

5. Install:

```sh
./scripts/build-cli.sh                  # writes executables/linuxctl
```

## Documentation

## What Linux MCP daemon (mcpd) does

Linux MCP daemon (mcpd) provides an MCP interface for operating-system inspection and administration on Linux. Its tools cover areas such as process information, memory and disk usage, journal and kernel logs, network connections, services, system metadata, filesystem access, and selected system settings. Results are structured as JSON or YAML, so an agent can work with the data without parsing command-line output.

The daemon is intended for self-hosted use on a Linux machine, including bare hosts, Docker, and Kubernetes deployments. A companion `linuxctl` command-line client exposes the same live tool and resource definitions for human operators.

## How it works

The master daemon accepts JSON-RPC requests over HTTPS using SSE transport on port 9091. TLS is enabled by default, with a self-signed certificate generated on first launch. Clients authenticate with bearer tokens; token values are stored as salted SHA-256 hashes rather than plaintext.

For every tool or resource request, the daemon starts a new worker process and ends it after the call. The worker runs under a real Linux user identity selected from the configured account, making the privilege boundary an operating-system credential rather than a setting applied only inside the application. A privileged worker can also access the host mount namespace when the documented containerized configuration is enabled.

Linux MCP daemon (mcpd) uses `mcp-sudo.yaml` to decide whether a user may request privileged execution for a particular tool. The configuration can constrain paths, network destinations, and sysctl keys. Calls are logged with the user, tool, arguments, and result, with secrets redacted. Rate limiting, directory traversal protection, request deduplication, and TTL caching are also included.

## Setup and configuration

The installation script supports amd64 and arm64 Linux systems and requires `sudo` and `curl`. It installs `mcpd` and `linuxctl`, creates configuration files under `/etc/mcpd/configs`, creates an initial user, prints that user's token once, and starts a systemd service. Packages are also available in DEB and RPM formats, and a container image is published at `ghcr.io/nucleusv/linux-mcp-daemon`.

After installation, clients use the server URL, the TLS certificate fingerprint, and the generated bearer token. The documented defaults are `https://127.0.0.1:9091` and a fingerprint supplied by the installer. Additional users require matching Linux accounts. User and permission files are edited locally with `linuxctl`; the daemon can reload validated changes through `daemon/reload-config` without a restart.

The CLI can also be installed on macOS, but only as a client for driving a remote Linux daemon. It does not run the Linux daemon locally there.

## Tools and capabilities

- Inspect processes, memory, disks, operating-system metadata, logs, network connections, and services.
- Manage supported services and other administration operations subject to configured grants.
- Read system data from `/proc`, `/sys`, systemd over D-Bus, and the filesystem.
- Return structured JSON or YAML output for agent consumption.
- Discover tools, resources, and resource templates from the running daemon.
- Run calls with per-user identity, optional per-tool privilege, and audit logging.

## Limitations and notes

Linux MCP daemon (mcpd) is designed for Linux hosts; the macOS installation provides only `linuxctl` for remote use. The daemon listens on all interfaces by default, so TLS and client certificate-fingerprint pinning are important. The self-signed certificate is not a substitute for careful network exposure.

Root grants require particular caution. Access that permits writes under `/etc`, service management, or sysctl writes can amount to broad root control, even when the rule appears narrow. The daemon does not provide an MCP tool for changing users or grants, which keeps bearer-token holders from granting themselves additional permissions.

The standard installer creates no default users or tokens beyond the initial user setup and prints the initial token only once. Operators must preserve that token or create another account through the local administration workflow.

_Full upstream README: https://allmcps.com/mcp/linux-mcp-daemon-mcpd/readme_

