# Repository Briefing: utensils/mcp-nixos
> Source: https://repoforai.com/repo/utensils/mcp-nixos (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/utensils/mcp-nixos
- **Official Docs / Website**: https://mcp-nixos.io/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (84/100 · Maintenance 31/35 · Adoption 13/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v3.1.1 (2026-11-16) — https://github.com/utensils/mcp-nixos/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, Docker, Self-Hosted, CLI
- **Momentum**: 895 ★ total (+1 24h / +3 7d) · 52 forks
- **Topics**: `ai-assistant`, `ai-integration`, `ai-tools`, `anthropic`, `claude`, `developer-tools`, `devops-tools`, `fastmcp`, `llm-tools`, `mcp`, `model-context-protocol`, `nix`
- **When to Use**: Best for: Coding assistants that routinely verify Nix package names and module options, investigate revisions to pin, or check binary availability before a build. Skip if: You need offline public catalogue access, deterministic validation of a locked configuration, or only occasional manual lookups.

## Overview
```text
### Architecture & Core Mechanics
mcp-nixos is a Python 3.11+ query service built on FastMCP 4. Its primary tool, `nix`, routes requests by action and source: package or option lookup, prefix browsing, cache checks, and local inspection share one interface. A separate version-history tool keeps historical package lookup apart from catalogue searches. The runtime declares `requests>=2.32.4` and `beautifulsoup4>=4.13.4`, fitting a service that consumes public APIs and parses HTML catalogues.

The default transport is stdio, so a desktop or coding client can own the server process. HTTP lets the same tools run as a separately hosted service, with an optional stateless mode. Public catalogue queries do not invoke a local Nix installation; flake-input inspection and explicit store reads depend on the Nix environment available to the server, not the client.

### Key Capabilities & Differentiators
The catalogue spans more than 130,000 NixOS packages and 23,000 NixOS options, plus separate option sources for Home Manager, nix-darwin, Nixvim, and NVF. The same tool can look up Noogle function signatures, flakes from FlakeHub, and documentation from the NixOS Wiki and nix.dev. NVF uses its published unstable options and normalizes supported module-wrapper paths to canonical `vim.*` names.

Version history can return nixpkgs commit hashes, attribute paths, and platform availability, helping an assistant identify a candidate revision to pin. A separate lookup checks cache.nixos.org for binary availability and download size and accepts optional version and system filters. Where Nix is present, the server can also browse pinned flake inputs or list and read explicit paths in `/nix/store`.

### Trade-offs & Limitations
Compared with using NixOS Search, Noogle, or option sites directly, this server is most useful when an assistant repeatedly needs to connect records from several sources. Two tools keep client registration compact, but callers still need to choose the right action, source, and channel. Catalogue coverage, freshness, and availability depend on the upstream APIs and published pages; self-hosting the MCP endpoint does not make those sources available offline.

For an already-pinned configuration, use native Nix evaluation to verify that an attribute or option actually resolves at the locked revision. A historical commit or a cache hit is useful evidence, not proof that the full configuration evaluates or builds. Prefer stdio for single-user sessions. Before offering shared HTTP access, verify authentication and restrict which local store content the service process can see.

### Hardware & Deployment Guide
For a local MCP client, start with `uvx mcp-nixos`; `pip install mcp-nixos`, `nix run github:utensils/mcp-nixos`, and `docker run --rm -i ghcr.io/utensils/mcp-nixos` are also available. Python installs require 3.11 or later and do not need Nix for public lookups. For remote clients, set `MCP_NIXOS_TRANSPORT=http` and configure the bind host and port; `/mcp` is the default path. Budget for upstream network access and measure sizing under representative catalogue loads and concurrency; the service itself does not need a GPU.

Nix users can install `pkgs.mcp-nixos` declaratively or use the project's flake overlay. The v3.1.0 release moved to FastMCP 4 and introduced a scoped Nix package set; the default overlay leaves the wider Python package set unchanged. v3.1.1 fixed parsing of NVF's chunked options document and stopped the Nix FastMCP 4 extension from probing `mcp-types`.
```

## Key Capabilities
```text
- Tool surface: Two MCP tools separate source-based queries from package version history.
- Catalogue coverage: 130K+ NixOS packages, 23K+ NixOS options, and dedicated Home Manager, nix-darwin, Nixvim, and NVF sources.
- Revision lookup: Version history returns nixpkgs commit hashes and attribute paths, with platform availability where provided.
- Binary cache: Check cache.nixos.org for availability and download size, with optional version and system filters.
- Local inspection: Browse pinned flake inputs or read explicit `/nix/store` paths when Nix is available.
- Packaging: The default Nix overlay adds only `mcp-nixos`; a separate opt-in overlay upgrades FastMCP across the Python package set.
```

## Quick Start / Clone
```bash
# Run directly (no install)
uvx mcp-nixos

# Or install
pip install mcp-nixos
```
