</>MCP Agents Market
MCP Server

mcp-nixos

by utensils830PythonUpdated 2026-09-05

MCP-NixOS - Model Context Protocol Server for NixOS resources

MCP Agents Market is an independent directory. We are not affiliated with utensils or mcp-nixos, and we do not host or distribute it. All links point to the official GitHub repository.

Claude DesktopCursorPi Coding Agent

mcp-nixos is an MCP server that gives AI assistants accurate, real-time access to the NixOS ecosystem, including over 130,000 packages, 23,000+ configuration options, Home Manager settings, nix-darwin options, and Nixvim configurations. It prevents AI hallucination of package names by querying live data from search.nixos.org, FlakeHub, NixHub, and other authoritative sources. The server consolidates 17 tools into just 2 unified interfaces (nix and nix_versions) to minimize context window usage while providing comprehensive access to NixOS documentation, package metadata, binary cache status, and historical version information. No Nix installation is required—it runs on Windows, macOS, or Linux as a standalone Python application.

Key Features

Unified nix() tool querying 130K+ packages, 23K+ NixOS options, 5K+ Home Manager settings, and 5K+ Nixvim options across multiple sources
Package version history with nixpkgs commit hashes for reproducible builds via NixHub integration
Binary cache status checking on cache.nixos.org with download size information
FlakeHub registry access to 600+ community flakes and Noogle search for 2K+ Nix function signatures
NixOS Wiki and nix.dev documentation search integrated directly into AI workflows
Local flake input exploration from the Nix store with file reading capabilities
Minimal 1,030-token footprint across both tools to preserve AI context windows
Multiple deployment options: uvx, Nix, Docker, HTTP/remote MCP, and Pi Coding Agent support

Use Cases

  • 01Prevent AI assistants from hallucinating non-existent NixOS package names during configuration generation
  • 02Query accurate NixOS, Home Manager, or nix-darwin option documentation while writing configurations
  • 03Find historical package versions with commit hashes for pinning dependencies in flake.nix
  • 04Check binary cache availability before building packages to estimate download vs. compile time
  • 05Explore Nixvim or NVF configuration options when setting up Neovim via Nix
  • 06Search FlakeHub and Noogle for community flakes and Nix function documentation during development

Related MCP Servers

View more

mcp-nixos — FAQ

What is mcp-nixos?+

mcp-nixos is a Model Context Protocol server that provides AI assistants with authoritative access to the NixOS ecosystem, including packages, configuration options, documentation, and version history from sources like search.nixos.org, FlakeHub, and NixHub. It works on any operating system and does not require Nix to be installed.

How do I install mcp-nixos in Claude Desktop or Cursor?+

Add a configuration entry to your MCP settings JSON file with the command 'uvx' and args ['mcp-nixos'], or use 'nix run github:utensils/mcp-nixos --' if you have Nix installed. The server can also run via Docker with 'docker run --rm -i ghcr.io/utensils/mcp-nixos'.

Which AI clients support mcp-nixos?+

mcp-nixos works with any MCP-compatible client, including Claude Desktop, Cursor, and other editors that support the Model Context Protocol. It also supports Pi Coding Agent via the pi-mcp-adapter or a project-local extension.

Do I need a NixOS system or API keys to use this server?+

No NixOS installation or API keys are required. The server runs on Windows, macOS, or Linux and queries public APIs from search.nixos.org, FlakeHub, NixHub, and other sources. Local flake input exploration and store path reading require Nix to be installed, but all other features work without it.

Is mcp-nixos free to use?+

Yes, mcp-nixos is open source under the MIT license and free to use. All data sources it queries (search.nixos.org, FlakeHub, NixHub, Noogle) are publicly accessible without cost.

How many tools does mcp-nixos expose to AI assistants?+

mcp-nixos consolidates functionality into just 2 tools: nix() for unified search, info, browsing, and cache queries across all NixOS sources, and nix_versions() for package version history. This minimal design uses only ~1,030 tokens total to preserve AI context windows.

How do I install mcp-nixos?+

Open the source repository on GitHub and follow its README. mcp-nixos is a mcp server — MCP Agents Market links you directly to the official repo.

Is mcp-nixos free?+

mcp-nixos is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches