# arch-mcp-server [Health: Active]

**Category:** 🖥️ Command Line  
**Repository:** https://github.com/DankyoDev/arch-mcp-server  
**GitHub Stars:** 2  
**npm Downloads (last month):** 1085  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/arch-mcp-server

## Description
MCP server for Linux host administration over SSH, with first-class Arch Linux support

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "arch-mcp-server": {
    "command": "npx",
    "args": ["-y","arch-mcp-server"],
    "env": {
      "ARCH_MCP_HOST": "",
      "ARCH_MCP_PORT": "",
      "ARCH_MCP_USER": "",
      "ARCH_MCP_KEY": ""
    }
  }
}
```

**Requires environment variables:** `ARCH_MCP_HOST`, `ARCH_MCP_PORT`, `ARCH_MCP_USER`, `ARCH_MCP_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What arch-mcp-server does

arch-mcp-server gives an AI agent structured access to a Linux host through SSH. Its catalog covers diagnosis and administration across system state, systemd units, journal logs, packages, network configuration, storage, hardware, boot information, user sessions, and security. It also includes tools for files, archives, checksums, downloads, processes, Docker containers, firewall rules, users, and systemd unit files.

The server is designed around tasks rather than acting as a thin SSH command wrapper. Native tools parse results and return compact JSON, reducing the amount of command metadata and irrelevant output placed in the model context. A core profile provides a smaller everyday catalog, while readonly and full profiles expose broader sets of diagnostic and operational tools.

## How it works

The server connects to the target through SSH using a host, port, user, and private key supplied through environment variables. It normally communicates with an MCP client over stdio. An optional streamable HTTP transport can expose the MCP endpoint for clients that do not support stdio.

Operations are arranged in three levels. Native tools provide parsed results for common tasks. The `exec` tool supports a daily allowlist of binaries such as `rg`, `fd`, `jq`, `tar`, `rsync`, `curl`, and `git`. More general `exec_any` and `script_run` operations require administrator mode and explicit opt-in. `raw_exec` is separately disabled by default and accepts only an allowed binary, not a shell.

## Setup and configuration

Building from the repository requires Node.js 20 or newer and pnpm. Run `pnpm install`, `pnpm build`, then start `node dist/index.js`. The npm package can also be launched with `npx -y arch-mcp-server` or installed globally before running `arch-mcp`.

The minimum connection configuration uses `ARCH_MCP_HOST`, `ARCH_MCP_PORT`, `ARCH_MCP_USER`, and `ARCH_MCP_KEY`. `ARCH_MCP_MODE=readonly` is the default. Set `ARCH_MCP_PROFILE` to choose the exposed tool profile. Sudo-based operations can run as the SSH user with `ARCH_MCP_ALLOW_SUDO=1`, provided the remote account has suitable NOPASSWD sudoers rules. `ARCH_MCP_SUDO_ALLOW` can narrow the permitted commands.

For HTTP mode, start the process with `--http` and a port. Setting `ARCH_MCP_HTTP_TOKEN` enables Bearer-token authentication; without it, the endpoint should be limited to localhost or protected by a proxy.

## Tools and capabilities

- Inspect system status, failed services, journal entries, disks, hardware, routes, DNS, and processes.
- Manage packages, services, users, groups, firewall rules, routes, and systemd unit files.
- Operate containers with Docker listing, logs, inspection, and Compose actions.
- Create, copy, move, remove, archive, checksum, and inspect files with previews and confirmations.
- Fetch URLs, check HTTP status and latency, and use approved command-line fallbacks.
- Read MCP resources at `arch://rules`, `arch://capabilities`, and `arch://cheatsheet`.

## Limitations and notes

Write operations require write mode and a single-use confirmation token tied to the tool and its arguments. Preview and dry-run flows can return the token before execution. A process denylist blocks several dangerous commands, critical services, sensitive file writes, and host-privileged container options. File removal also rejects protected paths such as `/`, `/etc`, `/usr`, and `/home`.

The server applies a rate limit of 30 calls per minute, with `raw_exec` counting twice. It records audit events in a rotating JSONL file and redacts tokens and file contents. Fallback usage is tracked separately so recurring commands can be identified for possible native tool coverage. The remote host and SSH account must be configured with the access and permissions required by the selected operations.

_Full upstream README: https://allmcps.com/mcp/arch-mcp-server/readme_

