MM

meonji-mon/mcp-synolink

Developer tools

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

27 stars 9 forks 품질 53 트렌드 0

Synology NAS 파일 운영을위한 MCP 서버

개요

Synology NAS 파일 작업에 대한 Model Context Protocol (MCP)을 구현하는 Node.js 서버. 이 서버는 Claude 또는 다른 호환 AI 조수를 통해 Synology NAS 장치와 상호 작용할 수 있습니다. - Synology DSM에 로그인/로그아웃 - 파일 및 폴더 목록 - 파일 내용을 다운로드 - 파일 업로드 - 폴더 만들기 - 파일 삭제/폴더 - 이동/로그 파일 및 폴더 - 검색 기능 - 생성 및 목록 공유 링크 - 서버 정보를 얻으십시오 - 할당량 정보를 얻으십시오 - Node.js 18 이상 - npm 또는 원사 - Synology NAS with DSM 6.0 이상 - Synology NAS에 네트워크 액세스 claude desktop config.json에 이것을 추가하십시오: 그런 다음 claude desktop config.json에 추가하십시오. 항상 credentials에 주의하십시오. 현재 구현은 프로세스 목록에서 볼 수있는 명령 줄 인수로 암호를 보냅니다. 생산 환경에서 향상된 보안, 대안 인증 방법을 구현 고려.

개요(AI 번역)

Synology NAS 파일 작업에 대한 Model Context Protocol (MCP)을 구현하는 Node.js 서버. 이 서버는 Claude 또는 다른 호환 AI 조수를 통해 Synology NAS 장치와 상호 작용할 수 있습니다.

특징

  • Synology DSM의 로그인/로아웃
  • 파일 및 폴더 목록
  • 파일 내용 다운로드
  • 파일 업로드
  • 폴더 만들기
  • 파일/폴더 삭제
  • 이동/이름 파일 및 폴더
  • 검색 기능
  • 생성 및 목록 공유 링크
  • 서버 정보 얻기
  • 쿼타 정보 얻기

필수품

  • Node.js 18 이상
  • npm 또는 원사
  • DSM 6.0 이상의 Synology NAS
  • Synology NAS에 대한 네트워크 접근

설치

이 저장소를 복제:

의존성 설치:

프로젝트:

Claude 데스크탑 사용

Node.js 메서드

claude_desktop_config.json에 이것을 추가하십시오:

Docker 메서드

Docker 이미지를 만듭니다:

다음으로 추가하십시오. claude_desktop_config.json:

보안 노트

항상 credentials에 주의하십시오. 현재 구현은 프로세스 목록에서 볼 수있는 명령 줄 인수로 암호를 보냅니다. 생산 환경에서 향상된 보안, 대안 인증 방법을 구현 고려.

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

README

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

SynoLink MCP Server

A Node.js server implementing Model Context Protocol (MCP) for Synology NAS file operations. This server allows you to interact with your Synology NAS device through Claude or other compatible AI assistants.

Features

  • Login/logout to Synology DSM
  • List files and folders
  • Download file contents
  • Upload files
  • Create folders
  • Delete files/folders
  • Move/rename files and folders
  • Search functionality
  • Create and list sharing links
  • Get server information
  • Get quota information

Prerequisites

  • Node.js 18 or higher
  • npm or yarn
  • Synology NAS with DSM 6.0 or higher
  • Network access to your Synology NAS

Installation

Clone this repository:

git clone https://github.com/Do-Boo/MCP-SynoLink.git
cd MCP-SynoLink

Install dependencies:

npm install

Build the project:

npm run build

Usage with Claude Desktop

Node.js Method

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "synolink": {
      "command": "node",
      "args": [
        "/path/to/MCP-SynoLink/dist/index.js",
        "https://your-synology-url:port",
        "your-username",
        "your-password"
      ]
    }
  }
}

Docker Method

Build the Docker image:

docker build -t mcp/synolink .

Then add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "synolink": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/synolink",
        "https://your-synology-url:port",
        "your-username",
        "your-password"
      ]
    }
  }
}

Security Note

Always be careful with credentials. The current implementation sends the password as a command-line argument, which may be visible in process listings. For improved security in a production environment, consider implementing alternative authentication methods.

API Documentation

The server provides the following tools:

Authentication Tools

  • login

    • Authenticates with the Synology NAS
    • No parameters required (uses credentials from command line)
  • logout

    • Logs out from the Synology NAS
    • No parameters required

File Management Tools

  • list_folders

    • Lists files and folders in a directory
    • Input: path (string) - Path to list files from, e.g., ‘/photos’
  • get_file

    • Gets the content of a file
    • Input: path (string) - Full path to the file on Synology NAS
  • upload_file

    • Uploads a file to Synology NAS
    • Inputs:
      • path (string) - Destination path on Synology NAS including filename
      • content (string) - Content of the file to upload
  • create_folder

    • Creates a new folder
    • Inputs:
      • path (string) - Full path to create folder at
      • name (string) - Name of the new folder
  • delete_item

    • Deletes a file or folder
    • Input: path (string) - Full path to the file or folder to delete
  • move_item

    • Moves or renames a file or folder
GitHub에서 전체 README 보기

설치

docker run -i --rm mcp/synolink https://your-synology-url:port your-username your-password
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "synolink": { "command": "node", "args": [ "/path/to/MCP-SynoLink/dist/index.js", "https://your-synology-url:port", "your-username", "your-password" ] } } }