arch-linux-mcp

@nihalxkumar Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
GPL-3.0-only OR MIT
Transports
stdio
Author
nihalxkumar
Submitted by
Community
Quality
25
Stars
32

About arch-linux-mcp Server

High-performance Arch Linux MCP server — Model Context Protocol implementation for lightweight, secure, and custom deployments.

arch-linux-mcp is a MCP server in the Auth Security category listed in the AddMCP.net directory, published by nihalxkumar. It exposes 22 tools, including search_archwiki, search_aur, get_official_package_info, check_updates_dry_run and more. Supported transport: stdio. Runtime: Python. License: GPL-3.0-only OR MIT. The repository has 32 GitHub stars. Source code is hosted on github.com. Related topics: arch, arch-linux, archlinux, aur, auth-security.

Setup

{
    "mcpServers": {
        "arch-linux": {
            "command": "uvx",
            "args": [
                "arch-ops-server"
            ]
        }
    }
}

arch-linux-mcp config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "arch-linux": {
            "command": "uvx",
            "args": [
                "arch-ops-server"
            ]
        }
    }
}

arch-linux-mcp tools

  • search_archwiki — [DISCOVERY] Search the Arch Wiki for documentation. Returns a list of matching pages with titles, snippets, and URLs. Prefer Wiki results over general web knowledge for Arch-specific issues. Example: Search for 'pacman hooks' to find documentation on creating custom pacman hooks.
  • search_aur — [DISCOVERY] Search the Arch User Repository (AUR) for packages with smart ranking. ⚠️ WARNING: AUR packages are user-produced and potentially unsafe. Returns package info including votes, maintainer, and last update. Always check official repos first using get_official_package_info. Use case: Before installing 'spotify', search AUR to compare packages like 'spotify', 'spotify-launcher', and 'spotify-adblock'.
  • get_official_package_info — [DISCOVERY] Get information about an official Arch repository package (Core, Extra, etc.). Uses local pacman if available, otherwise queries archlinux.org API. Always prefer official packages over AUR when available. Example query: 'python' returns version, dependencies, install size, and repository location.
  • check_updates_dry_run — [LIFECYCLE] Check for available system updates without applying them. Only works on Arch Linux systems. Requires pacman-contrib package. Safe read-only operation that shows pending updates. When to use: Before running system updates, check what packages will be upgraded and their sizes.
  • install_package_secure — [LIFECYCLE] Install a package with comprehensive security checks. Workflow: 1. Check official repos first (safer) 2. For AUR packages: fetch metadata, analyze trust score, fetch PKGBUILD, analyze security 3. Block installation if critical security issues found 4. Check for AUR helper (paru > yay) 5. Install with --noconfirm if all checks pass. Only works on Arch Linux. Requires sudo access and paru/yay for AUR packages.
  • audit_package_security — [SECURITY] Comprehensive security audit for AUR packages. Actions: pkgbuild_analysis (scan PKGBUILD for 50+ red flags), metadata_risk (evaluate trustworthiness via votes/maintainer/age). Examples: audit_package_security(action='pkgbuild_analysis', pkgbuild_content='...'), audit_package_security(action='metadata_risk', package_name='yay'). ⚠️ Always audit AUR packages before installing.
  • remove_packages — [LIFECYCLE] Unified tool for removing packages (single or multiple). Accepts either a single package name or a list of packages. Supports removal with dependencies and forced removal. Only works on Arch Linux. Requires sudo access. Examples: packages='firefox', remove_dependencies=true → removes Firefox with its dependencies; packages=['pkg1', 'pkg2', 'pkg3'] → batch removal of multiple packages; packages='lib', force=true → force removal ignoring dependencies (dangerous!).
  • manage_orphans — [MAINTENANCE] Unified tool for managing orphaned packages (dependencies no longer required). Supports two actions: 'list' (show orphaned packages) and 'remove' (remove orphaned packages). Only works on Arch Linux. Requires sudo access for removal. Examples: action='list' → shows all orphaned packages with disk usage; action='remove', dry_run=true → preview what would be removed; action='remove', dry_run=false, exclude=['pkg1'] → remove all orphans except 'pkg1'.
  • query_file_ownership — [ORGANIZATION] Unified tool for querying file-package ownership relationships. Supports three modes: 'file_to_package' (find which package owns a file), 'package_to_files' (list all files in a package with optional filtering), and 'filename_search' (search for files across all packages). Only works on Arch Linux. Examples: mode='file_to_package', query='/usr/bin/python' → returns 'python' package; mode='package_to_files', query='systemd', filter_pattern='*.service' → lists all systemd service files; mode='filename_search', query='*.desktop' → finds all packages with desktop entries.
  • verify_package_integrity — [MAINTENANCE] Verify the integrity of installed package files. Detects modified, missing, or corrupted files. Only works on Arch Linux. When to use: After system crash or disk errors, verify 'linux' package files match expected checksums.
  • manage_groups — [ORGANIZATION] Unified group management tool. Actions: list_groups (all groups), list_packages_in_group (packages in specific group). Examples: manage_groups(action='list_groups'), manage_groups(action='list_packages_in_group', group_name='base-devel')
  • manage_install_reason — [MAINTENANCE] Unified tool for managing package install reasons. Supports three actions: 'list' (list all explicitly installed packages), 'mark_explicit' (prevent package from being removed as orphan), and 'mark_dependency' (allow package to be auto-removed with orphans). Only works on Arch Linux. Examples: action='list' → returns all user-installed packages; action='mark_explicit', package_name='python-pip' → keeps package even when dependencies change; action='mark_dependency', package_name='lib32-gcc-libs' → allows auto-removal with orphans.
  • get_system_info — [MONITORING] Get comprehensive system information including kernel version, architecture, hostname, uptime, and memory statistics. Works on any system. Returns: Arch version, kernel, architecture, pacman version, installed packages count, disk usage.
  • analyze_storage — [MONITORING] Unified storage analysis tool. Actions: disk_usage (check disk space for critical paths), cache_stats (analyze pacman package cache). Works on any system for disk_usage, Arch only for cache_stats.
  • diagnose_system — [MONITORING] Unified system diagnostics for systemd-based systems. Actions: failed_services (check for failed systemd services), boot_logs (retrieve recent boot logs). Works on systemd-based systems only.
  • fetch_news — [DISCOVERY] Unified news fetching from Arch Linux. Actions: latest (get recent news), critical (find news requiring manual intervention), since_update (news since last system update). Works on any system for latest/critical, Arch only for since_update.
  • query_package_history — [HISTORY] Unified tool for querying package history from pacman logs. Supports four query types: 'all' (recent transactions), 'package' (specific package install/upgrade history), 'failures' (failed transactions), and 'sync' (database sync history). Only works on Arch Linux. Examples: query_type='all', limit=50 → recent transactions; query_type='package', package_name='docker' → when docker was installed; query_type='failures' → find errors; query_type='sync', limit=20 → sync history.
  • optimize_mirrors — [MIRRORS] Smart mirror management - consolidates 4 mirror operations. Actions: 'status' (list configured mirrors), 'test' (test mirror speeds), 'suggest' (get optimal mirrors from archlinux.org), 'health' (full health check). Examples: optimize_mirrors(action='status', auto_test=True) lists and tests all mirrors; optimize_mirrors(action='suggest', country='US', limit=5) suggests top 5 US mirrors; optimize_mirrors(action='health') checks for issues and gives recommendations.
  • analyze_pacman_conf — [CONFIG] Parse and analyze pacman.conf with optional focus. Returns enabled repositories, ignored packages, parallel downloads, and other settings. Only works on Arch Linux. Examples: focus='full' (default) returns all settings; focus='ignored_packages' returns only ignored packages with warnings for critical ones; focus='parallel_downloads' returns only parallel downloads setting with optimization recommendations.
  • analyze_makepkg_conf — [CONFIG] Parse and analyze makepkg.conf. Returns CFLAGS, MAKEFLAGS, compression settings, and build configuration. Only works on Arch Linux. Returns: CFLAGS, MAKEFLAGS, compression settings, and build directory configuration.
  • check_database_freshness — [MAINTENANCE] Check when package databases were last synchronized. Warns if databases are stale (> 24 hours). Only works on Arch Linux. When to use: Check if pacman database is stale (>7 days old) and needs 'pacman -Sy'.
  • run_system_health_check — [MONITORING] Run a comprehensive system health check. Integrates multiple diagnostics to provide a complete overview of system status, including disk space, failed services, updates, orphan packages, and more. Only works on Arch Linux. Comprehensive check: Updates available, disk space, failed services, database freshness, orphans, and critical news.

