Tencent Cloud COS MCP Server
OfficialThe Tencent Cloud COS MCP Server enables seamless integration of large models with Tencent Cloud storage (COS) and data processing (CI) capabilities without coding.
Key Functions:
Cloud Storage:
Upload files to cloud storage
Download files from cloud storage
List files in storage buckets
Image Processing:
Get image information
Enhance image resolution
Crop images
Recognize QR codes
Assess image quality
Add text watermarks
Search for images using text or other images
Document & Video Processing:
Convert documents to PDF
Create smart video covers
Query processing job status and results
System:
Get COS configuration details
Enables configuration of environment variables for the COS MCP server through a .env file.
Provides source code repository access for cloning the COS MCP server project.
Provides package installation and management for the COS MCP server, supporting global and local installation options.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Tencent Cloud COS MCP Server upload this image to my cloud storage"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
中文 | English
腾讯云 COS MCP Server 🚀🚀🚀
基于 MCP 协议的腾讯云 COS MCP Server,无需编码即可让大模型快速接入腾讯云存储 (COS) 和数据万象 (CI) 能力。
✨ 核心功能
云端存储能力
⬆️ 文件上传到云端
⬇️ 文件从云端下载
📋 获取云端文件列表
云端处理能力
🖼️ 获取图片信息
🔍 图片超分辨率
✂️ 图片裁剪
📲 二维码识别
🏆 图片质量评估
🅰️ 文字水印
🎬 元数据/自然语言检索 (MateInsight)
📄 文档转 PDF
🎥 视频封面
Related MCP server: OSS MCP Server
💡 典型应用场景
使用其他 MCP 能力获取的文本/图片/视频/音频等数据,可直接上传到 COS 云端存储。
本地数据快速通过大模型转存到 COS 云端存储/备份。
通过大模型实现自动化:将网页里的视频/图片/音频/文本等数据批量转存到 COS 云端存储。
自动化将视频/图片/音频/文本等数据在云端处理,并转存到 COS 云端存储。
🌟 功能示例
上传文件到 COS

图片质量评估

自然语言检索图片

视频截帧

