mcp-nixos
by utensils·★ 639·Score 54
MCP-NixOS provides real-time NixOS package, option, and documentation data to prevent AI hallucinations.
Overview
MCP-NixOS is a comprehensive Model Context Protocol server that provides accurate, real-time information about NixOS packages, options, and documentation. It consolidates 17 tools into just 2 minimal ones to save AI context while accessing data from 130K+ packages, 23K+ options, and multiple Nix-related sources including Home Manager, nix-darwin, FlakeHub, and the NixOS Wiki. The server is well-maintained with regular updates and can run without requiring Nix installation on any platform.
Try asking AI
After installing, here are 3 things you can ask your AI assistant:
When to choose this
Choose MCP-NixOS when your AI system needs accurate, up-to-date information about Nix packages, options, and configuration without hallucination.
When NOT to choose this
Don't choose this if you need access to non-Nix systems or require write access to package repositories - this is a read-only data source.
Tools this server exposes
2 tools extracted from the READMEnixnix(action, query, source, type, channel, limit)Unified query tool for NixOS packages, options, flakes, and more
nix_versionsnix_versions(package, version, limit)Find historical versions of Nix packages with commit hashes
Comparable tools
Installation
Installation
**You DON'T need Nix installed.** This runs anywhere Python runs.
# Run directly (no install)
uvx mcp-nixos
# Or install
pip install mcp-nixosFor Nix users:
nix run github:utensils/mcp-nixos
nix profile install github:utensils/mcp-nixosClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"nixos": {
"command": "uvx",
"args": ["mcp-nixos"]
}
}
}On Hacker News
Recent discussion from the developer community.
- Story by jamesbrink · 2025-03-29
- Story by aussieguy1234 · 2025-07-25
Compare mcp-nixos with
Last updated · Auto-generated from public README + GitHub signals.