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.
This Nix flake provides a declarative configuration for Model Context Protocol (MCP) servers, designed for clients like Claude and Cursor. It supports multiple server types, including Filesystem and GitHub, and offers cross-platform compatibility across NixOS, Darwin, and Home Manager.
Home Manager modules generate MCP server configuration files for different clients, placing them in the appropriate locations.
(Refer to the original README for detailed usage examples.)
Add the flake to your Home Manager configuration and configure clients and servers.
Customize configuration paths for each client.
Clone the repository, make changes, test with nix flake check
, and submit a PR.
This Nix flake offers a unified configuration system for MCP servers across platforms and package managers, handling client-specific formats and paths.
(Refer to the original README for detailed installation and usage instructions for NixOS, Home Manager, and nix-darwin.)
A mcp-servers
CLI tool is provided to help configure MCP servers.
Verify the configuration after applying it.
The project uses a modular structure for configuration across platforms, including common options, platform adapters, and library functions.
The project uses flake-parts for a modular structure.
(Refer to the original README for documentation links.)
You can also generate and view the options documentation directly with:
nix run github:aloshy-ai/nix-mcp-servers#view-docs
Documentation is automatically built and deployed to GitHub Pages.
aloshy-ai/nix-mcp-servers
March 10, 2025
March 15, 2025
Nix