
AI Agent for MCP-NixOS
Integrate MCP-NixOS to empower your AI assistant with real-time, accurate NixOS, Home Manager, and nix-darwin configuration data. Avoid hallucinated package information and deliver precise results leveraging over 130,000 NixOS packages, 22,000 configuration options, and broad macOS support. Works seamlessly cross-platform—Windows, macOS, and Linux.

Real-Time NixOS, Home Manager & Darwin Data
MCP-NixOS enables your AI agent to access live NixOS package, configuration, and Home Manager data. Instantly query and retrieve up-to-date package info, version history, and configuration options without relying on static or outdated sources. Provide users with trustworthy, current answers every time.
- NixOS Search API.
- Search over 130,000 NixOS packages and 22,000+ configuration options in real time.
- Home Manager Integration.
- Query and suggest configuration options for Home Manager with 4,000+ supported settings.
- macOS nix-darwin Support.
- Access over 1,000 macOS Nix configuration options for advanced cross-platform workflows.
- Live Version History.
- Track and retrieve package version history, including commit hashes, via NixHub.io integration.

Async Performance & Cross-Platform
MCP-NixOS leverages modern asynchronous Python for ultra-fast data retrieval. It operates statelessly with zero caching to ensure the freshest data. Deploy it effortlessly on Windows, macOS, or Linux—no Nix installation required.
- Async API Architecture.
- Enjoy fast, modern async operations for instant results and high concurrency.
- Universal Compatibility.
- Works everywhere Python runs—no Nix needed. Ideal for diverse developer and user environments.
- Zero Config, Zero Hassle.
- Stateless, no local files or caches. Just run and get fresh output every time.

Developer-Friendly & Open Source
MCP-NixOS is MIT-licensed and designed for effortless local development, CI/CD integration, and cloud deployment. Enjoy clear error messages, dynamic channel resolution, and a streamlined codebase made for maintainability and transparency.
- Open Source & MIT Licensed.
- Fork, modify, and contribute freely under a permissive license.
- Robust Testing.
- 367 async tests, real API calls, and cross-platform validation for reliability.
- Easy Local Development.
- Streamlined setup for rapid prototyping and CI/CD automation.
MCP INTEGRATION
Available NixOS MCP Integration Tools
The following tools are available as part of the NixOS MCP integration:
- nixos_search
Search NixOS packages, options, or programs by query, type, and channel.
- nixos_info
Retrieve detailed information about a specific NixOS package or option.
- nixos_channels
List all available NixOS channels for package and option data.
- nixos_stats
Get statistics on the number of packages and options in a channel.
- nixos_flakes_search
Search for community flakes within the Nix ecosystem.
- nixos_flakes_stats
Retrieve statistics about the Nix flake ecosystem.
- nixhub_package_versions
Get the version history and commit hashes for a given package.
- nixhub_find_version
Search for a specific version of a package, including commit details.
- home_manager_search
Search Home Manager user configuration options.
- home_manager_info
Retrieve detailed information and suggestions for a Home Manager option.
- home_manager_stats
Get statistics on available Home Manager options.
- home_manager_list_options
Browse all categories of Home Manager options.
- home_manager_options_by_prefix
Explore Home Manager options filtered by prefix.
- darwin_search
Search macOS (nix-darwin) configuration options.
- darwin_info
Retrieve details for a specific macOS configuration option.
- darwin_stats
Get statistics about available macOS configuration options.
- darwin_list_options
Browse all categories of macOS configuration options.
- darwin_options_by_prefix
Explore macOS options filtered by prefix.
Stop AI Hallucinations—Give Your Assistant Real NixOS Facts
Empower your AI with up-to-date, accurate NixOS package, option, and version data instantly—no more made-up answers. Works everywhere, no Nix install required.
What is MCP-NixOS
MCP-NixOS is a Model Context Protocol (MCP) server designed specifically for the NixOS ecosystem. It provides a robust interface that enables AI assistants and agents to access precise, real-time information about NixOS packages, system options, Home Manager configurations, and nix-darwin macOS configurations. By serving as a bridge between NixOS tooling and AI, MCP-NixOS allows users and developers to retrieve and interact with the latest configuration data, package details, and option documentation, reducing errors and ensuring up-to-date context for system management and automation. This service is especially valuable for developers, system administrators, and AI agents seeking to automate or intelligently manage NixOS-based systems.
Capabilities
What we can do with MCP-NixOS
MCP-NixOS enables a wide range of automation and information retrieval tasks for NixOS users and developers. It acts as a real-time source of truth for NixOS configurations and package data, powering intelligent assistants and DevOps workflows.
- Query NixOS packages
- Instantly look up details, versions, and metadata for any package available in NixOS.
- Explore system options
- Retrieve documentation and supported values for system configuration options.
- Home Manager support
- Access modules and options for user-level configuration management with Home Manager.
- nix-darwin integration
- Get macOS-specific Nix configuration options for managing macOS systems with Nix.
- Real-time updates
- Ensure agents and users always interact with the latest available NixOS context and data.

How AI agents can benefit from MCP-NixOS
AI agents can leverage MCP-NixOS to provide highly accurate, context-aware assistance for NixOS and related environments. By tapping into live configuration and package data, agents can automate system maintenance, guide users through setup, and prevent errors caused by outdated or incorrect information. This creates new possibilities for intelligent DevOps workflows, smarter system management, and streamlined user experiences in NixOS ecosystems.