{"type":"mcp_server","name":"nix-mcp-servers","description":"This Nix flake declaratively configures MCP servers for clients like Claude and Cursor, supporting filesystem and GitHub server types across platforms using Home Manager integration, simplifying AI model access.","category":"Developer Tools","language":"Nix","stars":25,"forks":1,"owner":"aloshy-ai","github_url":"https://github.com/aloshy-ai/nix-mcp-servers","homepage":"https://aloshy-ai.github.io/nix-mcp-servers/","setup":"## Setup\n\n**Basic Usage (Home Manager):**\n\n1.  Add the flake to your home-manager configuration.\n2.  Enable configuration generation using `clients.generateConfigs = true;`.\n3.  Configure clients (Claude, Cursor) by enabling them and configuring their servers (filesystem, github).\n4.  Customize configuration paths if needed using `configPath`.\n\n**NixOS:**\n\n1.  Add `mcp-servers` to your `configuration.nix` inputs.\n2.  Include `mcp-servers.nixosModules.default` in your modules.\n3.  Enable the module with `services.mcp-servers.enable = true;`.\n4.  Configure servers (filesystem, github) with required parameters like `extraArgs` and `GITHUB_PERSONAL_ACCESS_TOKEN`.\n5.  Enable clients (claude, cursor) and specify which servers they should use.\n\n**Home Manager:**\n\n1.  Import the Home Manager module from the GitHub tarball.\n2.  Enable the module with `services.mcp-servers.enable = true;`.\n3.  Configure servers (filesystem, github) with required parameters like `extraArgs` and `GITHUB_PERSONAL_ACCESS_TOKEN`.\n4.  Enable clients (claude, cursor) and specify which servers they should use.\n\n**nix-darwin:**\n\n1.  Import the darwin module from the GitHub tarball.\n2.  Enable the module with `services.mcp-servers.enable = true;`.\n3.  Configure servers (filesystem, github) with required parameters like `extraArgs` and `GITHUB_PERSONAL_ACCESS_TOKEN`.\n4.  Enable clients (claude, cursor) and specify which servers they should use.\n\n**Testing Your Setup:**\n\n1.  For NixOS and nix-darwin, run `sudo nixos-rebuild test` or `darwin-rebuild test` respectively.\n2.  For Home Manager, run `home-manager switch`.\n3.  Check if the configuration file exists in the appropriate location for each client.\n","tools":"## Available Tools\n\n1.  Declarative configuration of MCP servers (Allows configuration through Nix).\n2.  Support for multiple clients (Claude, Cursor) (Enables configuration for different AI clients).\n3.  Support for multiple server types (filesystem, github) (Supports different data source types).\n4.  Cross-platform support (NixOS, Darwin) (Works on different operating systems).\n5.  Home Manager integration (Integrates with existing Nix configurations).\n6.  `mcp-servers` CLI tool (Helps configure MCP servers).\n","faq":null,"created_at":"2025-03-10T08:12:27+00:00","updated_at":"2025-03-15T07:33:40+00:00","source_url":"https://model-context-protocol.com/servers/nix-mcp-servers-ai-model-configuration","related_articles":[]}