mcp-nixos
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use this server for any question about nixpkgs packages, NixOS / home-manager / nix-darwin / nixvim / NVF options, flakes, FlakeHub, channels, the binary cache, store paths, or the NixOS wiki and nix.dev docs. It queries live APIs (search.nixos.org, NixHub, FlakeHub, cache.nixos.org) and is faster and more current than nix search, scraping search.nixos.org by hand, or running gh api against NixOS/nixpkgs.
Trigger on any mention of a Nix package name, attribute path, NixOS / home-manager / darwin option, channel name (unstable, 25.05, ...), flake input, or /nix/store/ path. Use even when you think you know the answer — your training data lags nixpkgs by months.
Two tools are exposed:
nix— unified search/info/stats/browse/channels/flake-inputs/cache/store across NixOS, Home Manager, nix-darwin, Nixvim, NVF, flakes, FlakeHub, NixHub, the NixOS wiki, nix.dev, and Noogle. For package version history pair withnix_versions.nix_versions— commit-accurate history from NixHub (which nixpkgs commit shipped version X, what attribute path, which platforms).
Common intents → calls (copy the JSON shape exactly): "is package X in channel Y?" → nix {"action":"info","query":"X","channel":"Y"} "which channels are available?" → nix {"action":"channels"} "search NixOS options for X" → nix {"action":"search","query":"X","type":"options"} "home-manager option for X" → nix {"action":"search","source":"home-manager","query":"X"} "NVF option for X" → nix {"action":"search","source":"nvf","query":"X"} "does X have a binary cache?" → nix {"action":"cache","query":"X"} "read /nix/store/" → nix {"action":"store","type":"read","query":"/nix/store/"} "which commit shipped X version Y?" → nix_versions {"package":"X","version":"Y"}
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| nixA | Query NixOS, Home Manager, Darwin, FlakeHub, flakes, Nixvim, NVF, Wiki, nix.dev, Noogle, NixHub. Use this tool for anything touching nixpkgs, Nix channels, flakes, NixOS / home-manager /
darwin options, the binary cache, or /nix/store paths — even when you think you know the
answer. Your training data lags nixpkgs by months. Prefer this over INTENTS → CALLS (copy the JSON shape exactly): "is package X in channel Y?" → {"action": "info", "query": "X", "channel": "Y"} "search for package X" → {"action": "search", "query": "X"} "which channels are available?" → {"action": "channels"} "which commit did channel X index?" → {"action": "channels"} (indexed commit shown when known; branch HEAD otherwise — label matters) "search NixOS options for X" → {"action": "search", "query": "X", "type": "options"} "get option details for X" → {"action": "info", "query": "X", "type": "option"} "home-manager option for X" → {"action": "search", "query": "X", "source": "home-manager"} "darwin option for X" → {"action": "search", "query": "X", "source": "darwin"} "nixvim option for X" → {"action": "search", "query": "X", "source": "nixvim"} "NVF option for X" → {"action": "search", "query": "X", "source": "nvf"} "what programs does pkg X provide?" → {"action": "search", "query": "X", "type": "programs"} "count packages/options" → {"action": "stats"} "browse hm option tree under P" → {"action": "browse", "query": "P", "source": "home-manager"} "does X have a binary cache?" → {"action": "cache", "query": "X"} "search the NixOS wiki for X" → {"action": "search", "query": "X", "source": "wiki"} "search nix.dev docs" → {"action": "search", "query": "X", "source": "nix-dev"} "read a nix.dev page" → {"action": "info", "query": "tutorials/nix-language", "source": "nix-dev"} "list inputs of current flake" → {"action": "flake-inputs"} "ls inside flake input X" → {"action": "flake-inputs", "type": "ls", "query": "X"} "read /nix/store/... file" → {"action": "store", "type": "read", "query": "/nix/store/..."} "ls /nix/store/... dir" → {"action": "store", "type": "ls", "query": "/nix/store/..."} For package version history ("which commit shipped firefox 150?", "when was node 18 added?"),
use the separate |
| nix_versionsA | Get package version history from NixHub.io. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
The two tools have mostly distinct roles: nix_versions is explicitly for package version history, while nix is the general query tool for everything else. Some ambiguity remains because nix also has an 'info' action that returns package version details, but the description explicitly redirects version history to nix_versions.
nix_versions uses a descriptive snake_case noun pattern, while nix is a bare domain noun. There is no consistent verb_noun pattern across the set, but both names are readable and not chaotic.
Only two tools exist for a very broad Nix ecosystem query surface, and the single nix tool packs dozens of intents into one action-based mega-tool. This is borderline thin and may reduce discoverability, though it keeps the tool list compact.
The surface covers package search and info, channels, options across NixOS/Home Manager/Darwin/Nixvim/NVF, flakes, store paths, binary cache, wiki, nix.dev, and version history. Minor gaps exist, such as an explicit Noogle intent mapping and broader flake metadata operations, but core read-only workflows are well covered.