U

Ugnas MCP

by Omodaka9375 · io.github.Omodaka9375/ugnas-mcp

Enables management of a UGREEN NAS running UGOS over SSH and SFTP, exposing 39 tools for system status, Docker containers/images/networks/compose, files and data transfer, backups, and network inspection. Every mutating action runs through a dry-run plan with a single-use confirmation token, so operations are reviewed before anything changes.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-omodaka9375-ugnas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ugnas-mcp"
      ],
      "env": {
        "UGNAS_MCP_CONFIG": "<VALUE>",
        "UGNAS_HOST": "<VALUE>",
        "UGNAS_USER": "<VALUE>",
        "UGNAS_KEY_PATH": "<YOUR_VALUE>",
        "UGNAS_PASSWORD": "<YOUR_VALUE>",
        "UGNAS_PORT": "22",
        "UGNAS_DEFAULT_SHARE": "/volume1",
        "UGNAS_HOST_KEY_SHA256": "<VALUE>",
        "UGNAS_AUTH_TYPE": "<VALUE>",
        "UGNAS_HTTP_HOST": "127.0.0.1",
        "UGNAS_HTTP_PORT": "<VALUE>",
        "UGNAS_HTTP_ALLOW_REMOTE": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-omodaka9375-ugnas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ugnas-mcp"
      ],
      "env": {
        "UGNAS_MCP_CONFIG": "<VALUE>",
        "UGNAS_HOST": "<VALUE>",
        "UGNAS_USER": "<VALUE>",
        "UGNAS_KEY_PATH": "<YOUR_VALUE>",
        "UGNAS_PASSWORD": "<YOUR_VALUE>",
        "UGNAS_PORT": "22",
        "UGNAS_DEFAULT_SHARE": "/volume1",
        "UGNAS_HOST_KEY_SHA256": "<VALUE>",
        "UGNAS_AUTH_TYPE": "<VALUE>",
        "UGNAS_HTTP_HOST": "127.0.0.1",
        "UGNAS_HTTP_PORT": "<VALUE>",
        "UGNAS_HTTP_ALLOW_REMOTE": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-omodaka9375-ugnas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ugnas-mcp"
      ],
      "env": {
        "UGNAS_MCP_CONFIG": "<VALUE>",
        "UGNAS_HOST": "<VALUE>",
        "UGNAS_USER": "<VALUE>",
        "UGNAS_KEY_PATH": "<YOUR_VALUE>",
        "UGNAS_PASSWORD": "<YOUR_VALUE>",
        "UGNAS_PORT": "22",
        "UGNAS_DEFAULT_SHARE": "/volume1",
        "UGNAS_HOST_KEY_SHA256": "<VALUE>",
        "UGNAS_AUTH_TYPE": "<VALUE>",
        "UGNAS_HTTP_HOST": "127.0.0.1",
        "UGNAS_HTTP_PORT": "<VALUE>",
        "UGNAS_HTTP_ALLOW_REMOTE": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-omodaka9375-ugnas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ugnas-mcp"
      ],
      "env": {
        "UGNAS_MCP_CONFIG": "<VALUE>",
        "UGNAS_HOST": "<VALUE>",
        "UGNAS_USER": "<VALUE>",
        "UGNAS_KEY_PATH": "<YOUR_VALUE>",
        "UGNAS_PASSWORD": "<YOUR_VALUE>",
        "UGNAS_PORT": "22",
        "UGNAS_DEFAULT_SHARE": "/volume1",
        "UGNAS_HOST_KEY_SHA256": "<VALUE>",
        "UGNAS_AUTH_TYPE": "<VALUE>",
        "UGNAS_HTTP_HOST": "127.0.0.1",
        "UGNAS_HTTP_PORT": "<VALUE>",
        "UGNAS_HTTP_ALLOW_REMOTE": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-omodaka9375-ugnas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ugnas-mcp"
      ],
      "env": {
        "UGNAS_MCP_CONFIG": "<VALUE>",
        "UGNAS_HOST": "<VALUE>",
        "UGNAS_USER": "<VALUE>",
        "UGNAS_KEY_PATH": "<YOUR_VALUE>",
        "UGNAS_PASSWORD": "<YOUR_VALUE>",
        "UGNAS_PORT": "22",
        "UGNAS_DEFAULT_SHARE": "/volume1",
        "UGNAS_HOST_KEY_SHA256": "<VALUE>",
        "UGNAS_AUTH_TYPE": "<VALUE>",
        "UGNAS_HTTP_HOST": "127.0.0.1",
        "UGNAS_HTTP_PORT": "<VALUE>",
        "UGNAS_HTTP_ALLOW_REMOTE": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-omodaka9375-ugnas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ugnas-mcp"
      ],
      "env": {
        "UGNAS_MCP_CONFIG": "<VALUE>",
        "UGNAS_HOST": "<VALUE>",
        "UGNAS_USER": "<VALUE>",
        "UGNAS_KEY_PATH": "<YOUR_VALUE>",
        "UGNAS_PASSWORD": "<YOUR_VALUE>",
        "UGNAS_PORT": "22",
        "UGNAS_DEFAULT_SHARE": "/volume1",
        "UGNAS_HOST_KEY_SHA256": "<VALUE>",
        "UGNAS_AUTH_TYPE": "<VALUE>",
        "UGNAS_HTTP_HOST": "127.0.0.1",
        "UGNAS_HTTP_PORT": "<VALUE>",
        "UGNAS_HTTP_ALLOW_REMOTE": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
UGNAS_MCP_CONFIG No Path to the JSON config file (overrides the default ~/.ugnas-mcp/config.json).
UGNAS_HOST No IP or hostname of the NAS.
UGNAS_USER No SSH user.
UGNAS_KEY_PATH secret No Path to the SSH private key (may also be raw inline PEM).
UGNAS_PASSWORD secret No SSH password (used when UGNAS_AUTH_TYPE=password).
UGNAS_PORT No SSH port. Default 22. Default: 22
UGNAS_DEFAULT_SHARE No Base directory for relative tool paths. Default /volume1. Default: /volume1
UGNAS_HOST_KEY_SHA256 No Pinned SSH host key fingerprint (e.g. SHA256:...).
UGNAS_AUTH_TYPE No Set to 'password' to use password authentication instead of a key.
UGNAS_HTTP_HOST No Host for the optional HTTP transport. Default 127.0.0.1. Default: 127.0.0.1
UGNAS_HTTP_PORT No Set to also expose a streamable HTTP transport alongside stdio.
UGNAS_HTTP_ALLOW_REMOTE No Set to 1 to allow binding the HTTP transport to a non-loopback address.

Similar servers