mcp-nixos
by utensils
Overview
Provides accurate, real-time information about NixOS packages, configuration options, Home Manager settings, nix-darwin configurations, and package version history to AI assistants, preventing hallucinations.
Installation
docker run --rm -i ghcr.io/utensils/mcp-nixosEnvironment Variables
- ELASTICSEARCH_URL
Security Notes
CRITICAL: The `NIXOS_AUTH` tuple containing username and password (`"aWVSALXpZv", "X8gPHnzL52wFEekuxsfQ9cSh"`) is hardcoded directly in `mcp_nixos/server.py`. While these credentials appear to be for a public Elasticsearch backend (`search.nixos.org`) and are likely read-only, hardcoding any credentials is a severe security vulnerability as it exposes them to anyone with access to the source code, preventing secure rotation and management. The server makes HTTP requests to various external services, including `search.nixos.org`, `nix-community.github.io`, `nix-darwin.github.io`, and `nixhub.io`. Relying on external, potentially untrusted HTML content for parsing (using BeautifulSoup) can introduce risks if the parsing logic is not robust against malformed or malicious data, though BeautifulSoup is generally resilient. User inputs are embedded in Elasticsearch queries (e.g., `wildcard` queries) which, while generally safer when built via dictionaries, could theoretically be resource-intensive or expose edge cases if not rigorously validated. No `eval` or similar dangerous execution patterns were found.
Similar Servers
terraform-mcp-server
The Terraform MCP Server integrates with Terraform Registry APIs and HCP Terraform/Terraform Enterprise to provide advanced automation and interaction capabilities for Infrastructure as Code (IaC) development with AI assistants.
ha-mcp
Provides a Model Context Protocol (MCP) server for AI agents to control and query Home Assistant through REST API and WebSocket, offering enhanced smart home automation tools.
mcp-servers-nix
A Nix-based framework for configuring and deploying Model Control Protocol (MCP) servers with ready-to-use packages.
mcp-kubernetes
Enables AI assistants to interact with and debug Kubernetes clusters by translating natural language requests into Kubernetes operations.