by utensils
MCP-NixOS - Model Context Protocol Server for NixOS resources
# Add to your Claude Code skills
git clone https://github.com/utensils/mcp-nixosLast scanned: 5/10/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-10T06:37:00.399Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}mcp-nixos is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by utensils. MCP-NixOS - Model Context Protocol Server for NixOS resources. It has 776 GitHub stars.
Yes. mcp-nixos passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/utensils/mcp-nixos" and add it to your Claude Code skills directory (see the Installation section above).
mcp-nixos is primarily written in Python. It is open-source under utensils on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-nixos against similar tools.
No comments yet. Be the first to share your thoughts!
🚨 No Nix/NixOS Required! Works on any system - Windows, macOS, Linux. You're just querying APIs.
{
"mcpServers": {
"nixos": {
"command": "uvx",
"args": ["mcp-nixos"]
}
}
}
{
"mcpServers": {
"nixos": {
"command": "nix",
"args": ["run", "github:utensils/mcp-nixos", "--"]
}
}
}
{
"mcpServers": {
"nixos": {
"command": "docker",
"args": ["run", "--rm", "-i", "ghcr.io/utensils/mcp-nixos"]
}
}
}
Your AI now has access to real NixOS data instead of making things up. You're welcome.
FastMCP supports running this server over HTTP at a URL (the MCP endpoint defaults to /mcp).
# Run an HTTP MCP server at http://127.0.0.1:8000/mcp
MCP_NIXOS_TRANSPORT=http MCP_NIXOS_HOST=127.0.0.1 MCP_NIXOS_PORT=8000 mcp-nixos
STDIO (default):
MCP_NIXOS_TRANSPORT=stdio mcp-nixos
Custom path:
MCP_NIXOS_TRANSPORT=http MCP_NIXOS_PATH=/api/mcp mcp-nixos
Stateless HTTP (disables per-client session state):
MCP_NIXOS_TRANSPORT=http MCP_NIXOS_STATELESS_HTTP=1 mcp-nixos
Pi does not speak MCP natively. Two supported paths:
A. pi-mcp-adapter (recommended — speaks MCP, single source of truth):
pi install npm:pi-mcp-adapter
Then add to ~/.pi/agent/mcp.json:
{
"mcpServers": {
"nixos": {
"command": "uvx",
"args": ["mcp-nixos"],
"lifecycle": "lazy"
}
}
}
B. Project-local extension (clone + run): this repo ships .pi/extensions/mcp-nixos.ts, auto-loaded when you run pi in the cloned repo. Optional: cd .pi && npm install for editor type resolution. Pi runs it either way.
An MCP server providing accurate, real-time information about:
Just two. We consolidated 17 tools into 2 because your AI's context window isn't infinite.
~1,030 tokens total. That's it. While other MCP servers are hogging your context like it's Black Friday, we're sipping minimalist tea in the corner. Your AI gets NixOS superpowers without the bloat.
nix - Unified Query ToolOne tool to rule them all:
nix(action, query, source, type, channel, limit)
| Action | What it does |
|---|---|
search |
Search packages, options, programs, or flakes |
info |
Get detailed info about a package or option |
stats |
Get counts and categories |
browse |
Browse Home Manager, Darwin, Nixvim, NVF, or Noogle by prefix (legacy alias: options) |
channels |
List available NixOS channels |
flake-inputs |
Explore local flake inputs from Nix store |
cache |
Check binary cache status for packages |
| Source | What it queries |
|---|---|
nixos |
Packages, options, programs |
home-manager |
Home Manager options |
darwin |
nix-darwin options |
flakes |
Community flakes (search.nixos.org) |
flakehub |
FlakeHub registry (flakehub.com) |
nixvim |
Nixvim Neovim configuration options |
nvf |
NVF Neovim configuration options (latest unstable docs) |
noogle |
Nix function signatures and docs (noogle.dev) |
wiki |
NixOS Wiki articles (wiki.nixos.org) |
nix-dev |
Official Nix documentation (nix.dev) |
nixhub |
Package metadata and store paths (nixhub.io) |
NVF results use canonical vim.* option paths. Queries may also use the shorthand
programs.nvf.vim.* or the NixOS/Home Manager module path
programs.nvf.settings.vim.*; both are normalized automatically.
Examples:
# Search NixOS packages
nix(action="search", query="firefox", source="nixos", type="packages")
# Get package info
nix(action="info", query="firefox", source="nixos", type="package")
# Search Home Manager options
nix(action="search", query="git", source="home-manager")
# Browse darwin options
nix(action="browse", source="darwin", query="system.defaults")
# Search Nixvim options
nix(action="search", query="telescope", source="nixvim")
# Get Nixvim option info
nix(action="info", query="plugins.telescope.enable", source="nixvim")
# Search NVF options
nix(action="search", query="vim.languages.nix", source="nvf")
# Get NVF option info using a module wrapper path
nix(action="info", query="programs.nvf.settings.vim.languages.nix.enable", source="nvf")
# Browse NVF options below a prefix
nix(action="browse", query="programs.nvf.vim.languages.nix", source="nvf")
# Search FlakeHub
nix(action="search", query="nixpkgs", source="flakehub")
# Get FlakeHub flake info
nix(action="info", query="NixOS/nixpkgs", source="flakehub")
# Search Noogle for Nix functions
nix(action="search", query="mapAttrs", source="noogle")
# Get Noogle function info
nix(action="info", query="lib.attrsets.mapAttrs", source="noogle")
# Browse Noogle function categories
nix(action="browse", source="noogle", query="lib.strings")
# Search NixOS Wiki
nix(action="search", query="nvidia", source="wiki")
# Get Wiki page info
nix(action="info", query="Flakes", source="wiki")
# Search nix.dev documentation
nix(action="search", query="packaging tutorial", source="nix-dev")
# Search NixHub for package metadata
nix(action="search", query="nodejs", source="nixhub")
# Get detailed package info from NixHub (license, homepage, store paths)
nix(action="info", query="python", source="nixhub")
# Check binary cache status
nix(action="cache", query="hello")
# Check cache for specific version
nix(action="cache", query="python", version="3.12.0")
# Check cache for specific system
nix(action="cache", query="firefox", system="x86_64-linux")
# Get stats
nix(action="stats", source="nixos", channel="stable")
# List local flake inputs (requires Nix)
nix(action="flake-inputs", type="list")
# Browse files in a flake input
nix(action="flake-inputs", type="ls", query="nixpkgs:pkgs/by-name")
# Read a file from a flake input
nix(action="flake-inputs", type="read", query="nixpkgs:flake.nix")
nix_versions - Package Version HistoryFind historical versions with nixpkgs commit hashes. Output includes:
nix_versions(package, version, limit)
Examples:
# List recent versions with metadata
nix_versions(package="python", limit=5)
# Find specific version
nix_versions(package="nodejs", version="20.0.0")
You DON'T need Nix installed. This runs anywhere Python runs.
# Run directly (no install)
uvx mcp-nixos
# Or install
pip install mcp-nixos
For Nix users:
nix run github:utensils/mcp-nixos
nix profile install github:utensils/mcp-nixos
mcp-nixos is available in nixpkgs:
# NixOS (configuration.nix)
environment.syste