MA

meta-automata-mcp/nix-mcp-servers

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

0 stars 5 forks 품질 47 트렌드 0MIT

A nix flake for configuring Model Context Protocol (MCP) servers across supported AI assistant clients

개요

A Nix flake for declaratively configuring MCP (Model Context Protocol) servers for clients like Claude and Cursor. - Declarative configuration of MCP servers - Support for multiple clients (Claude, Cursor) - Support for multiple server types (filesystem, github) - Cross-platform support (NixOS, Darwin) - Uses Home Manager for integration with your existing Nix configuration This flake provides Home Manager modules that generate MCP server configuration files for different clients. When you enable a server for a client, the necessary configuration is generated and placed in the appropriate location for that client. - : Provides filesystem access to AI models - : Provides GitHub access to AI models - : Anthropic's Claude AI assistant - : The Cursor code editor Add this flake to your home-manager configuration: You can customize the configuration paths for each client: 1. Clone the repository 2. Make your changes 3. Test with nix flake check 4. Submit a PR

README

원문 README의 일부입니다. 원문 보기.

Nix MCP Servers

A Nix flake for declaratively configuring MCP (Model Context Protocol) servers for clients like Claude and Cursor.

Features

  • Declarative configuration of MCP servers
  • Support for multiple clients (Claude, Cursor)
  • Support for multiple server types (filesystem, github)
  • Cross-platform support (NixOS, Darwin)
  • Uses Home Manager for integration with your existing Nix configuration

How it Works

This flake provides Home Manager modules that generate MCP server configuration files for different clients. When you enable a server for a client, the necessary configuration is generated and placed in the appropriate location for that client.

Supported Servers

  • Filesystem: Provides filesystem access to AI models
  • GitHub: Provides GitHub access to AI models

Supported Clients

  • Claude: Anthropic’s Claude AI assistant
  • Cursor: The Cursor code editor

Usage

Basic Usage

Add this flake to your home-manager configuration:

{
  inputs = {
    # ... your other inputs
    nix-mcp-servers.url = "github:yourusername/nix-mcp-servers";
  };

  outputs = { nixpkgs, home-manager, nix-mcp-servers, ... }: {
    homeConfigurations."yourusername" = home-manager.lib.homeManagerConfiguration {
      # ... your other configuration
      modules = [
        nix-mcp-servers.homeManagerModules.default
        
        # Your configuration
        {
          nix-mcp-servers = {
            # Enable configuration generation
            clients.generateConfigs = true;
            
            # Configure Cursor client
            clients.cursor = {
              enable = true;
              
              # Enable filesystem server for Cursor
              filesystem = {
                enable = true;
                paths = [
                  "/Users/yourusername/projects"
                  "/Users/yourusername/Documents"
                ];
              };
              
              # Enable GitHub server for Cursor
              github = {
                enable = true;
                token = "your-github-token";
              };
            };
            
            # Configure Claude client
            clients.claude = {
              enable = true;
              
              # Only enable filesystem for Claude
              filesystem = {
                enable = true;
                paths = [
                  "/Users/yourusername/projects"
                ];
              };
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →