Arch Linux [ Not Updated ]

平台与服务

by nihalxkumar

快速搜索 Arch Wiki、AUR 与官方仓库,安全管理包、更新、镜像和日志,并通过清晰流程排查问题与规划安装。

什么是 Arch Linux [ Not Updated ]

快速搜索 Arch Wiki、AUR 与官方仓库,安全管理包、更新、镜像和日志,并通过清晰流程排查问题与规划安装。

核心功能 (41 个工具)

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.

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.

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.

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.

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.

analyze_pkgbuild_safety

[SECURITY] Analyze PKGBUILD content for security issues and dangerous patterns. Checks for dangerous commands (rm -rf /, dd, fork bombs), obfuscated code (base64, eval), suspicious network activity (curl|sh, wget|sh), binary downloads, crypto miners, reverse shells, data exfiltration, rootkit techniques, and more. Returns risk score (0-100) and detailed findings. Use this tool to manually audit AUR packages before installation.

analyze_package_metadata_risk

[SECURITY] Analyze AUR package metadata for trustworthiness and security indicators. Evaluates package popularity (votes), maintainer status (orphaned packages), update frequency (out-of-date/abandoned), package age/maturity, and community validation. Returns trust score (0-100) with risk factors and trust indicators. Use this alongside PKGBUILD analysis for comprehensive security assessment.

remove_package

[LIFECYCLE] Remove a package from the system. Supports various removal strategies: basic removal, removal with dependencies, or forced removal. Only works on Arch Linux. Requires sudo access.

remove_packages_batch

[LIFECYCLE] Remove multiple packages in a single transaction. More efficient than removing packages one by one. Only works on Arch Linux. Requires sudo access.

list_orphan_packages

[MAINTENANCE] List all orphaned packages (dependencies no longer required by any installed package). Shows package names and total disk space usage. Only works on Arch Linux.

remove_orphans

[MAINTENANCE] Remove all orphaned packages to free up disk space. Supports dry-run mode to preview changes and package exclusion. Only works on Arch Linux. Requires sudo access.

find_package_owner

[ORGANIZATION] Find which package owns a specific file on the system. Useful for troubleshooting and understanding file origins. Only works on Arch Linux.

list_package_files

[ORGANIZATION] List all files owned by a package. Supports optional filtering by pattern. Only works on Arch Linux.

search_package_files

[ORGANIZATION] Search for files across all packages in repositories. Requires package database sync (pacman -Fy). Only works on Arch Linux.

verify_package_integrity

[MAINTENANCE] Verify the integrity of installed package files. Detects modified, missing, or corrupted files. Only works on Arch Linux.

list_package_groups

[ORGANIZATION] List all available package groups (e.g., base, base-devel, gnome). Only works on Arch Linux.

list_group_packages

[ORGANIZATION] List all packages in a specific group. Only works on Arch Linux.

list_explicit_packages

[MAINTENANCE] List all packages explicitly installed by the user (not installed as dependencies). Useful for creating backup lists or understanding system composition. Only works on Arch Linux.

mark_as_explicit

[MAINTENANCE] Mark a package as explicitly installed. Prevents it from being removed as an orphan. Only works on Arch Linux.

mark_as_dependency

[MAINTENANCE] Mark a package as a dependency. Allows it to be removed as an orphan if no packages depend on it. Only works on Arch Linux.

get_system_info

[MONITORING] Get comprehensive system information including kernel version, architecture, hostname, uptime, and memory statistics. Works on any system.

check_disk_space

[MONITORING] Check disk space usage for critical filesystem paths including root, home, var, and pacman cache. Warns when space is low. Works on any system.

get_pacman_cache_stats

[MONITORING] Analyze pacman package cache statistics including size, package count, and cache age. Only works on Arch Linux.

check_failed_services

[MONITORING] Check for failed systemd services. Useful for diagnosing system issues. Works on systemd-based systems.

get_boot_logs

[MONITORING] Retrieve recent boot logs from journalctl. Useful for troubleshooting boot issues. Works on systemd-based systems.

get_latest_news

[DISCOVERY] Fetch recent Arch Linux news from RSS feed. Returns title, date, summary, and link for each news item.

check_critical_news

[DISCOVERY] Check for critical Arch Linux news requiring manual intervention. Scans recent news for keywords: 'manual intervention', 'action required', 'breaking change', etc.

get_news_since_last_update

[DISCOVERY] Get news posted since last pacman update. Parses /var/log/pacman.log for last update timestamp. Only works on Arch Linux.

get_transaction_history

[HISTORY] Get recent package transactions from pacman log. Shows installed, upgraded, and removed packages. Only works on Arch Linux.

find_when_installed

[HISTORY] Find when a package was first installed and its upgrade history. Only works on Arch Linux.

find_failed_transactions

[HISTORY] Find failed package transactions in pacman log. Only works on Arch Linux.

get_database_sync_history

[HISTORY] Get database synchronization history. Shows when 'pacman -Sy' was run. Only works on Arch Linux.

list_active_mirrors

[MIRRORS] List currently configured mirrors from mirrorlist. Only works on Arch Linux.

test_mirror_speed

[MIRRORS] Test mirror response time. Can test a specific mirror or all active mirrors. Only works on Arch Linux.

suggest_fastest_mirrors

[MIRRORS] Suggest optimal mirrors based on official mirror status from archlinux.org. Filters by country if specified.

check_mirrorlist_health

[MIRRORS] Verify mirror configuration health. Checks for common issues like no active mirrors, outdated mirrorlist, high latency. Only works on Arch Linux.

analyze_pacman_conf

[CONFIG] Parse and analyze pacman.conf. Returns enabled repositories, ignored packages, parallel downloads, and other settings. Only works on Arch Linux.

analyze_makepkg_conf

[CONFIG] Parse and analyze makepkg.conf. Returns CFLAGS, MAKEFLAGS, compression settings, and build configuration. Only works on Arch Linux.

check_ignored_packages

[CONFIG] List packages ignored in updates from pacman.conf. Warns if critical system packages are ignored. Only works on Arch Linux.

get_parallel_downloads_setting

[CONFIG] Get parallel downloads configuration from pacman.conf and provide recommendations. Only works on Arch Linux.

check_database_freshness

[MAINTENANCE] Check when package databases were last synchronized. Warns if databases are stale (> 24 hours). Only works on Arch Linux.

README

Arch Linux MCP Server

PyPI Downloads

<a href="https://glama.ai/mcp/servers/@nihalxkumar/arch-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@nihalxkumar/arch-mcp/badge" /> </a>

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

<details> <summary>Using VS Code Sonnet 3.5 for Safe Installation from AUR</summary>

VS Code Demo

</details> <details> <summary> Asking Claude Code Sonnet 4.5 for fedora equivalent command </summary>

Equivalent Command Demo

</details>

Resources (URI-based Access)

Direct access to Arch ecosystem data via custom URI schemes:

Documentation & Search

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

bash
uvx arch-ops-server

Configuration

Claude / Cursor / Any MCP client that supports STDIO transport

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

Opencode:

json
{
  "$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.

常见问题

Arch Linux [ Not Updated ] 是什么?

快速搜索 Arch Wiki、AUR 与官方仓库,安全管理包、更新、镜像和日志,并通过清晰流程排查问题与规划安装。

Arch Linux [ Not Updated ] 提供哪些工具?

提供 41 个工具,包括 search_archwiki、search_aur、get_official_package_info

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描109.6k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描109.6k

接口设计评审

by alirezarezvani

Universal
热门

审查 REST API 设计是否符合行业规范,自动检查命名、HTTP 方法、状态码与文档覆盖,识别破坏性变更并给出设计评分,适合评审接口方案和版本迭代前把关。

做API和架构方案时,它能帮你提前揪出接口设计问题并对齐最佳实践,评审视角系统,团队协作更省心。

平台与服务
未扫描9.0k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
82.9k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.3k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
34.5k

评论