Arch MCP

Community Search and web

Search the Arch Wiki and AUR, get package info, check for updates, install packages and analyze PKGBUILDs, from Arch or non-Arch systems.

Install

The installation steps are in the documentation below. Documentation

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Arch Linux MCP Server
  2. Sneak Peak into what's available
  3. Installation
  4. Configuration
  5. Contributing
  6. License

Arch Linux MCP Server

Disclaimer: Unofficial community project, not affiliated with Arch Linux.

A Model Context Protocol (MCP) server that bridges AI assistants with the Arch Linux ecosystem. Enables intelligent, safe, and efficient access to the Arch Wiki, AUR, and official repositories for AI-assisted Arch Linux usage on Arch and non-Arch systems.

Leverage AI to get digestible, structured results that are ready for follow up questions and actions.

📖 Complete Documentation with Comfy Guides

Sneak Peak into what's available

Using VS Code Sonnet 3.5 for Safe Installation from AUR

Asking Claude Code Sonnet 4.5 for fedora equivalent command

Resources (URI-based Access)

Direct access to Arch ecosystem data via custom URI schemes:

URI SchemeExampleReturns
archwiki://archwiki://Installation_guideMarkdown-formatted Wiki page
Package Information
URI SchemeExampleReturns
archrepo://archrepo://vimOfficial repository package details
aur://*/infoaur://yay/infoAUR package metadata (votes, maintainer, dates)
aur://*/pkgbuildaur://yay/pkgbuildRaw PKGBUILD with safety analysis
System Packages (Arch only)
URI SchemeExampleReturns
pacman://installedpacman://installedSystem installed packages list
pacman://orphanspacman://orphansOrphaned packages
pacman://explicitpacman://explicitExplicitly installed packages
pacman://groupspacman://groupsAll package groups
pacman://group/*pacman://group/base-develPackages in specific group
pacman://database/freshnesspacman://database/freshnessPackage database sync status
System Monitoring & Logs
URI SchemeExampleReturns
system://infosystem://infoSystem information (kernel, memory, uptime)
system://disksystem://diskDisk space usage statistics
system://services/failedsystem://services/failedFailed systemd services
system://logs/bootsystem://logs/bootRecent boot logs
pacman://log/recentpacman://log/recentRecent package transactions
pacman://log/failedpacman://log/failedFailed package transactions
News & Updates
URI SchemeExampleReturns
archnews://latestarchnews://latestLatest Arch Linux news
archnews://criticalarchnews://criticalCritical news requiring manual intervention
archnews://since-updatearchnews://since-updateNews since last system update
Configuration
URI SchemeExampleReturns
config://pacmanconfig://pacmanParsed pacman.conf configuration
config://makepkgconfig://makepkgParsed makepkg.conf configuration
mirrors://activemirrors://activeCurrently configured mirrors
mirrors://healthmirrors://healthMirror configuration health status
Tools (Executable Functions)
Package Search & Information
ToolDescriptionPlatform
search_archwikiQuery Arch Wiki with ranked resultsAny
search_aurSearch AUR (relevance/votes/popularity/modified)Any
get_official_package_infoGet official package details (hybrid local/remote)Any
Package Lifecycle Management
ToolDescriptionPlatform
check_updates_dry_runCheck for available updatesArch only
install_package_secureInstall with security checks (blocks malicious packages)Arch only
remove_packagesRemove packages - accepts single package name or list (with deps, forced)Arch only
Package Analysis & Maintenance
ToolDescriptionPlatform
manage_orphansManage orphaned packages (2 actions: list orphaned packages, remove orphans). Always runs in dry-run mode first for safety.Arch only
verify_package_integrityCheck file integrity (modified/missing files)Arch only
manage_install_reasonManage install reasons (3 actions: list explicit packages, mark as explicit/dependency)Arch only
Package Organization
ToolDescriptionPlatform
query_file_ownershipUnified file-package ownership queries (3 modes: file→package, package→files, filename search)Arch only
list_package_groupsList all groups (base, base-devel, etc.)Arch only
list_group_packagesShow packages in specific groupArch only
System Monitoring & Diagnostics
ToolDescriptionPlatform
get_system_infoSystem info (kernel, memory, uptime)Any
check_disk_spaceDisk usage with warningsAny
get_pacman_cache_statsPackage cache size and ageArch only
check_failed_servicesFind failed systemd servicessystemd
get_boot_logsRetrieve journalctl boot logssystemd
check_database_freshnessCheck package database sync statusArch only
Transaction History & Logs
ToolDescriptionPlatform
query_package_historyUnified tool for querying package history from pacman logs (4 query types). Examples: query_type='all' shows recent transactions; query_type='package', package_name='docker' shows when docker was installed/upgraded; query_type='failures' shows failed operations; query_type='sync' shows database sync history.Arch only
News & Safety Checks
ToolDescriptionPlatform
get_latest_newsFetch Arch Linux news from RSSAny
check_critical_newsFind critical news (manual intervention required)Any
get_news_since_last_updateNews posted since last system updateArch only
Mirror Management
ToolDescriptionPlatform
optimize_mirrorsSmart mirror management (4 actions: status, test, suggest, health). 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.Arch/Any
Configuration Management
ToolDescriptionPlatform
analyze_pacman_confParse pacman.conf settings with optional focus. 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.Arch only
analyze_makepkg_confParse makepkg.conf settings (CFLAGS, MAKEFLAGS, build configuration)Arch only
Security Analysis
ToolDescriptionPlatform
analyze_pkgbuild_safetyComprehensive PKGBUILD analysis (50+ red flags)Any
analyze_package_metadata_riskPackage trust scoring (votes, maintainer, age)Any
Prompts (Guided Workflows)
PromptPurposeWorkflow
troubleshoot_issueDiagnose system errorsExtract keywords → Search Wiki → Context-aware suggestions
audit_aur_packagePre-installation safety auditFetch metadata → Analyze PKGBUILD → Security recommendations
analyze_dependenciesInstallation planningCheck repos → Map dependencies → Suggest install order
safe_system_updateSafe update workflowCheck critical news → Verify disk space → List updates → Check services → Recommendations

Installation

Prerequisites
  • Python 3.11+
  • uv (recommended) or pip
Quick Install with uvx
uvx arch-ops-server

Configuration

Claude / Cursor / Any MCP client that supports STDIO transport

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

Opencode:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "arch-linux": {
      "type": "local",
      "command": ["uvx", "arch-ops-server"]
    }
  }
}

Contributing

Contributions are greatly appreciated. Please feel free to submit a pull request or open an issue and help make things better for everyone.

Contributing Guide

License

This project is dual-licensed under your choice of:

  • GPL-3.0-only - For those who prefer strong copyleft protections. See LICENSE-GPL
  • MIT License - For broader compatibility and adoption, including use in proprietary software and compatibility with platforms like Docker MCP Catalog. See LICENSE-MIT

You may use this software under the terms of either license. When redistributing or modifying this software, you may choose which license to apply.

By contributing to this project, you agree that your contributions will be licensed under both licenses.

Frequently asked questions

What is Arch MCP?

Search the Arch Wiki and AUR, get package info, check for updates, install packages and analyze PKGBUILDs, from Arch or non-Arch systems.

How do I install Arch MCP?

Follow the installation steps in its documentation, shown on this page and in its repository.

Is Arch MCP open source?

Yes. Its code is on GitHub under the GPL-3.0 license.

Who maintains Arch MCP?

It is published by nihalxkumar. AI.tn lists it but does not maintain or endorse it.

From the community awesome-mcp-servers lists and the project's GitHub repository. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.