arch-niri-mcp
Provides comprehensive Arch Linux system management, including package operations (pacman/AUR search), system updates, systemd unit control, process and hardware monitoring, audio, brightness, network, clipboard, and notifications.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@arch-niri-mcpcheck for pending package updates"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Arch Linux / CachyOS & Niri DE MCP Server (arch-niri-mcp)
An enterprise-grade Model Context Protocol (MCP) server that enables AI assistants (Antigravity, Claude Desktop, Cursor, VS Code, Windsurf, Zed) to seamlessly inspect, control, and automate Arch Linux, CachyOS, and the Niri Desktop Environment (scrollable tiling Wayland compositor).
๐ Key Features
๐ Automatic CLI Discovery: Dynamically scans system
PATHand categorizes installed package managers, terminals, Wayland helpers, and desktop tools.๐ฅ๏ธ Niri DE Window & Layout Control: Query windows, workspaces, monitors, layer-shell surfaces, floating states, layout columns, tabbed modes, and focus states via live JSON IPC.
๐ป Native Terminal Execution: Execute terminal commands in user's default shell (
fish,zsh,bash), or spawn interactive graphical terminal windows (Alacritty,Kitty,Foot,Ghostty).โ๏ธ System & Hardware Management: Systemd services (
systemctl), PipeWire audio (wpctl), screen brightness (brightnessctl), Wayland clipboard (wl-clipboard), notifications (notify-send), network connections (nmcli), battery stats, and hardware summary (fastfetch).๐ฆ Package Management: Query pacman packages and search Arch User Repository (AUR) & CachyOS repos via
yay.
Related MCP server: Linux MCP Server
๐งฐ Complete Tools Reference (35 Tools)
๐ 1. Auto-Discovery & Terminal Suite (5 Tools)
Tool | Description |
| Dynamically scans system |
| Inspects user default shell ( |
| Safely executes terminal/CLI commands in the user's shell environment with stdout/stderr capture, working directory, and timeout control. |
| Launches an interactive graphical terminal window ( |
| Fetches systemd service or kernel logs via |
๐ฅ๏ธ 2. Niri Desktop Environment Suite (16 Tools)
Tool | Description |
| Lists open windows with app IDs, titles, window IDs, workspace IDs, and focus state. |
| Lists workspaces, index, names, output monitors, and active status. |
| Lists connected display monitors, resolutions, scale, and focus state. |
| Lists active Wayland layer-shell surfaces (desktop bars, panels, notifications, quickshell). |
| Lists configured keyboard layouts and active layout index. |
| Inspects currently focused window and display monitor. |
| Switches focus to a window by numeric ID or title/app_id search string. |
| Switches active workspace by index or name. |
| Moves focused window/column to target workspace by index or name. |
| Moves window/column ( |
| Adjusts column width ( |
| Closes focused window or target window by ID. |
| Reloads Niri configuration file ( |
| Executes any Niri layout action ( |
| Launches applications inside the Niri compositor session. |
| Captures full screen or focused window screenshot. |
๐ง 3. Arch Linux & CachyOS System Suite (14 Tools)
Tool | Description |
| Retrieves hardware overview, OS version, kernel, CPU, GPU, memory, and uptime via |
| Searches pacman package database ( |
| Searches Arch User Repository (AUR) & CachyOS repos via |
| Lists pending system package updates ( |
| Views status or controls systemd user/system units ( |
| Lists processes ordered by CPU/Memory or searches by name. |
| Terminates process by PID. |
| Queries audio status, adjusts volume percentage (%), or toggles mute via PipeWire ( |
| Queries or sets screen brightness percentage ( |
| Sends desktop notifications to Niri DE via |
| Queries active Wi-Fi, Ethernet, and network devices via |
| Queries laptop battery charge level, status, and power draw. |
| Reads Wayland clipboard text ( |
| Sets Wayland clipboard text ( |
๐ฆ Installation
Option 1: Automated Script
git clone https://github.com/oki3505F/arch-niri-mcp.git
cd arch-niri-mcp
./install.shOption 2: Using uv (Recommended)
git clone https://github.com/oki3505F/arch-niri-mcp.git
cd arch-niri-mcp
uv venv .venv
source .venv/bin/activate
uv pip install -e .โ๏ธ AI Client Configuration
1. Claude Desktop (claude_desktop_config.json)
Add the following to your ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"arch-niri-control": {
"command": "/path/to/arch-niri-mcp/.venv/bin/arch-niri-mcp",
"args": []
}
}
}2. Antigravity / Cursor / VS Code / Windsurf (.mcp.json)
Add to your project .mcp.json or client MCP settings:
{
"mcpServers": {
"arch-niri-control": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/arch-niri-mcp",
"arch-niri-mcp"
]
}
}
}๐งช Testing & Verification
Run the server executable directly via stdio:
/path/to/arch-niri-mcp/.venv/bin/arch-niri-mcpOr verify registered tools in Python:
source .venv/bin/activate
python3 -c "import arch_niri_mcp.server as s; print('Registered tools:', len(s.mcp._tool_manager._tools))"๐ท๏ธ GitHub Topics & Keywords
arch-linux โข cachyos โข niri โข niri-de โข wayland โข mcp โข mcp-server โข model-context-protocol โข desktop-automation โข window-management โข pipewire โข claude-desktop โข cursor โข antigravity
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with macOS windows through yabai, providing window listing organized by Spaces and screenshot capture capabilities.Last updated2MIT
- AlicenseBqualityDmaintenanceProvides AI assistants with the ability to control Linux desktop environments through tools for file management, application launching, and system operations like clipboard access. It includes a multi-level security model to manage permissions for safe, elevated, and restricted actions.Last updated6MIT
- Flicense-qualityDmaintenanceEnables LLMs to capture screenshots, inspect windows, and interact with the Hyprland desktop environment through mouse clicks and keyboard input.Last updated1
- AlicenseAqualityCmaintenanceEnables AI agents to interact with the Linux desktop through desktop notifications, interactive dialogs, shell command execution, and privileged command execution.Last updated1365MIT
Related MCP Connectors
Operate your Linux servers from your LLM. Every action runs through an auditable allowlist.
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/oki3505F/arch-niri-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server