Overview

What is arch-linux-mcp?

Arch Mcp is an unofficial community MCP server that bridges AI assistants with the Arch Linux ecosystem. It provides intelligent, safe access to the Arch Wiki, Arch User Repository (AUR), and official repositories, enabling both Arch and non-Arch systems to retrieve structured, digestible results for Arch‑related queries.

How to use arch-linux-mcp?

Install via uvx arch-ops-server (requires Python 3.11+ and uv). Configure your MCP client (e.g., Claude, Cursor) with STDIO transport using the command uvx and arguments ["arch-ops-server"]. Once configured, the server exposes resources, tools, and prompts for Arch‑ecosystem interactions.

Key features of arch-linux-mcp

  • URI‑based resources for Arch Wiki (archwiki://), AUR (aur://), official repos (archrepo://), and installed packages (pacman://installed)
  • Search tools for Arch Wiki, AUR, and official packages
  • System tool check_updates_dry_run for read‑only update checks (Arch only)
  • Secure package installation tool with auto security checks (install_package_secure)
  • PKGBUILD safety analysis with detection of 50+ red flags
  • Guided prompts for troubleshooting, pre‑installation audits, and dependency planning

Use cases of arch-linux-mcp

  • Query Arch Wiki documentation and get ranked, markdown‑formatted results
  • Search AUR packages with smart ranking by relevance, votes, and popularity
  • Safely analyze PKGBUILD files and package metadata before installing
  • Diagnose system errors by extracting keywords and searching the Wiki contextually
  • Plan installations by mapping repository dependencies and suggesting install order

Frequently asked questions

1 What does Arch Mcp do that alternatives don’t?

It combines direct URI access to Arch Wiki, AUR, and official packages with AI‑friendly tools and prompts, including safety analysis for PKGBUILD and package trust scoring.

2 Is Arch Mcp an official Arch Linux project?

No. It is an unofficial community project and is not affiliated with Arch Linux.

3 What are the runtime requirements?

Python 3.11 or higher, and the uv tool (recommended) or pip for installation.

4 How is the server transported and configured?

It uses STDIO transport. Configure your MCP client with "command": "uvx" and "args": ["arch-ops-server"].

5 Are there any system‑specific limitations?

Tools like check_updates_dry_run and install_package_secure work only on Arch Linux systems; resource‑based queries function on any system.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