parch-ops-server
OfficialEnables searching Parch Discourse forum topics and fetching forum threads as Markdown via the Discourse JSON API.
Provides tools for Parch/Arch Linux system operations, including package queries, updates, orphan management, integrity checks, config/log analysis, diagnostics, and mirror testing.
Provides tools to search and retrieve Parch Wiki pages through the Wiki.js REST API, with GraphQL/HTML fallbacks and source metadata.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
parch-ops-server
A clean-room, AGPL-3.0-or-later licensed Model Context Protocol server for Parch Linux operations, documentation lookup, and package auditing.
The server is written from scratch. It does not copy or translate code from other MCP servers, and every runtime dependency uses a permissive license.
Features
Detects Parch Linux before falling back to generic Arch-family detection.
Reads Parch Wiki (Wiki.js) content, with an Arch Wiki fallback for upstream topics.
Searches Parch forum topics and renders Discourse threads as Markdown.
Queries pacman for packages, pending updates, owners, integrity, and orphans.
Parses
/etc/pacman.conf,/etc/makepkg.conf, and/var/log/pacman.log.Reports disk, memory, failed systemd units, and boot errors.
Probes Parch, Arch, and Chaotic mirrors concurrently and ranks them by latency.
Searches AUR RPC v5, computes an advisory trust score, and statically audits PKGBUILDs without executing them.
Uses guarded subprocesses, explicit timeouts, no shell interpolation, and passwordless-sudo checks.
Dry-runs all mutations by default. Orphan removal requires
confirm=true.
Related MCP server: linux-diag-mcp
Requirements
Python 3.11+
uv for the recommended workflow
A Parch/Arch host for pacman and systemd tools
Network access for Wiki, forum, AUR, and mirror tools
The knowledge and AUR tools work from any client host. Host tools return a
structured unsupported_host error when pacman/systemd are unavailable.
Install
cd parch-mcp
uv sync --all-extras--all-extras also installs the optional HTTP transport dependencies. To install
only the stdlib/stdio dependencies:
uv syncRun over stdio (default)
uv run parch-ops-serverOr, for a client that starts the server itself:
{
"mcpServers": {
"parch-linux": {
"command": "uv",
"args": [
"--directory",
"/home/sohi/parch/experiment/mcp/parch-mcp",
"run",
"parch-ops-server"
]
}
}
}STDIO uses stdout exclusively for JSON-RPC frames. All logging is routed to
stderr. PARCH_OPS_LOG_LEVEL controls the log level (INFO by default).
Run over HTTP
The HTTP entry point uses the MCP SDK's Starlette/Uvicorn integration. It is intended for local or trusted-network use; put an authenticating reverse proxy in front of it before exposing it remotely.
# Streamable HTTP at /mcp
uv run parch-ops-server-http
# SSE at /sse with messages at /messages/
PARCH_OPS_HTTP_TRANSPORT=sse uv run parch-ops-server-httpEnvironment variables:
Variable | Default | Description |
|
| Bind host |
|
| Bind port |
|
|
|
|
| Streamable HTTP path |
|
| SSE path |
|
| SSE message path |
| unset | Set to |
Tools
Tool | Purpose | Write? |
| Parch variant, tooling, AUR helpers, repositories | No |
| Search Parch Wiki, with Arch Wiki fallback | No |
| Fetch a Parch/Arch wiki page as Markdown | No |
| Search Parch Discourse topics | No |
| Fetch a forum thread as Markdown | No |
| Search sync and installed pacman databases | No |
| Structured package metadata | No |
| Safe pending-update check via | No |
| List orphans; remove only with | Yes |
| Check installed files with | No |
| File owner, package file list, or repository owner | No |
| Search AUR RPC v5 with trust scores | No |
| Static PKGBUILD risk scan | No |
| Disks, memory, failed units, boot errors | No |
| Filtered pacman log history | No |
| Parse and review pacman/makepkg config | No |
| Concurrent mirror reachability and latency test | No |
Read-only tools carry readOnlyHint=true. parch_manage_orphans carries
destructiveHint=true and returns a dry-run preview unless the caller passes
confirm=true and passwordless sudo is available.
Resources
Static resources:
pacman://installedpacman://orphanspacman://log/recentsystem://infosystem://services/failedconfig://pacmanmirrors://parch
Templates:
parchwiki://{slug}parchforum://topic/{topic_id}parchrepo://{package}aur://{package}/pkgbuild
Prompts
parch_troubleshoot(symptom)— evidence-first diagnostics, history, and documentation search.parch_safe_upgrade— disk, mirror, forum, config, and update checks before an upgrade.parch_aur_audit(package)— metadata, PKGBUILD review, and a build decision.
Safety model
Subprocesses use
asyncio.create_subprocess_exec; noshell=True.Commands have hard timeouts and process-group cleanup.
Privileged commands run only when
sudo -n truesucceeds. The server never waits for interactive password input on a stdio session.The PKGBUILD scanner is advisory. It can miss malicious code or flag legitimate patterns. Always read the full PKGBUILD and its sources before building.
Mirror and network tools make outbound requests only to configured or explicitly supplied URLs.
Tests
uv run pytestThe suite covers distro detection, host guards, pacman parsers, AUR trust scoring
and malicious/benign PKGBUILD fixtures, Wiki/forum clients with respx, MCP tool
registration and annotations, resources, prompts, and stderr logging.
Project layout
src/parch_ops_server/
├── __init__.py # stdio and HTTP entry points
├── server.py # MCPServer instance, tools, resources, prompts
├── http_server.py # SSE / Streamable HTTP runner
├── core/
│ ├── distro.py # Parch/Arch detection
│ ├── exec.py # async subprocess runner and host guards
│ ├── pacman.py # pacman queries, updates, orphans, integrity
│ ├── config.py # pacman.conf and makepkg.conf parsing/analysis
│ ├── logs.py # pacman.log parsing and filtering
│ ├── mirrors.py # mirror file parsing and latency probing
│ └── system.py # system diagnostics, systemd, journal
└── clients/
├── wiki.py # Parch Wiki REST/GraphQL/HTML + Arch Wiki fallback
├── forum.py # Parch Discourse JSON API
└── aur.py # AUR RPC v5, trust scoring, PKGBUILD scannerThe Parch Wiki currently exposes a Wiki.js REST API at
https://wikinext.parchlinux.com/_api. The client prefers that API, then tries
GraphQL and HTML fallbacks, and finally falls back to the Arch Wiki for generic
upstream topics. Responses always include source metadata so callers can tell
which wiki answered.
License
Copyright (c) 2026 Parch Linux MCP Contributors.
GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See
LICENSE.
The AGPL's network-use clause applies: if you run a modified version of this server and let other users interact with it over a network, you must offer those users the corresponding source code. Running an unmodified copy is unaffected. Third-party dependencies remain under their own permissive licenses.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Read-only Linux server and Docker monitoring for AI assistants: CPU, memory, disk, network.
Lets Claude, ChatGPT and other AI chats work on your Linux computers: terminal, files and browser.
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to inspect, control, and automate Arch Linux/CachyOS and the Niri Desktop Environment through natural language, featuring tools for window management, system administration, package queries, and hardware control.351MIT
- AlicenseAqualityBmaintenanceLets an AI assistant inspect a Linux machine through ten fixed read-only tools covering load, memory, disks, processes, ports, interfaces, systemd units, the journal, and allowlisted log files. All output is size-capped, control-character-stripped and secret-redacted, and nothing in the package can write to the system.10MIT
- AlicenseAqualityBmaintenanceGives AI agents safe, bounded, non-blocking access to Linux sysadmin inspection tasks, including CPU, RAM and disk healthchecks, memory-safe log tailing with regex filtering, and user-level systemd service and timer auditing. All operations run without sudo or unrestricted root shells, avoiding interactive pager hangs and context window flooding.41MIT
- AlicenseAqualityBmaintenanceEnables an agent to administer a Linux host (with first-class Arch support) over SSH through 109 typed tools covering system state, systemd, journal, packages, network, disks, hardware, boot, sessions, users and security, all returning compact JSON. Reads are the default, while mutations require write mode plus a single-use confirmation token, with optional sudo for root-level operations.1279 npm2MIT