MCP Server — felixdorn/mcp-nix

MCP server for Nixpkgs, NixOS and Home Manager

Local serverstdio

What is the MCP Server?

MCP server for Nixpkgs, NixOS and Home Manager

What you get

Use the following configuration to add the MCP server to your client:

  • Search Nixpkgs and read package derivations —
  • Broad options coverage —
  • simple-nixos-mailserver
  • nixos-hardware
  • Search the nix standard library and read function definitions —
  • Find versions of nixpkgs in which a package exists —

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
search_nixpkgsSearch Nixpkgs packages
read_derivationRead package source code
search_optionsSearch options for many projects
list_versionsList available versions for a project
show_option_detailsGet option details or list children
read_option_declarationRead option source code
find_nixpkgs_commit_with_package_versionGet nixpkgs commit for a version, shows available versions if not found (NixHub)
search_nix_stdlibSearch Nix stdlib functions (Noogle)
help_for_stdlib_functionGet help for a stdlib function (Noogle)

How to install the MCP Server

{
  "mcpServers": {
    "nix": {
      "command": "uvx",
      "args": ["mcp-nix"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • “Use MCP to search nixpkgs.”
  • “Use MCP to read derivation.”
  • “Use MCP to search options.”

Frequently asked questions

MCP server for Nixpkgs, NixOS and Home Manager Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.