Skip to content
VS Code

Aliyun OSS MCP Server for VS Code

io.github.xiaobinger/oss-mcp-server

Aliyun OSS file tools for MCP: upload, replace, download, zip, delete, signed URLs.

client:VS Code transport:stdio runtime:pypi

Install Aliyun OSS MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "oss-access-key-id",
      "description": "OSS_ACCESS_KEY_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oss-access-key-secret",
      "description": "OSS_ACCESS_KEY_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oss-endpoint",
      "description": "OSS_ENDPOINT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oss-bucket",
      "description": "OSS_BUCKET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oss-security-token",
      "description": "OSS_SECURITY_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oss-domain",
      "description": "OSS_DOMAIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oss-default-prefix",
      "description": "OSS_DEFAULT_PREFIX",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oss-public-read",
      "description": "OSS_PUBLIC_READ",
      "password": true
    }
  ],
  "servers": {
    "oss-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "oss-mcp-server"
      ],
      "env": {
        "OSS_ACCESS_KEY_ID": "${input:oss-access-key-id}",
        "OSS_ACCESS_KEY_SECRET": "${input:oss-access-key-secret}",
        "OSS_ENDPOINT": "${input:oss-endpoint}",
        "OSS_BUCKET": "${input:oss-bucket}",
        "OSS_SECURITY_TOKEN": "${input:oss-security-token}",
        "OSS_DOMAIN": "${input:oss-domain}",
        "OSS_DEFAULT_PREFIX": "${input:oss-default-prefix}",
        "OSS_PUBLIC_READ": "${input:oss-public-read}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Aliyun OSS MCP Server in other clients