← Back
nix-agent
An MCP server that lets coding agents evaluate, inspect, validate, and activate your NixOS config.

Overview
nix-agent is a local MCP server that gives coding agents composable NixOS and Home Manager operations: build, diff, switch, and generations for the operational core, plus eval and inspect for config introspection. It pairs with mcp-nixos for package and option discovery while operating on your actual configuration.
Highlights
- MCP tools for the full lifecycle: build, diff, switch, and generation rollback against your live NixOS or Home Manager flake
- Config introspection via eval, locate, and lint / dry-build / dry-activate, with structured, size-capped responses instead of raw Nix dumps
- Flake module plus companion skills; pairs with mcp-nixos so agents discover packages and operate on your real config
Links
Stack
Nix / NixOS / Home Manager / MCP / AI Agents