M

mcp-nixos将 AI 助手连接到 Nix 配置系统,让您轻松搜索包、检查系统设置、找到软件流克和阅读文本文档。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

mcp-nixos 将您的 AI 助手连接到 Nix 配置系统,实时提供 NixOS 包、选项、Home Manager 设置等信息。它支持搜索包、检查系统设置、查找软件 flake,并以纯文本方式阅读文档。此工具可在 Windows、macOS、Linux 等任何系统上使用,并可通过 uvx、Nix、Docker 或 HTTP 等多种方式集成。此服务器旨在为 AI 助手提供准确数据,降低幻觉与冗余。该工具支持查询 130K+ 以上的 NixOS 包、23K+ 系统配置选项,以及 Home Manager、nix-darwin、Nixvim 等其他 Nix 相关数据源。 mcp-nixos 将 17 个工具整合为两个,令牌使用量降至约 1,030。主工具 "nix" 充当统一查询工具,支持搜索、获取信息、浏览选项等操作。 该工具可在不同模式下运行,包括 STDIO、HTTP 和远程 MCP。它支持有状态和无状态 HTTP 模式。对于 Pi Coding Agent 集成,用户可以选择 pi-mcp-adapter 或项目本地扩展。 总的来说,mcp-nixos 为 AI 助手提供了一种简化的方式来访问 NixOS 数据,提升其能力,而不会产生显著的额外负担。

主要功能

  • 搜索 NixOS 包和选项
  • 浏览 Home Manager 和 Darwin 设置
  • 找到软件流克和读取文档
  • 查询 Nixvim 选项和 FlakeHub 流克
  • 检查二进制缓存状态于 cache.nixos.org

价格

模型
Free
评分
暂无评价

使用场景

AI 助手整合

将 AI 助手连接到 Nix 配置系统,获得准确、实时的包、选项和设置数据。

NixOS 管理

使用 mcp-nixos 搜索包、检查系统设置、找到软件流克直接从 Nix 商店。

优点 & 缺点

优点

  • 为 AI 助手提供实时准确的 NixOS 数据
  • 在任何系统中运行(Windows、macOS、Linux)
  • 支持多种整合方法(uvx、Nix、Docker、HTTP)
  • 将 17 个工具合并成两种,减少令牌使用量约 1,030 个令牌
  • 提供一致的查询工具,适用于各种 Nix 相关操作

缺点

  • 需要 Nix/NixOS 知识才能使用高级功能
  • 可能需要学习曲线,由于各种集成选项

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

Does mcp-nixos reduce token usage compared to other tools?

Yes, it consolidates 17 individual tools into just two, keeping token usage around 1,030 tokens per query, which helps limit hallucinations and bloat in AI responses.

Asked by Malik Rasheed · Sep 8, 2025

Is there a learning curve for using mcp-nixos?

While basic queries are straightforward, advanced use requires some familiarity with Nix/NixOS concepts, and choosing among the various integration options may take a bit of setup time.

Asked by Youssef El-Sayed · Aug 11, 2025

What kind of data can I query with mcp-nixos?

The tool lets you search over 130,000 NixOS packages, more than 23,000 system configuration options, Home Manager and nix-darwin settings, Nixvim options, and FlakeHub flakes, plus it can read documentation in plain text and check binary cache status on cache.nixos.org.

Asked by Paulo Cardoso · Jun 17, 2025

How can I integrate mcp-nixos with my existing AI assistant?

mcp-nixos supports multiple integration methods: you can run it via uvx, install it with Nix, use a Docker container, or expose it over HTTP. Choose the method that matches your deployment stack and connect your AI assistant to the server endpoint.

Asked by Anders Lindgren · May 19, 2025

提问

服务配缩器 的替代品