MCPVault

optimize_mirrors

MCP tool from Arch MCP by nihalxkumar

Smart mirror management (4 actions: status, test, suggest, health). Examples: optimizemirrors(action='status', autotest=True) lists and tests all mirrors; optimizemirrors(action='suggest', country='US', limit=5) suggests top 5 US mirrors; optimizemirrors(action='health') checks for issues and gives

How to use it

optimize_mirrors is exposed by the Arch MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the optimize_mirrors tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Arch MCP

$uvx arch-ops-server
FULL ARCH MCP LISTING

Other tools in Arch MCP (26)

analyze_makepkg_conf

Parse makepkg.conf settings (CFLAGS, MAKEFLAGS, build configuration)

analyze_package_metadata_risk

Package trust scoring (votes, maintainer, age)

analyze_pacman_conf

Parse pacman.conf settings with optional focus. Examples: focus='full' (default) returns all settings; focus='ignoredpackages' returns only ignored packages with warnings for critical ones; focus='paralleldownloads' returns only parallel downloads setting with optimization recommendations.

analyze_pkgbuild_safety

Comprehensive PKGBUILD analysis (50+ red flags)

check_critical_news

Find critical news (manual intervention required)

check_database_freshness

Check package database sync status

check_disk_space

Disk usage with warnings

check_failed_services

Find failed systemd services

check_updates_dry_run

Check for available updates

get_boot_logs

Retrieve journalctl boot logs

get_latest_news

Fetch Arch Linux news from RSS

get_news_since_last_update

News posted since last system update

get_official_package_info

Get official package details (hybrid local/remote)

get_pacman_cache_stats

Package cache size and age

get_system_info

System info (kernel, memory, uptime)

install_package_secure

Install with security checks (blocks malicious packages)

list_group_packages

Show packages in specific group

list_package_groups

List all groups (base, base-devel, etc.)

manage_install_reason

Manage install reasons (3 actions: list explicit packages, mark as explicit/dependency)

manage_orphans

Manage orphaned packages (2 actions: list orphaned packages, remove orphans). Always runs in dry-run mode first for safety.

query_file_ownership

Unified file-package ownership queries (3 modes: file→package, package→files, filename search)

query_package_history

Unified tool for querying package history from pacman logs (4 query types). Examples: querytype='all' shows recent transactions; querytype='package', packagename='docker' shows when docker was installed/upgraded; querytype='failures' shows failed operations; querytype='sync' shows database sync hist

remove_packages

Remove packages - accepts single package name or list (with deps, forced)

search_archwiki

Query Arch Wiki with ranked results

search_aur

Search AUR (relevance/votes/popularity/modified)

verify_package_integrity

Check file integrity (modified/missing files)