Supports configuration through .env files, allowing you to store multiple OSS account configurations for easy switching between different OSS targets.
Integrates with Figma MCP to enable downloading image resources locally and then uploading to OSS, or directly uploading Figma network files to OSS.
Provides source code access through GitHub, allowing installation directly from the repository.
Supports installation and distribution through npm, allowing global installation of the MCP server.
Supports installation and management through pnpm, with specific commands for development, starting services, and publishing.
OSS MCP 服务器 🚀
中文版 | English
一个基于Model Context Protocol (MCP)的服务器,用于将文件上传到阿里云OSS。此服务器使大型语言模型能够直接将文件上传到阿里云对象存储服务。
💡 使用场景
OSS MCP服务器能够与其他MCP工具无缝集成,为您提供强大的工作流程:
- 与Playwright MCP集成:可以先使用Playwright MCP抓取网页截图或下载网页资源,然后直接上传到阿里云OSS存储。
- 与Figma MCP集成:下载图片资源到本地后直接上传OSS、或者Figma网络文件直接上传OSS。
- 与Filesystem MCP集成:可以浏览和选择本地文件系统中的文件,然后一步上传到云存储。
- 数据备份流程:将重要数据从本地或其他服务自动备份到OSS。
- 媒体处理流程:结合其他处理工具,可以对图片、视频进行处理后直接上传并获取可访问的URL。
- 多OSS账号管理:便捷地在多个OSS账号间切换上传目标。
✨ 功能特点
- 📁 支持多个阿里云OSS配置
- 🗂️ 可指定上传目录
- 🔄 简单易用的接口
🔧 安装
您可以通过npm或从源码安装:
使用npm安装
使用示例
从源码安装
⚙️ 配置
您可以通过以下方式配置阿里云OSS参数:
方式一:使用.env文件
在项目根目录创建.env
文件,参考.env.example
模板。您可以配置多个阿里云OSS服务:
方式二:直接设置环境变量
您也可以直接在系统中或启动命令中设置环境变量:
🔍 参数说明
region
: 阿里云OSS区域accessKeyId
: 阿里云访问密钥IDaccessKeySecret
: 阿里云访问密钥Secretbucket
: OSS存储桶名称endpoint
: OSS终端节点
📋 使用方法
命令行选项
从源码启动
🛠️ 与Claude/Cursor配置集成
Cursor配置方法
- 在Cursor中打开设置(Settings)
- 转到MCP服务器(MCP Servers)部分
- 添加新服务器配置:
配置多个OSS账号
使用环境变量方式可以轻松配置多个OSS账号:
🧰 可用工具
服务器提供以下工具:
1. 上传文件到OSS (upload_to_oss
)
参数:
filePath
: 本地文件路径(必需)targetDir
: 目标目录路径(可选)fileName
: 文件名(可选,默认使用原文件名)configName
: OSS配置名称(可选,默认使用'default')
2. 列出可用的OSS配置 (list_oss_configs
)
无参数,返回所有可用的OSS配置名称。
📦 发布
📊 Star History
📄 许可证
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that enables large language models to upload files directly to Alibaba Cloud Object Storage Service (OSS), supporting multiple OSS configurations and specified upload directories.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides seamless access to multiple storage services including S3, Azure Blob Storage, and Google Cloud Storage through Apache OpenDAL™.Last updated -331PythonApache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to interact with Alibaba Cloud DataWorks through standardized interfaces, allowing seamless management of DataWorks resources and operations via the DataWorks Open API.Last updated -1698117TypeScriptApache 2.0
- AsecurityFlicenseAqualityA TypeScript-based Model Context Protocol server that enables large language models to directly invoke Alibaba Cloud's Tongyi Wanxiang text-to-image generation API.Last updated -4154TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables agent applications like Cursor and Cline to integrate with Alibaba Cloud Function Compute, allowing them to deploy and manage serverless functions through natural language interactions.Last updated -123456JavaScriptMIT License