Home / MCP / MCP-NixOS MCP Server
Provides real-time queries for NixOS packages, options, Home Manager and related Nix ecosystems.
Configuration
View docs{
"mcpServers": {
"nixos_uvx": {
"command": "uvx",
"args": [
"mcp-nixos"
]
}
}
}You can query real, up-to-date NixOS information through this MCP server. It connects to multiple data sources like NixOS packages, options, Home Manager, nix-darwin, and related tooling to help you discover package details, configuration options, and historical versions quickly.
Choose one of the available MCP endpoints and run your client against it. You can run queries to search for packages and options, fetch detailed information, or browse historical data. The server is designed to be used with standard MCP clients and supports both local (stdio) and remote (http) configurations, depending on how you prefer to run it.
Prerequisites: you need Python installed, and you can run the MCP server without installing Nix. You may also use alternative runtimes like uvx, Nix, or Docker if you prefer.
Option A: Run directly with uvx (recommended)
uvx mcp-nixosOption B: Install via Python package
pip install mcp-nixosOption C: Nix users can run with Nix expressions
nix run github:utensils/mcp-nixos
nix profile install github:utensils/mcp-nixosOption D: Run with Docker
docker run --rm -i ghcr.io/utensils/mcp-nixosEach method above runs the same MCP server binary or image. Choose the one that best fits your environment. After starting, you can begin issuing queries to search packages, get detailed information, or view options and flakes.
Unified query tool to search, fetch info, view options, and browse channels across nixos, home-manager, darwin, flakes, and nixvim data sources.
Package version history with prior versions and commit hashes, enabling you to track changes over time.