mcp-nix
Access the Nix ecosystem (Nixpkgs, NixOS, Home Manager, nix-darwin, nixvim, nixhub...)
README
A tasteful MCP server for the Nix ecosystem
Ecosystem coverage
- Nixpkgs
- NixOS
- Home Manager
- Nixvim
- nix-darwin
- NixHub
- Noogle (Nix standard library)
Without additional configuration, only Nixpkgs and NixOS categories are included.
Installation
Use the following configuration to add the MCP server to your client:
{
"mcpServers": {
"nix": {
"command": "uvx",
"args": ["mcp-nix"]
}
}
}
Using Nix
{
"mcpServers": {
"nix": {
"command": "nix",
"args": ["run", "github:felixdorn/mcp-nix"]
}
}
}
Tools
- Categories included by default:
| Category | ID | Tools |
|---|---|---|
| Nixpkgs | nixpkgs |
search_nixpkgs, show_nixpkgs_package, read_derivation[^a] |
| NixOS | nixos |
search_nixos_options, show_nixos_option, list_nixos_channels, read_nixos_module[^a] |
- Categories excluded by default
| Category | ID | Tools |
|---|---|---|
| Home Manager | homemanager |
search_homemanager_options, show_homemanager_option, list_homemanager_releases, read_home_module[^a] |
| Nixvim | nixvim |
search_nixvim_options, show_nixvim_option, read_nixvim_declaration[^a] |
| nix-darwin | nix-darwin |
search_nix_darwin_options, show_nix_darwin_option, read_nix_darwin_declaration[^a] |
| NixHub | nixhub |
list_package_versions, find_nixpkgs_commit_with_package_version |
| Noogle | noogle |
search_nix_stdlib, help_for_stdlib_function |
[^a]: Requires explicit --include even when the category is enabled.
Including tools
- By category
- Pass the category's ID as an argument:
--homemanager --nixvim
- Pass the category's ID as an argument:
- By name
- Use --include:
--include=list_package_versions,...
- Use --include:
Excluding tools
- By category
- Prefix the category's ID by "no-":
--no-nixos
- Prefix the category's ID by "no-":
- By name
- Use --exclude:
--exclude=find_nixpkgs_commit_with_package_version,...
- Use --exclude:
List of tools
| Tool | Usage |
|---|---|
| nixpkgs | |
search_nixpkgs |
Search for Nixpkgs packages by name or description |
show_nixpkgs_package |
Get details for a Nixpkgs package by exact name |
read_derivation[^a] |
Read the Nix source code for a package derivation |
| nixos | |
search_nixos_options |
Search NixOS configuration options |
show_nixos_option |
Get details for a NixOS option, or list children if given a prefix |
list_nixos_channels |
List available NixOS release channels |
read_nixos_module[^a] |
Read the Nix source code for a NixOS option declaration |
| homemanager | |
search_homemanager_options |
Search Home Manager options for user environment configuration |
show_homemanager_option |
Get details for a Home Manager option, or list children if given a prefix |
list_homemanager_releases |
List available Home Manager releases |
read_home_module[^a] |
Read the Nix source code for a Home Manager option declaration |
| nixvim | |
search_nixvim_options |
Search NixVim configuration options |
show_nixvim_option |
Get details for a NixVim option, or list children if given a prefix |
read_nixvim_declaration[^a] |
Get the declaration reference for a NixVim option |
| nix-darwin | |
search_nix_darwin_options |
Search nix-darwin configuration options for macOS |
show_nix_darwin_option |
Get details for a nix-darwin option, or list children if given a prefix |
read_nix_darwin_declaration[^a] |
Get the declaration reference for a nix-darwin option |
| nixhub | |
list_package_versions |
List all available versions for a Nixpkgs package |
find_nixpkgs_commit_with_package_version |
Get the nixpkgs commit hash for a specific package version |
| noogle | |
search_nix_stdlib |
Search Nix standard library functions by name or type signature |
help_for_stdlib_function |
Get detailed help for a Nix standard library function |
[^a]: Requires explicit --include even when the category is enabled. |
Contributing
Read CONTRIBUTING.md
Credits
Thanks to the NixOS Search Team, ExtraNix, NüschtOS, NixHub, Noogle for maintaining the backends and pipeline this server uses and for the Nix community for making any of this possible.
License
GPLv3: License
<!-- mcp-name: io.github.felixdorn/mcp-nix -->
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。