Skip to content

MCP-NixOSBecause your AI shouldn't hallucinate package names.

Real, up-to-the-second information about NixOS packages, options, Home Manager, nix-darwin, flakes, and friends — served over the Model Context Protocol.

MCP-NixOS logo
Latest release ↗2 MCP toolsPlain text responsesMIT

Quick Start ​

Paste this into your MCP client config. Congratulations, you now have access to real NixOS data.

json
{
  "mcpServers": {
    "nixos": {
      "command": "uvx",
      "args": ["mcp-nixos"]
    }
  }
}

Need more? See all the ways to run it →

What This Actually Does ​

MCP-NixOS exposes two (yes, two) MCP tools to your AI assistant:

  • nix — one unified query tool for search, info, stats, option browsing, channels, flake inputs, and binary cache lookups across every source below.
  • nix_versions — package version history with nixpkgs commit hashes via NixHub.io.

All responses come back as plain text, because your LLM does not want to parse XML any more than you do.

Sources Under the Hood ​

Ready to stop arguing with your AI about whether pkgs.firefox_esr exists? ​

Released under the MIT License. A Utensils creation.