The Arch Linux MCP server enables AI assistants to safely access and interact with the Arch Linux ecosystem including the Arch Wiki, AUR packages, and official repositories.
Search & Information Retrieval: Query Arch Wiki documentation and AUR packages with smart ranking by relevance, votes, popularity, or modification date
Secure Package Management: Install packages with comprehensive security checks, prioritizing official repositories and automatically auditing AUR packages before installation
System Maintenance: Perform safe, read-only checks for available system updates on Arch Linux systems
Security Analysis: Analyze PKGBUILD files for malicious commands, dangerous patterns, and suspicious network activity, plus evaluate package trustworthiness based on metadata
Direct URI Access: Retrieve specific resources using custom URI schemes (
archwiki://,aur://,archrepo://) for Wiki pages, PKGBUILDs, and package detailsGuided Workflows: Execute pre-built prompts for troubleshooting, dependency analysis, and pre-installation safety audits
Cross-Platform Support: Works on both Arch and non-Arch systems (with some Arch-specific features requiring Arch Linux)
Provides comprehensive access to the Arch Linux ecosystem including searching and accessing Arch Wiki documentation, browsing AUR packages with security analysis, querying official repositories, managing system packages, and performing security audits of PKGBUILDs and package metadata.
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 output for digestible, structured results that are ready for follow up questions and actions.
π Complete Documentation with Comfy Guides
Sneak Peak into what's available


Resources (URI-based Access)
Direct access to Arch ecosystem data via custom URI schemes:
Documentation & Search
URI Scheme | Example | Returns |
|
| Markdown-formatted Wiki page |
Package Information
URI Scheme | Example | Returns |
|
| Official repository package details |
|
| AUR package metadata (votes, maintainer, dates) |
|
| Raw PKGBUILD with safety analysis |
System Packages (Arch only)
URI Scheme | Example | Returns |
|
| System installed packages list |
|
| Orphaned packages |
|
| Explicitly installed packages |
|
| All package groups |
|
| Packages in specific group |
|
| Package database sync status |
System Monitoring & Logs
URI Scheme | Example | Returns |
|
| System information (kernel, memory, uptime) |
|
| Disk space usage statistics |
|
| Failed systemd services |
|
| Recent boot logs |
|
| Recent package transactions |
|
| Failed package transactions |
News & Updates
URI Scheme | Example | Returns |
|
| Latest Arch Linux news |
|
| Critical news requiring manual intervention |
|
| News since last system update |
Configuration
URI Scheme | Example | Returns |
|
| Parsed pacman.conf configuration |
|
| Parsed makepkg.conf configuration |
|
| Currently configured mirrors |
|
| Mirror configuration health status |
Tools (Executable Functions)
Package Search & Information
Tool | Description | Platform |
| Query Arch Wiki with ranked results | Any |
| Search AUR (relevance/votes/popularity/modified) | Any |
| Get official package details (hybrid local/remote) | Any |
Package Lifecycle Management
Tool | Description | Platform |
| Check for available updates | Arch only |
| Install with security checks (blocks malicious packages) | Arch only |
| Remove single package (with deps, forced) | Arch only |
| Remove multiple packages efficiently | Arch only |
Package Analysis & Maintenance
Tool | Description | Platform |
| Find orphaned packages | Arch only |
| Clean orphans (dry-run, exclusions) | Arch only |
| Check file integrity (modified/missing files) | Arch only |
| List user-installed packages | Arch only |
| Prevent package from being orphaned | Arch only |
| Allow package to be orphaned | Arch only |
Package Organization
Tool | Description | Platform |
| Find which package owns a file | Arch only |
| List files in package (regex filtering) | Arch only |
| Search files across packages | Arch only |
| List all groups (base, base-devel, etc.) | Arch only |
| Show packages in specific group | Arch only |
System Monitoring & Diagnostics
Tool | Description | Platform |
| System info (kernel, memory, uptime) | Any |
| Disk usage with warnings | Any |
| Package cache size and age | Arch only |
| Find failed systemd services | systemd |
| Retrieve journalctl boot logs | systemd |
| Check package database sync status | Arch only |
Transaction History & Logs
Tool | Description | Platform |
| Recent package transactions (install/upgrade/remove) | Arch only |
| Package installation history | Arch only |
| Failed package operations | Arch only |
| Database sync events | Arch only |
News & Safety Checks
Tool | Description | Platform |
| Fetch Arch Linux news from RSS | Any |
| Find critical news (manual intervention required) | Any |
| News posted since last system update | Arch only |
Mirror Management
Tool | Description | Platform |
| Show configured mirrors | Arch only |
| Test mirror latency | Arch only |
| Recommend optimal mirrors by location | Any |
| Verify mirror configuration | Arch only |
Configuration Management
Tool | Description | Platform |
| Parse pacman.conf settings | Arch only |
| Parse makepkg.conf settings | Arch only |
| List ignored packages (warns on critical) | Arch only |
| Get parallel download config | Arch only |
Security Analysis
Tool | Description | Platform |
| Comprehensive PKGBUILD analysis (50+ red flags) | Any |
| Package trust scoring (votes, maintainer, age) | Any |
Prompts (Guided Workflows)
Prompt | Purpose | Workflow |
| Diagnose system errors | Extract keywords β Search Wiki β Context-aware suggestions |
| Pre-installation safety audit | Fetch metadata β Analyze PKGBUILD β Security recommendations |
| Installation planning | Check repos β Map dependencies β Suggest install order |
| Safe update workflow | Check critical news β Verify disk space β List updates β Check services β Recommendations |
Installation
Prerequisites
Python 3.11+
uv (recommended) or pip
Quick Install with uvx
Configuration
Claude / Cursor / Any MCP client that supports STDIO transport
Contributing
Contributions are greatly appreciated. Please feel free to submit a pull request or open an issue and help make things better for everyone.
License
This project is dual-licensed under your choice of:
GPL-3.0-only - See LICENSE-GPL
MIT License - See LICENSE-MIT
You may use this software under the terms of either license. See LICENSE for more details.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Arch MCP provides three main capabilities:
Access to Arch Wiki, AUR packages, official repos, and installed packages
Search, analyze, and securely install packages with built-in 50+ safety checks
Guided workflows for troubleshooting, security audits, and dependency analysis
Related MCP Servers
- Asecurity-licenseAqualityMCP-NixOS is a Model Context Protocol server that provides real-time, accurate information about NixOS packages, options, Home Manager, and nix-darwin configurations, preventing AI assistants from hallucinating about NixOS resources and enabling them to deliver factual system configuration guidance.Last updated -18311MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that fetches up-to-date, version-specific documentation and code examples from libraries directly into LLM prompts, helping developers get accurate answers without outdated or hallucinated information.Last updated -2134,64536,960MIT License
- -security-license-qualityAn MCP server that retrieves and provides Wikipedia content for requested topics, enabling easy access to Wikipedia information directly through the Model Control Protocol.Last updated -1