Nixos MCP Server
NixOS package search and data retrieval to prevent AI hallucination of dependencies.
Data last scanned today · Reviewed today
Overview
The NixOS MCP Server provides AI models with direct access to accurate NixOS package information. By querying official data sources, it enables agents to verify package names and avoid the inaccuracies often found when models attempt to guess system configuration details. It is designed to work across various operating systems, including Windows, macOS, and Linux, without requiring a local Nix installation. The server supports multiple deployment methods, including uvx, Docker, and standard Nix execution. It also offers flexible transport options, allowing users to run the server via stdio or as an HTTP endpoint, which provides versatility for integrating into diverse development environments and AI coding assistants.
Our verdict
With a security score of 48/100, this server is currently classified as a high-risk tool. The rating is primarily due to it being a community-maintained project rather than an official vendor release, as well as the fact that critical areas like authentication methods and read-only mode compliance have not yet been subject to formal editorial review. Consequently, users should exercise caution and review the codebase before deployment in sensitive workflows.
- Zero direct dependencies reduce the supply-chain attack surface
- Active development with a recent commit history
- Eleven contributors provide moderate bus-factor mitigation
- Supports multiple transport methods including HTTP and stdio
- Not maintained by an official vendor organization
- Security architecture regarding authentication is currently unreviewed
- Lacks verification of read-only mode security controls
Tools
| Tool | Description | Risk |
|---|---|---|
| nix | Unified query tool for searching and inspecting NixOS packages, options, programs, flakes, and documentation. | low |
| nix_versions | Find historical versions of a package with nixpkgs commit hashes and metadata. | low |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| ChatGPT | ||||
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf |
Frequently asked questions
›Do I need Nix or NixOS installed on my machine to use this server?
No, the server works on any system including Windows, macOS, and Linux as it primarily functions by querying external APIs.
›Does this server support HTTP transport?
Yes, you can run the server over HTTP by setting the MCP_NIXOS_TRANSPORT environment variable to http and configuring the host and port.
›Is local flake input exploration supported?
Yes, you can explore local flake dependencies directly from the Nix store, though this specific feature requires having Nix installed on your machine.
›What is the memory or token footprint of this MCP server?
The server is designed for minimalism and utilizes approximately 1,030 tokens total to keep context usage low.
›How can I integrate this with the Pi coding agent?
You can use the pi-mcp-adapter to speak MCP or use the project-local extension included in the repository by cloning it.
›What configuration options are available for stateless HTTP?
You can disable per-client session state when using HTTP transport by setting the MCP_NIXOS_STATELESS_HTTP environment variable to 1.
Alternatives
Changelog
- Newv2.4.3 - LLM Discoverability
2026-04-25
- Fixv2.4.2 - Dotenv Startup Crash Fix
2026-04-22
- Fixv2.4.1 - Flake Overlay Compatibility
2026-04-22
- Breakingv2.4.0 - FastMCP 3.x Upgrade
2026-04-21
- Fixv2.3.2: Local Agent Tool Descriptions
2026-04-21
- Fixv2.3.1: Dotted Package Name Search Fix
2026-04-03
- Fix
- New
- Fixv2.1.1: Stable Python Compatibility
2026-01-26
- Fixv2.1.0: Pure Nix Flake
2026-01-07
Badge
Maintain this server? Add the live badge to your README.