Arch MCP Server logo

Arch MCP Server

Administers Linux hosts over SSH with compact tools for system diagnosis, services, packages, networking, files, containers, and controlled writes.

Install Arch MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "arch-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "arch-mcp-server"
      ],
      "env": {
        "ARCH_MCP_HOST": "YOUR_VALUE_HERE",
        "ARCH_MCP_PORT": "YOUR_VALUE_HERE",
        "ARCH_MCP_USER": "YOUR_VALUE_HERE",
        "ARCH_MCP_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y arch-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

arch-mcp-server connects an MCP client to a Linux host over SSH, with first-class support for Arch Linux administration. It exposes task-oriented tools for system state, systemd, logs, packages, networking, disks, hardware, boot, sessions, security, files, containers, and command fallbacks. Read-only mode is the default, while mutations use write modes, confirmation tokens, command restrictions, and audit logging. Reach for it when an agent needs structured host operations without passing large raw shell responses into context.

Use cases

  • Diagnose failed systemd services and inspect recent journal entries
  • Check disk usage, hardware state, routes, DNS, and network reachability
  • Manage packages, users, firewall rules, and systemd units with confirmation
  • Inspect and operate Docker containers and Compose projects
  • Run approved administrative commands with compact structured output

Key features

  • SSH-based Linux host administration
  • Arch Linux-focused system tools
  • Compact JSON task responses
  • Readonly, confirmation-gated write, and admin modes
  • Docker, filesystem, network, and systemd operations
  • stdio and optional streamable HTTP transports

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.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · arch-mcp-server (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit17d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Arch MCP Server works

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.

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 Arch MCP Server

arch-mcp-server is an MCP server that connects an AI agent to a Linux host over SSH, with first-class Arch Linux support. Its tools cover system status, systemd, logs, packages, networking, disks, hardware, boot, sessions, security, files, containers, and controlled command execution.

Install it with `npx -y arch-mcp-server`, install it globally with `npm i -g arch-mcp-server`, or build it from source with Node.js 20+ and pnpm using `pnpm install` followed by `pnpm build`. Start a built server with `node dist/index.js`.

Set `ARCH_MCP_HOST`, `ARCH_MCP_PORT`, `ARCH_MCP_USER`, and `ARCH_MCP_KEY` in the server environment. The SSH key must authenticate to the target Linux host, and sudo-based operations additionally require suitable NOPASSWD sudoers rules on the remote side.

Yes, arch-mcp-server works with Cursor through its standard MCP server configuration. Set the command to `node`, point `args` to the built `dist/index.js`, and place the SSH and mode settings in the configuration's `env` object.

Write operations require write mode and a single-use confirmation token bound to the requested tool and arguments. The server also applies command and path restrictions, rate limits, audit logging, and separate opt-ins for broader execution tools.

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 PreviewArch MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/arch-mcp-server?style=directory)](https://allmcps.com/mcp/arch-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/arch-mcp-server"><img src="https://allmcps.com/api/badge/arch-mcp-server?style=directory" alt="Arch MCP Server on AllMCPs" /></a>