Basic information

Runtime
node
Category
License
MIT
Transports
stdio
Author
1yhy
Submitted by
Community
Quality
10
Stars
6

About Oss Mcp Server

阿里云OSSMCP服务器,用于将文件上传到阿里云OSS,支持多配置和目录指定

Oss Mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by 1yhy. It exposes 2 tools, including upload_to_oss, list_oss_configs. Supported transport: stdio. Runtime: node. License: MIT. The repository has 6 GitHub stars. Source code is hosted on github.com. Related topics: cloud-storage, file-upload, oss-mcp.

Setup

{
    "mcpServers": {
        "oss-mcp": {
            "command": "npx",
            "args": [
                "oss-mcp",
                "--oss-config='{\"default\":{\"region\":\"oss-cn-shenzhen\",\"accessKeyId\":\"YOUR_KEY\",\"accessKeySecret\":\"YOUR_SECRET\",\"bucket\":\"YOUR_BUCKET\",\"endpoint\":\"oss-cn-shenzhen.aliyuncs.com\"}}'",
                "--stdio"
            ]
        }
    }
}

Oss Mcp config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "oss-mcp": {
            "command": "npx",
            "args": [
                "oss-mcp",
                "--oss-config='{\"default\":{\"region\":\"oss-cn-shenzhen\",\"accessKeyId\":\"YOUR_KEY\",\"accessKeySecret\":\"YOUR_SECRET\",\"bucket\":\"YOUR_BUCKET\",\"endpoint\":\"oss-cn-shenzhen.aliyuncs.com\"}}'",
                "--stdio"
            ]
        }
    }
}

Oss Mcp tools

  • upload_to_oss — 将文件上传到阿里云OSS
    filePath:string*, targetDir:string, fileName:string, configName:string
  • list_oss_configs — 列出可用的阿里云OSS配置
    (no parameters)

Overview

What is Oss Mcp?

Oss Mcp is a Model Context Protocol (MCP) server that enables large language models to upload files directly to Alibaba Cloud Object Storage Service (OSS). It is built for developers and AI workflows that need to store files in the cloud via an MCP‑compatible interface.

How to use Oss Mcp?

Install globally with npm install -g oss-mcp or pnpm add -g oss-mcp. Configure one or more OSS accounts via the --oss-config command‑line argument, a .env file, or environment variables. Start the server using oss-mcp --oss-config='...' --stdio for stdio mode or oss-mcp --http -p 3000 for HTTP mode.

Key features of Oss Mcp

  • Supports multiple Alibaba Cloud OSS configurations.
  • Allows specifying an upload directory.
  • Provides two tools: upload_to_oss and list_oss_configs.
  • Integrates seamlessly with other MCP tools (Playwright, Figma, Filesystem).
  • Runs over stdio or HTTP transport.
  • Can be launched with an Inspector for debugging.

Use cases of Oss Mcp

  • Upload webpage screenshots or resources captured by Playwright MCP directly to OSS.
  • Upload files from Figma MCP or local file system to cloud storage.
  • Automate data backup from local or other services to OSS.
  • Process media (images, videos) and upload the results to obtain a shareable URL.
  • Manage multiple OSS accounts and switch between them easily.

Frequently asked questions

1 What runtime dependencies does Oss Mcp require?

It requires Node.js and npm (or pnpm) installed globally. The server is distributed as an npm package (oss-mcp).

2 How can I configure multiple OSS accounts?

Define environment variables such as OSS_CONFIG_DEFAULT and OSS_CONFIG_TEST, each containing a JSON object with region, accessKeyId, accessKeySecret, bucket, and endpoint. Alternatively, pass a JSON object with multiple configs to the --oss-config argument.

3 Which transport modes are supported?

Oss Mcp supports both stdio mode (--stdio) and HTTP mode (--http, default port 3000). You can also launch the server with the Inspector for debugging using --inspect.

4 Where do uploaded files go?

Files are uploaded to the Alibaba Cloud OSS bucket specified in the active configuration. The tool upload_to_oss accepts a local file path and optional target directory and file name.

5 What authentication is used?

Authentication uses Alibaba Cloud access keys (accessKeyId and accessKeySecret). These are provided through environment variables, a .env file, or the --oss-config command‑line option.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