Provides accurate, real-time information about NixOS packages, system options, Home Manager settings and nix-darwin configurations.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add nixos --env PYTHONPATH='<PYTHONPATH>' -- uvx mcp-nixos~/.codex/config.toml
[mcp_servers.nixos]
command = "uvx"
args = ["mcp-nixos"]
env = { PYTHONPATH = "<PYTHONPATH>" }
# codex mcp add nixos --env PYTHONPATH='<PYTHONPATH>' -- uvx mcp-nixos~/.cursor/mcp.json
{
"mcpServers": {
"nixos": {
"command": "uvx",
"args": [
"mcp-nixos"
],
"env": {
"PYTHONPATH": "<PYTHONPATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"nixos": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-nixos"
],
"env": {
"PYTHONPATH": "<PYTHONPATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"nixos": {
"command": "uvx",
"args": [
"mcp-nixos"
],
"env": {
"PYTHONPATH": "<PYTHONPATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"nixos": {
"command": "uvx",
"args": [
"mcp-nixos"
],
"env": {
"PYTHONPATH": "<PYTHONPATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"nixos": {
"command": "uvx",
"args": [
"mcp-nixos"
],
"env": {
"PYTHONPATH": "<PYTHONPATH>"
}
}
}
}Environment variables
PYTHONPATH
Replace the placeholders with your own credentials and keep them out of version control.