
A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

阿里云OSS图片转存MCP服务器 is cataloged as an MCP server attributed to lvchenyang. 一个MCP服务器,通过OSS直传或HOOK代理模式将图片URL转存到阿里云OSS并返回CDN访问地址。 It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for 阿里云OSS图片转存MCP服务器 are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
支持OSS直传模式和HOOK代理模式两种。
文件大小上限为50MB。
README.md · 08010a74d4eb · 采集于 2026-11-13 12:08:27 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
一个基于Model Context Protocol (MCP)的服务器,支持两种模式将图片URL转存到阿里云OSS并返回CDN访问地址。
架构特点: 支持OSS直传和HOOK代理两种模式,使用STS临时凭证确保安全,提供完整的图片上传和管理功能。
将指定URL的图片转存到阿里云OSS,并返回新的CDN访问地址。
参数:
imageURL (string): 要转存的图片URL地址返回结果:
{
"structuredContent": {
"success": true,
"data": {
"cdnUrl": "https://cdn.example.com/images/photo_123.jpg",
"fileName": "images/photo_123.jpg",
"originalUrl": "https://source.example.com/photo.jpg"
},
"message": "Image successfully transferred to OSS"
},
"content": [{
"type": "text",
"text": "{\"success\":true,\"data\":{\"cdnUrl\":\"https://cdn.example.com/images/photo_123.jpg\",\"fileName\":\"images/photo_123.jpg\",\"originalUrl\":\"https://source.example.com/photo.jpg\"},\"message\":\"Image successfully transferred to OSS\"}"
}]
}
错误返回格式:
{
"isError": true,
"structuredContent": {
"success": false,
"data": null,
"error": "Invalid URL format",
"message": "Failed to transfer image to OSS"
},
"content": [{
"type": "text",
"text": "Error: Invalid URL format"
}]
}
功能特性:
项目支持两种上传模式:OSS模式(直接上传到阿里云OSS)和 HOOK模式(通过API接口上传)。
# MCP服务端口
PORT=3004
# 上传模式 (OSS 或 HOOK)
UPLOAD_MODE=OSS
当 UPLOAD_MODE=OSS 时,需要配置以下环境变量:
# STS临时凭证配置
STS_ACCESS_KEY_ID=your_sts_access_key_id
STS_ACCESS_KEY_SECRET=your_sts_access_key_secret
STS_ROLE_ARN=acs:ram::your_account_id:role/your_role_name
STS_ENDPOINT=sts.cn-hangzhou.aliyuncs.com
# OSS存储配置
OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
OSS_BUCKET=your_bucket_name
# CDN配置
CDN_ENDPOINT=https://your-cdn-domain.com
OSS模式说明:
当 UPLOAD_MODE=HOOK 时,需要配置以下环境变量:
# HOOK上传接口URL
UPLOAD_HOOK_URL=http://your-api-server:3001/api/resources/transfer-image-to-oss
HOOK模式说明:
本MCP服务器支持两种通信模式:
OSS模式配置:
{
"mcpServers": {
"alioss-mcp-server": {
"command": "npx",
"args": ["-y","alioss-mcp-server@latest"],
"env": {
"UPLOAD_MODE": "OSS",
"STS_ACCESS_KEY_ID": "your_sts_access_key_id",
"STS_ACCESS_KEY_SECRET": "your_sts_access_key_secret",
"STS_ROLE_ARN": "acs:ram::your_account_id:role/your_role_name",
"OSS_ENDPOINT": "oss-cn-hangzhou.aliyuncs.com",
"OSS_BUCKET": "your_bucket_name",
"CDN_ENDPOINT": "https://your-cdn-domain.com"
}
}
}
}
HOOK模式配置:
{
"mcpServers": {
"alioss-mcp-server": {
"command": "npx",
"args": ["-y","alioss-mcp-server@latest"],
"env": {
"UPLOAD_MODE": "HOOK",
"UPLOAD_HOOK_URL": "http://your-api-server:3001/api/resources/transfer-image-to-oss"
}
}
}
}
🔧 自动模式检测:
PORT环境变量或使用--http参数时,自动切换到HTTP模式(适合Docker部署)MCP_TRANSPORT=http环境变量强制指定HTTP模式复制配置模板:
cp env.example .env
编辑 .env 文件,根据选择的模式填写配置:
# OSS模式配置示例
UPLOAD_MODE=OSS
STS_ACCESS_KEY_ID=your_sts_access_key_id
STS_ACCESS_KEY_SECRET=your_sts_access_key_secret
STS_ROLE_ARN=acs:ram::your_account_id:role/your_role_name
OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
OSS_BUCKET=your_bucket_name
CDN_ENDPOINT=https://your-cdn-domain.com
# 或者 HOOK模式配置示例
# UPLOAD_MODE=HOOK
# UPLOAD_HOOK_URL=http://your-api-server:3001/api/resources/transfer-image-to-oss
# 启动服务
docker-compose up -d
# 查看日志
docker-compose logs -f alioss-mcp-server
# 停止服务
docker-compose down
OSS模式:
docker build -t alioss-mcp-server .
docker run -d \
--name alioss-mcp-server \
-p 3004:3004 \
-e UPLOAD_MODE=OSS \
-e STS_ACCESS_KEY_ID=your_sts_access_key_id \
-e STS_ACCESS_KEY_SECRET=your_sts_access_key_secret \
-e STS_ROLE_ARN=your_role_arn \
-e OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com \
-e OSS_BUCKET=your_bucket_name \
-e CDN_ENDPOINT=https://your-cdn-domain.com \
alioss-mcp-server
HOOK模式:
docker run -d \
--name alioss-mcp-server \
-p 3004:3004 \
-e UPLOAD_MODE=HOOK \
-e UPLOAD_HOOK_URL=http://your-api-server:3001/api/resources/transfer-image-to-oss \
alioss-mcp-server
Docker容器启动后,MCP服务将在以下端点可用:
http://localhost:3004/messageshttp://localhost:3004/health# 检查容器状态
docker ps | grep alioss-mcp-server
# 查看服务日志
docker logs alioss-mcp-server
# 健康检查
curl http://localhost:3004/health
{
"mcpServers": {
"alioss-mcp-server": {
"command": "curl",
"args": [
"-X", "POST",
"http://localhost:3004/messages",
"-H", "Content-Type: application/json",
"--data-raw"
]
}
}
}
# 安装依赖
pnpm install
# 开发模式启动
pnpm dev
# 构建
pnpm build
# 生产模式启动
pnpm start
Docker服务启动后,可以在N8N中使用:
n8n-nodes-mcp 社区节点N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=trueHTTP Streamablehttp://localhost:3004/messages(本地Docker)或 http://your-server-ip:3004/messages(远程Docker)None在N8N工作流中添加MCP Client节点,执行工具时传入:
{
"imageURL": "https://example.com/image.jpg"
}
本MCP服务器支持两种架构模式:
Claude/Cursor → MCP Server → 阿里云OSS
(端口3004) (直接SDK调用)
↓
STS临时凭证服务
Claude/Cursor → MCP Server → API Server → 阿里云OSS
(端口3004) (HOOK URL)
OSS模式:
HOOK模式:
通用优势:
POST /messages: HTTP Streamable MCP端点,支持所有MCP操作GET /health: 健康检查端点配置完成后,您可以在对话中直接使用:
请帮我将这个图片转存到OSS:https://example.com/image.jpg
Claude 会自动调用 MCP 服务将图片上传到阿里云OSS并返回CDN地址。
在代码编辑器中,您可以通过AI助手上传图片:
@alioss-mcp-server 请将这个截图上传到OSS: https://screenshot.example.com/img.png
服务启动失败
上传失败
MCP客户端连接失败
权限问题
网络问题
访问健康检查端点查看服务状态:
curl http://localhost:3004/health
返回示例:
{
"status": "ok",
"service": "alioss-mcp-server",
"initialized": true,
"tools": 1,
"uploadMode": "OSS",
"configured": true
}
状态说明:
status: 服务状态 (ok 或 warning)service: 服务名称initialized: MCP服务器是否已初始化tools: 可用工具数量uploadMode: 当前上传模式configured: 配置是否完整missingConfig: 缺失的配置项(如果有)如果您有任何问题:
env.example 配置模板如发现安全问题,请通过 GitHub Issues 报告,并在标题中标注 [SECURITY]。
本项目基于 MIT 许可证 开源。
欢迎贡献代码、报告问题或提出建议!请查看 CONTRIBUTING.md 了解详细信息。
感谢您的关注和支持!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for 阿里云OSS图片转存MCP服务器 from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/alioss-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.