# Linux MCP daemon (mcpd)

Connect an AI agent to Linux tools for inspecting system health and managing services without an SSH shell. Root access is controlled per tool.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6
- Author: nucleusv
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/nucleusv/linux-mcp-daemon
- Updated: 2026-10-03
- HTML: https://affpapa.org/en/nevibecode/mcp/linux-mcp-daemon-mcpd

## What it does

The server gives an agent structured tools for checking processes, memory, disks, logs, network connections and services. It communicates over HTTPS using SSE, with TLS enabled by default and a self-signed certificate created on first start.

Each tool call runs in a separate worker process under a Linux account. Rules in `mcp-sudo.yaml` determine which users and tools can receive elevated privileges. Calls are logged, with secrets redacted from arguments. Root is granted per tool, so broad permissions need careful configuration.

The daemon can run on a host, in Docker or in Kubernetes. To connect Claude Code, register the server’s SSE endpoint on port `9091` using the command below.

## Requirements
- Remote server: `https://{host}:9091/sse`

## Install

### Claude Code (native platform)

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport sse linux-mcp-daemon-mcpd https://{host}:9091/sse
```

### Codex

**Codex**
- Codex connects MCP servers over stdio and streamable HTTP only, and this server speaks SSE

### Cursor

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "linux-mcp-daemon-mcpd": {
            "url": "https://{host}:9091/sse"
        }
    }
}
```

### GitHub Copilot

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "linux-mcp-daemon-mcpd": {
            "type": "sse",
            "url": "https://{host}:9091/sse"
        }
    }
}
```

### Gemini CLI

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
gemini mcp add -t sse linux-mcp-daemon-mcpd https://{host}:9091/sse
```

## When to use it
- inspect CPU load and memory use
- find disk usage on a Linux host
- review system logs and network connections
- check which Linux services are running
- grant root privileges to selected tools

## Example prompts
- Check processes, memory, and disk use on my Linux server.
- Show the server's logs and network connections.
- Check the running services and restart the requested one if its permissions allow it.

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [Oh My Posh Validator](https://affpapa.org/en/nevibecode/mcp/oh-my-posh-validator.md) — MCP server · ★ 23654
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18779
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17191
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12110

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
