Oss Mcp
Category: cloud-storage
Author: 1yhy
Language: TypeScript
Tags: oss-mcp,file-upload,cloud-storage
Tools:
[{"name":"upload_to_oss","description":"å°æä»¶ä¸ä¼ å°é¿éäºOSS","inputSchema":{"type":"object","properties":{"configName":{"description":"OSSéç½®åç§°ï¼å¯éï¼é»è®¤ä¸º'default'ï¼ãå¯ç¨éç½®: default","type":"string"},"fileName":{"description":"ä¸ä¼ åçæä»¶åï¼å¯éï¼é»è®¤ä½¿ç¨åæä»¶åï¼","type":"string"},"filePath":{"description":"è¦ä¸ä¼ çæ¬å°æä»¶è·¯å¾","type":"string"},"targetDir":{"description":"OSSä¸­çç®æ ç®å½è·¯å¾ï¼å¯éï¼","type":"string"}},"required":["filePath"]}},{"name":"list_oss_configs","description":"ååºå¯ç¨çé¿éäºOSSéç½®","inputSchema":{"type":"object"}}]
Server command: npx 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
Server configuration:
{
  "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"
      ]
    }
  }
}