🔧 安装使用
参数说明
为了保护您的数据私密性,请准备以下参数:
1. SecretId / SecretKey
说明: 腾讯云 COS 的密钥,用于身份认证,请妥善保管,切勿泄露。
获取方式:
访问 腾讯云密钥管理。
新建密钥并复制生成的 SecretId 和 SecretKey。
2. Bucket
示例:
mybucket-123456说明: 存储桶名称,用于存放数据,相当于您的个人存储空间。
获取方式:
访问 存储桶列表。
复制存储桶名称。如果没有存储桶,可点击“创建存储桶”,一般选择默认配置即可快速完成创建。
3. Region
示例:
ap-beijing说明: 存储桶所在的地域。
获取方式:
在 存储桶列表 中找到存储桶。
在存储桶名称一行查看所属地域并复制,例如:
ap-beijing。
4. DatasetName
说明: 非必填参数,数据智能检索操作需要此参数。
获取方式:
访问 数据集管理。
创建数据集并等待索引建立完成后,复制数据集名称。
5. connectType
说明: 非必填参数,指定连接方式,可选值为
stdio(本地)或sse(远程)。默认值:
stdio
6. port
说明: 非必填参数,当连接方式为
sse时,可自由设置端口。默认值:
3001
从 npx 启动
在大模型内使用时(例如: cursor),需要在 mcp.json 中配置:
{
"mcpServers": {
"cos-mcp": {
"command": "npx",
"args": [
"cos-mcp",
"--Region=yourRegion",
"--Bucket=yourBucket",
"--SecretId=yourSecretId",
"--SecretKey=yourSecretKey",
"--DatasetName=yourDatasetname"
]
}
}
}也可以通过 JSON 配置:
{
"mcpServers": {
"cos-mcp": {
"command": "npx",
"args": [
"cos-mcp",
"--cos-config='{\"Region\":\"yourRegion\",\"Bucket\":\"yourBucket\",\"SecretId\":\"yourSecretId\",\"SecretKey\":\"yourSecretKey\",\"DatasetName\":\"yourDatasetname\"}'"
]
}
}
}使用 npm 安装
# 安装
npm install -g cos-mcp@latest
# 运行开启 SSE 模式
cos-mcp --Region=yourRegion --Bucket=yourBucket --SecretId=yourSecretId --SecretKey=yourSecretKey --DatasetName=yourDatasetname --port=3001 --connectType=sse
# 或通过 JSON 配置
cos-mcp --cos-config='{"Region":"yourRegion","Bucket":"BucketName-APPID","SecretId":"yourSecretId","SecretKey":"yourSecretKey","DatasetName":"datasetName"}' --port=3001 --connectType=sse在大模型内使用 SSE 模式时(例如: cursor),需要在 mcp.json 中配置:
{
"mcpServers": {
"cos-mcp": {
"url": "http://localhost:3001/sse"
}
}
}使用源码安装
步骤 1: 克隆项目代码
git clone https://github.com/Tencent/cos-mcp.git
cd cos-mcp步骤 2: 安装依赖
npm install步骤 3: 启动服务
3.1 配置本地环境变量
创建 .env 文件,并配置以下环境变量:
Region='yourRegion'
Bucket='yourBucket'
SecretId='yourSecretId'
SecretKey='yourSecretKey'
DatasetName="yourDatasetName"3.2 本地 SSE 模式启动(方式一)
npm run start:sse3.3 本地构建后使用 STDIO 模式(方式二)
npm run build构建产物位于 dist/index.js。
步骤 4: 在大模型内使用
SSE 模式配置
{
"mcpServers": {
"cos-mcp": {
"url": "http://localhost:3001/sse"
}
}
}STDIO 模式配置
{
"mcpServers": {
"cos-mcp": {
"command": "node",
"args": [
"${your work space}/dist/index.js"
]
}
}
}完成以上步骤后,即可通过源码运行 COS MCP Server。
⚠️ 注意事项
如果安装了旧版本的包,可以将上述内容内
cos-mcp改为cos-mcp@latest安装最新版包。如果全局安装后直接使用
cos-mcp不行,可能是全局变量有问题,可以使用拆分变量或npx的方式启动:npm install -g cos-mcp@latest cos-mcp --cos-config=xxx --port=3001 --connectType=sse上述命令效果等同于:
npx cos-mcp@latest --cos-config=xxx --port=3001 --connectType=sse如果出现解析问题,可能是终端对双引号敏感,可以将配置参数改为以下格式再尝试:
--cos-config='{\"Region\":\"yourRegion\",\"Bucket\":\"BucketName-APPID\",\"SecretId\":\"yourSecretId\",\"SecretKey\":\"yourSecretKey\",\"DatasetName\":\"datasetName\"}' --port=3001 --connectType=sse
Available Tools
18 toolsaiPicMattingD
图片处理-抠图
Inputs: objectKey (required), height, width.
aiQrcodeB
图片处理-二维码识别-识别存储桶内二维码图片内容
Inputs: objectKey (required).
aiSuperResolutionC
图片处理-超分辨率
Inputs: objectKey (required).
assessQualityC
图片处理-图片质量评估
Inputs: objectKey (required).
createDocToPdfJobC
创建文档转 pdf 处理任务
Inputs: objectKey (required).
createMediaSmartCoverJobD
创建媒体智能封面任务
Inputs: objectKey (required).
describeDocProcessJobC
根据 jobid 查询指定的文档转码任务结果
Inputs: jobId (required).
describeMediaJobB
根据 jobid 查询指定的媒体智能封面任务结果
Inputs: jobId (required).
getBucketB
查询存储桶内的文件列表
Inputs: Prefix.
getCosConfigC
获取COS配置, 腾讯云配置
Inputs: no named parameters.
getObjectC
下载存储桶内的文件
Inputs: objectKey (required).
getObjectUrlC
获取存储桶内的文件的带签名的下载链接
Inputs: objectKey (required).
imageInfoC
图片处理-获取图片信息
Inputs: objectKey (required).
imageSearchPicC
根据输入的图片,从数据集中检索出与输入的图片内容相似的图片
Inputs: uri (required).
imageSearchTextC
根据输入的文本内容,从数据集中检索出与输入的文本内容相符的图片
Inputs: text (required).
putObjectC
上传本地文件到存储桶
Inputs: filePath (required), fileName, targetDir.
putObjectSourceUrlC
通过 url下载文件并将文件上传到存储桶
Inputs: sourceUrl (required), fileName, targetDir.
waterMarkFontC
生成带文字水印的图片
Inputs: objectKey (required), text.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have distinct purposes, such as getBucket for listing files, putObject for uploading, and aiPicMatting for image matting. However, some overlap exists between imageSearchPic and imageSearchText, both involving image retrieval, which could cause minor confusion. Overall, the descriptions clarify boundaries well.
The naming is mixed with camelCase (e.g., aiPicMatting) and snake_case (e.g., get_object_url), lacking a uniform pattern. While verbs like 'create', 'describe', 'get', and 'put' are used consistently, the inconsistency in case styles reduces predictability. It remains readable but not fully standardized.
With 18 tools, the count is slightly high but reasonable for a cloud storage and processing server. It covers file operations, image processing, and media tasks without feeling overly bloated. The scope justifies most tools, though it borders on being heavy.
The server provides good coverage for COS operations, including CRUD-like actions (get, put) and advanced processing (image, media, document tasks). Minor gaps exist, such as no direct update or delete tools for objects, but agents can work around this using upload/overwrite or other methods. The surface is largely complete for the domain.
Maintenance
Related MCP Connectors
Tigris MCP Server seamlessly connects AI agents to Tigris bucket and object management.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides seamless access to multiple storage services including S3, Azure Blob Storage, and Google Cloud Storage through Apache OpenDAL™.335Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA 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.6 npm7MIT

Qiniu MCP Serverofficial
AlicenseBqualityDmaintenanceThe Model Context Protocol (MCP) Server built on Qiniu Cloud products supports users in accessing Qiniu Cloud Storage, intelligent multimedia services, and more through this MCP Server within the context of AI large model clients.2239MIT- AlicenseBqualityDmaintenanceEnables interaction with Tencent Cloud Object Storage (COS) through MCP protocol. Supports file upload, download, deletion, listing objects, and generating temporary signed URLs for cloud storage management.524 npmMIT