mcp-servers-nix
A Nix-based configuration framework for Model Control Protocol (MCP) servers with ready-to-use packages.
Documentation
mcp-servers-nix
A Nix-based configuration framework for Model Control Protocol (MCP) servers with ready-to-use packages.
Overview
This repository provides both MCP server packages and a Nix framework for configuring and deploying MCP servers. It offers a modular approach to configuring various MCP servers with a consistent interface.
Features
- Modular Configuration: Define and combine multiple MCP server configurations
- Reproducible Builds: Leverage Nix for reproducible and declarative server setups
- Pre-configured Modules: Ready-to-use configurations for popular MCP server types
- Security-focused: Better handling credentials and sensitive information through `envFile` and `passwordCommand`, with pinned server versions
- Framework Support: Integrates with Flakes, flake-parts, devenv, and Home Manager
Quick Start
Run an MCP server directly:
nix run github:natsukium/mcp-servers-nix#mcp-server-fetchGenerate a configuration file with `mkConfig`:
# config.nix
let
pkgs = import { };
mcp-servers-nix = import (fetchTarball
"https://github.com/natsukium/mcp-servers-nix/archive/main.tar.gz") { inherit pkgs; };
in
mcp-servers-nix.lib.mkConfig pkgs {
programs.filesystem = {
enable = true;
args = [ "/path/to/allowed/directory" ];
};
}nix-build config.nix && cat result{
"mcpServers": {
"filesystem": {
"command": "/nix/store/7b4ancp3cns9lkkybd090qzr0hah5qq0-mcp-server-filesystem-2025.12.18/bin/mcp-server-filesystem",
"args": [ "/path/to/allowed/directory" ]
}
}
}The output format adapts to the `flavor` option — see Supported Flavors below.
Supported Flavors
| Flavor | Key | Typical File | Client |
|---|---|---|---|
| `claude` | `mcpServers` | `claude_desktop_config.json` | Claude Desktop |
| `claude-code` | `mcpServers` | `.mcp.json` | Claude Code |
| `vscode` | `mcp.servers` | `settings.json` | VS Code |
| `vscode-workspace` | `servers` | `.vscode/mcp.json` | VS Code (workspace) |
| `codex` | `mcp_servers` | `.mcp.toml` | Codex CLI |
| `opencode` | `mcp` | `opencode.json` | OpenCode |
| `zed` | `context_servers` | (varies) | Zed |
Available Modules
- clickup
- codex
- context7
- deepl
- esa
- everything
- fetch
- filesystem
- freee
- git
- github
- grafana
- home-assistant
- mastra
- memory
- netdata
- nixos
- notion
- playwright
- sequential-thinking
- serena
- slite
- tavily
- terraform
- textlint
- time
Examples
Check the `examples` directory for complete configuration examples:
- `claude-desktop.nix`: Basic configuration for Claude Desktop
- `vscode.nix`: VS Code integration setup
- `librechat.nix`: Configuration for LibreChat integration
- `codex.nix`: Codex CLI integration with MCP servers
- `opencode.nix`: OpenCode CLI integration with MCP servers
- `vscode-workspace`: VS Code workspace configuration example
- `flake-parts-module`: Flake-parts module integration with multi-flavor support
- `devenv`: devenv integration using `claude.code.mcpServers`
- `home-manager`: Home Manager integration with `programs.mcp.servers`
Real World Examples
Check out GitHub search results for examples of how others are using mcp-servers-nix in their projects.
Documentation
- Module Usage Guide — How to configure MCP servers with Nix (classic, npins, flakes, flake-parts)
- Configuration Reference — Security, credential handling, and flake-parts options
- Module Options Reference — Auto-generated list of all module options
- Packages Guide — Using standalone MCP server packages
- Contributing Guide — Adding new packages and modules
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Frequently asked questions
What is mcp-servers-nix?
mcp-servers-nix is A Nix-based configuration framework for Model Control Protocol (MCP) servers with ready-to-use packages.
How do I install mcp-servers-nix?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-servers-nix open source?
Yes — it is hosted on GitHub at https://github.com/natsukium/mcp-servers-nix and has 142 stars.
Related MCP tools
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
A collection of MCP clients. Trusted by 5900+ developers. Trusted by 5900+ developers. Trusted by 5900+ developers. Trusted by 5900+ developers.
MCP 资源精选, MCP指南,Claude MCP,MCP Servers, MCP Clients Trusted by 4800+ developers. Trusted by 4800+ developers. Trusted by 4800+ developers.
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic TypeScript-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP