Overview
What is nix-mcp-servers?
nix-mcp-servers is a Nix flake that provides Nix packages for a variety of Model Context Protocol (MCP) servers. It allows users to run or install these servers directly on NixOS systems or via home-manager, simplifying deployment and management.
How to use nix-mcp-servers?
You can run an MCP server in stdio mode using nix run github:cameronfyfe/nix-mcp-servers#<server-name> -- stdio. To install permanently, add the flake as an input and include the desired server package in environment.systemPackages or home.packages. An example NixOS configuration is available in the author’s configs.
Key features of nix-mcp-servers
- Provides Nix packages for 22+ MCP servers
- Run servers directly via
nix runin stdio mode - Install permanently with NixOS or home-manager
- Easy to add new MCP servers through contributions
- Includes servers for GitHub, databases, search, and more
Use cases of nix-mcp-servers
- Deploy MCP servers in reproducible NixOS environments
- Use MCP servers for local development with home-manager
- Quickly test MCP servers without permanent installation
- Integrate MCP tools like Slack, Sentry, or PostgreSQL with Nix flakes
FAQ from nix-mcp-servers
How do I run an MCP server temporarily?
Use nix run github:cameronfyfe/nix-mcp-servers#<server-name> -- stdio, replacing <server-name> with one from the list (e.g., github-mcp-server).
How do I install an MCP server permanently?
Add the flake to your flake.nix inputs, then include the package in environment.systemPackages or home.packages. The README provides a full example.
What MCP servers are available?
The flake packages servers such as github-mcp-server, mcp-server-postgres, mcp-server-slack, mcp-server-filesystem, and many more. See the README list.
Can I contribute a new MCP server?
Yes, contributions of additional MCP servers are welcome. Follow the repository’s contribution guidelines.
What are the prerequisites?
You need the Nix package manager with flakes enabled. No additional runtime dependencies are listed.

