Ugreen NAS MCP Server

Ugreen NAS MCP Server

A secure MCP server designed for Ugreen NAS, enabling AI clients to list and access shared directories over SSE with token authentication and container isolation.

Category
Visit Server

README

Ugreen NAS Docker MCP Server Setup

This repository contains a secure, containerized Model Context Protocol (MCP) server designed to be hosted on your Ugreen NAS (UGOS).

Security Architecture (Pre-Gateway Mitigations)

This setup is configured with several key pre-gateway security practices:

  1. Transport Layer Token Authentication: Direct SSE access is protected with a token (X-API-Key header).
  2. Container Isolation (Non-Root): The server runs as mcpuser (UID/GID 1000) inside the container. Even if a tool is compromised, the attacker has no root privileges and is restricted to the container environment.
  3. Directory Sandboxing: The list_nas_shared_directories tool is restricted to /volume1/shared inside the container. It cannot traverse to other system files or directories on your NAS.
  4. Environment-Driven Secrets: The secret token is passed via a Docker environment variable rather than hardcoded in the codebase.

Deployment on Ugreen NAS (UGOS)

Step 1: Build the Docker Image

You can build this image locally and push it to your NAS, or build it directly on the NAS if you have SSH enabled:

docker build -t ugreen-nas-mcp:latest .

Step 2: Running via Ugreen Container Manager UI

  1. Open the App Center -> Container Manager (or Docker app) on your Ugreen NAS.
  2. Go to Image and import/load ugreen-nas-mcp:latest or upload the folder and build it.
  3. Create a new container with the image:
    • Network: Bridge (recommended, expose port 8000).
    • Port Settings: Map Container Port 8000 to Host Port 8000 (or another free port like 8080).
    • Environment Variables:
      • MCP_SECRET_TOKEN: Set a strong random password (e.g. uGr33n-S3cur3-Mcp-2026!).
    • Volume/Bind Mounts:
      • Mount the NAS shared directory you want the MCP to access (e.g. /volume1/homes or a specific shared folder /volume1/Public) to /volume1/shared inside the container. Set it to Read-Only (Recommended) for maximum security.
  4. Start the container.

Client Configuration

To connect your AI client (e.g., Claude Desktop, Cursor, or another MCP client) to the NAS MCP server, update your client's configuration file:

Example: claude_desktop_config.json

Replace <NAS_IP> with the local IP address of your Ugreen NAS, and the header value with your configured MCP_SECRET_TOKEN.

{
  "mcpServers": {
    "ugreen-nas-mcp": {
      "type": "sse",
      "url": "http://<NAS_IP>:8000/mcp/sse",
      "headers": {
        "X-API-Key": "your-configured-mcp-secret-token"
      }
    }
  }
}

Verification & Testing

To verify the server is running and secure, run a quick curl command from your computer:

# Verify it blocks unauthorized access (Should return 401 Unauthorized)
curl -i http://<NAS_IP>:8000/mcp/sse

# Verify authorized access (Should establish connection)
curl -i -H "X-API-Key: your-configured-mcp-secret-token" http://<NAS_IP>:8000/mcp/sse

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured