Nixos MCP Server

NixOS package search and data retrieval to prevent AI hallucination of dependencies.

Data last scanned today · Reviewed today

482 tools776PythonMIT

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

ToolDescriptionRisk
nixUnified query tool for searching and inspecting NixOS packages, options, programs, flakes, and documentation.low
nix_versionsFind historical versions of a package with nixpkgs commit hashes and metadata.low

Compatibility

ClientLocalDockerRemoteRead-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

Badge

Nixos MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.