Nix flake for unified AI tools configuration (Claude Code, OpenCode, MCP servers)
{
"mcpServers": {
"nixos": {
"args": [
"run",
"github:utensils/mcp-nixos",
"--"
],
"command": "nix"
},
"gateway": {
"env": {
"MCP_GATEWAY_CONFIG": "~/.config/mcp-gateway/config.json"
},
"command": "/nix/store/.../bin/mcp-gateway"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Nix flake for unified AI tools configuration (Claude Code, OpenCode, MCP servers)
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 1 days ago. 8 stars.
Will it work with my client?
Transport: stdio, http. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Dynamic problem-solving through sequential thought chains
A Model Context Protocol server for searching and analyzing arXiv papers
An open-source AI agent that brings the power of Gemini directly into your terminal.
The official Python SDK for Model Context Protocol servers and clients
MCP Security Weekly
Get CVE alerts and security updates for Ai Tools Flake and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Unified Nix flake for AI tools configuration including Claude Code, OpenCode, MCP servers, and AI agents.
programs.{opencode,claude-code}.commands optionsunstable branch (programs.claude-code only in unstable)nixos-unstable (claude-code package)Add to your flake.nix:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
ai-tools.url = "github:clempat/ai-tools-flake";
ai-tools.inputs.nixpkgs.follows = "nixpkgs"; # Use your nixpkgs
};
outputs = { nixpkgs, home-manager, ai-tools, ... }: {
homeConfigurations.youruser = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
ai-tools.nixosModules.default
{
programs.ai-tools.enable = true;
}
];
};
};
}
{ inputs, ... }:
{
imports = [ inputs.ai-tools.nixosModules.default ];
programs.ai-tools.enable = true;
# That's it! Automatically:
# - Installs claude-code & opencode from nixpkgs-unstable
# - Configures MCPs, agents, memory from config/
# - Adds claude-flow commands
# - Auto-configures Claude Desktop (macOS)
}
The module automatically uses packages from the flake. To override:
{ inputs, pkgs, ... }:
{
imports = [ inputs.ai-tools.nixosModules.default ];
programs.ai-tools.enable = true;
# Optional: override package versions
programs.opencode.package = inputs.opencode.packages.${pkgs.system}.default;
programs.claude-code.package = pkgs.unstable.claude-code;
}
On macOS, the module automatically configures Claude Desktop by generating ~/Library/Application Support/Claude/claude_desktop_config.json.
What's Auto-Configured:
MCP Gateway (Automatic HTTP Support)
The flake includes an mcp-gateway package that acts as a stdio→HTTP proxy, allowing ALL your HTTP MCP servers to work with Claude Desktop automatically!
How it works:
Generated config:
{
"mcpServers": {
"gateway": {
"command": "/nix/store/.../bin/mcp-gateway",
"env": {
"MCP_GATEWAY_CONFIG": "~/.config/mcp-gateway/config.json"
}
},
"nixos": {
"command": "nix",
"args": ["run", "github:utensils/mcp-nixos", "--"]
}
}
}
The gateway config (~/.config/mcp-gateway/config.json) is automatically generated from your config/mcps.nix HTTP servers.
Alternative: Manual Configuration
If you prefer manual configuration or the gateway doesn't work: