Linux MCP daemon (mcpd) logo

Linux MCP daemon (mcpd)

Securely exposes Linux system inspection and administration tools through MCP with per-user workers and scoped root access.

Install Linux MCP daemon (mcpd)

Run the project’s own setup commands, in order.

Setup steps from the project

Linux MCP daemon (mcpd) installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/nucleusv/linux-mcp-daemon/main/scripts/install.sh | sudo bash
    
  2. 2. Install
    sudo apt install ./linux-mcp-daemon_<version>_amd64.deb
    
  3. 3. Install
    curl -fsSL .../install.sh | bash -s -- --bin-dir ~/.local/bin
    
  4. 4. Install
    ./scripts/deploy.sh
    
  5. 5. Install
    ./scripts/build-cli.sh                  # writes executables/linuxctl
    

Overview

Linux MCP daemon (mcpd) connects AI agents to Linux hosts through JSON-RPC and Server-Sent Events over HTTPS. It exposes structured tools for inspecting and managing processes, memory, disks, logs, networking, services, files, and system settings. Each call runs in a fresh worker under the caller's OS account, while mcp-sudo.yaml controls which tools may run with root privileges and which paths or resources they can access. Reach for it when an agent needs auditable Linux administration without giving it an unrestricted shell.

Use cases

  • Inspect Linux processes, memory, disks, logs, and services through structured MCP tools
  • Diagnose host performance and connectivity issues without exposing a general shell
  • Grant an agent narrowly scoped service or filesystem administration
  • Audit agent-driven Linux operations by user, tool, arguments, and result

Key features

  • HTTPS with SSE and JSON-RPC transport
  • Per-user ephemeral worker processes
  • Per-tool privilege and resource restrictions
  • Structured Linux system and service inspection
  • Salted bearer-token authentication and audit logging
  • Docker and Kubernetes deployment support

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 63d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars7Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Linux MCP daemon (mcpd) works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Linux MCP daemon (mcpd)

Linux MCP daemon (mcpd) is an MCP server that connects AI agents to a Linux host through HTTPS/SSE and JSON-RPC. Its main tools inspect and manage processes, memory, disks, logs, network connections, services, files, and system settings, with per-tool privilege rules and isolated worker processes.

Run the provided installation script with `sudo` on an amd64 or arm64 Linux host. It installs `mcpd` and `linuxctl`, writes configuration under `/etc/mcpd/configs`, creates an initial user, prints its token once, and starts the systemd service.

Connect using the HTTPS server URL, the TLS certificate fingerprint, and a bearer token. The default URL is `https://127.0.0.1:9091`; the installer prints the fingerprint and initial token needed for client configuration.

Root access is controlled per user and per tool in `mcp-sudo.yaml`. Each request runs in a fresh worker under a Linux account, and privileged grants can limit paths, network destinations, and sysctl keys. Calls are logged with secrets redacted.

Yes, the project provides a container image and Kubernetes deployment manifests. In the documented containerized configuration, privileged workers can join the host mount namespace so host inspection and administration target the real host rather than only the daemon container.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLinux MCP daemon (mcpd) AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/linux-mcp-daemon-mcpd?style=directory)](https://allmcps.com/mcp/linux-mcp-daemon-mcpd)
HTML Embed
<a href="https://allmcps.com/mcp/linux-mcp-daemon-mcpd"><img src="https://allmcps.com/api/badge/linux-mcp-daemon-mcpd?style=directory" alt="Linux MCP daemon (mcpd) on AllMCPs" /></a>