cos-mcp
v1.1.1基于MCP协议的腾讯云COS MCP Server,无需编码即可让大模型快速接入腾讯云存储(COS)和数据万象(CI)能力
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
getCosConfig
获取COS配置, 腾讯云配置
putObject
上传本地文件到存储桶
| Parameter | Type | Description |
|---|---|---|
filePath * | string | 文件路径 (包含文件名) |
fileName | string | 文件名 (存在存储桶里的名称) |
targetDir | string | 目标目录 (存在存储桶的哪个目录) |
putString
上传字符串内容到存储桶
| Parameter | Type | Description |
|---|---|---|
content * | string | 要上传的字符串内容 |
fileName * | string | 文件名 (存在存储桶里的名称) |
contentType | string | 内容类型,如 text/plain, application/json 等,默认为 text/plain |
targetDir | string | 目标目录 (存在存储桶的哪个目录) |
putBase64
上传base64编码内容到存储桶
| Parameter | Type | Description |
|---|---|---|
base64Content * | string | base64编码的内容 |
fileName * | string | 文件名 (存在存储桶里的名称) |
contentType | string | 内容类型,如 image/png (图片), application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document (文档) 等,如果base64带头部则默认自带的头部否则默认… |
targetDir | string | 目标目录 (存在存储桶的哪个目录) |
putBuffer
上传buffer内容到存储桶
| Parameter | Type | Description |
|---|---|---|
content * | string | buffer内容字符串 |
fileName * | string | 文件名 (存在存储桶里的名称) |
contentType | string | 内容类型,如 image/png, application/pdf 等,默认为 application/octet-stream |
encoding | string | 字符串编码格式,默认为utf8。hex=十六进制,base64=Base64编码,utf8=UTF-8文本,ascii=ASCII文本,binary=二进制 |
targetDir | string | 目标目录 (存在存储桶的哪个目录) |
putObjectSourceUrl
通过 url下载文件并将文件上传到存储桶
| Parameter | Type | Description |
|---|---|---|
sourceUrl * | string | 可下载的文件 url |
fileName | string | 文件名 (存在存储桶里的名称) |
targetDir | string | 目标目录 (存在存储桶的哪个目录) |
getObjectUrl
获取存储桶内的文件的带签名的下载链接
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 文件的路径 |
getObject
下载存储桶内的文件
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 文件的路径 |
getBucket
查询存储桶内的文件列表
| Parameter | Type | Description |
|---|---|---|
Prefix | string | 文件列表的路径前缀,默认根路径 |
imageInfo
图片处理-获取图片信息
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
assessQuality
图片处理-图片质量评估
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
aiSuperResolution
图片处理-超分辨率
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
aiPicMatting
图片处理-抠图
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
height | string | 高度 |
width | string | 宽度 |
aiQrcode
图片处理-二维码识别-识别存储桶内二维码图片内容
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | COS对象键(完整路径)示例: images/qrcode.jpg |
waterMarkFont
生成带文字水印的图片
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | COS对象键(完整路径)示例: images/photo.jpg |
text | string | 水印文字内容(支持中文) |
createMediaSmartCoverJob
创建媒体智能封面任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 对象在存储桶里的路径 |
describeMediaJob
根据 jobid 查询指定的媒体智能封面任务结果
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 要查询的任务ID,可通过提交智能封面任务的响应中获取。 |
imageSearchPic
根据输入的图片,从数据集中检索出与输入的图片内容相似的图片
| Parameter | Type | Description |
|---|---|---|
uri * | string | 图片地址 |
imageSearchText
根据输入的文本内容,从数据集中检索出与输入的文本内容相符的图片
| Parameter | Type | Description |
|---|---|---|
text * | string | 检索的文本 |
createDocToPdfJob
创建文档转 pdf 处理任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 对象在存储桶里的路径 |
describeDocProcessJob
根据 jobid 查询指定的文档转码任务结果
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 要查询的任务ID,可通过提交文档任务的响应中获取。 |
copyObject
复制对象到当前存储桶
| Parameter | Type | Description |
|---|---|---|
copySource * | string | 源对象地址,格式: <Bucket>.cos.<Region>.myqcloud.com/<sourceKey> |
objectKey * | string | 复制到当前桶的目标路径 |
headObject
获取存储桶内文件的元信息(大小、类型、ETag、存储类型等)
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 文件的路径 |
listBuckets
列出当前账号下的所有存储桶
| Parameter | Type | Description |
|---|---|---|
region | string | 地域,不传则查询全部 |
imageThumbnail
图片处理-缩放,处理结果存回存储桶
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
height | string | 目标高度(像素) |
width | string | 目标宽度(像素) |
imageCrop
图片处理-裁剪,处理结果存回存储桶
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
gravity | string | 裁剪重心,如 center/north/south/east/west,默认 center |
height | string | 裁剪高度,默认300 |
width | string | 裁剪宽度,默认300 |
imageRotate
图片处理-旋转,处理结果存回存储桶
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
degree | string | 旋转角度,默认90 |
imageFormat
图片处理-格式转换(webp/png/jpg/avif/heif/tpg),处理结果存回存储桶
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
format | string | 目标格式,默认 webp |
recognizeImage
内容识别-图片标签识别
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
ocrGeneral
内容识别-OCR文字识别
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
type | string | 识别类型,默认 general(通用印刷体) |
getMediaInfo
媒体处理-获取音视频文件信息(时长、码率、编码等)
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 媒体文件在存储桶里的路径 |
mediaSnapshot
媒体处理-视频截帧
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 视频在存储桶里的路径 |
format | string | 截图格式,默认 jpg |
time | string | 截帧时间点(秒),默认1 |
createMediaTranscodeJob
媒体处理-创建视频转码任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 视频在存储桶里的路径 |
format | string | 目标封装格式,默认 mp4 |
docPreviewHtmlUrl
文档处理-获取文档在线预览HTML链接(带签名)
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 文档在存储桶里的路径 |
expires | number | 链接有效期(秒),默认3600 |
auditImage
内容审核-图片同步审核(鉴黄/广告/违法违规等)
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
createImageAuditJob
内容审核-创建图片异步审核任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 图片在存储桶里的路径 |
createVideoAuditJob
内容审核-创建视频审核任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 视频在存储桶里的路径 |
createAudioAuditJob
内容审核-创建音频审核任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 音频在存储桶里的路径 |
createTextAuditJob
内容审核-创建文本审核任务(content 与 objectKey 二选一)
| Parameter | Type | Description |
|---|---|---|
content | string | 待审核的文本内容 |
objectKey | string | 待审核文本文件在存储桶里的路径 |
createDocumentAuditJob
内容审核-创建文档审核任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 文档在存储桶里的路径 |
describeAuditJob
内容审核-查询审核任务结果
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 审核任务ID |
type | string | 审核类型,默认 image |
createSpeechRecognitionJob
智能语音-创建语音识别任务(音频转文字)
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 音频在存储桶里的路径 |
engine | string | 引擎模型类型,默认 16k_zh_video |
createTtsJob
智能语音-创建语音合成任务(文字转语音)
| Parameter | Type | Description |
|---|---|---|
text * | string | 待合成的文本 |
codec | string | 音频编码格式,默认 mp3 |
voiceType | string | 音色,默认 ruxue |
createNoiseReductionJob
智能语音-创建音频降噪任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 音频在存储桶里的路径 |
createVoiceSeparateJob
智能语音-创建人声分离任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 音频在存储桶里的路径 |
fileHash
文件处理-计算文件哈希值
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 文件在存储桶里的路径 |
hashType | string | 哈希算法,默认 md5 |
createFileCompressJob
文件处理-创建文件压缩任务(将指定前缀的文件打包)
| Parameter | Type | Description |
|---|---|---|
format | string | 压缩格式,默认 zip |
objectKey | string | 压缩包输出路径,不填自动生成 |
prefix | string | 要压缩的目录前缀,默认 / |
createFileUncompressJob
文件处理-创建文件解压任务
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | 压缩包在存储桶里的路径 |
prefix | string | 解压输出目录前缀 |
describeFileJob
文件处理-查询压缩/解压任务结果
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 文件处理任务ID |
listDatasets
智能检索-列出所有数据集
| Parameter | Type | Description |
|---|---|---|
maxResults | number | 返回数量上限,默认100 |
prefix | string | 数据集名称前缀过滤 |
createDataset
智能检索-创建数据集
| Parameter | Type | Description |
|---|---|---|
name * | string | 数据集名称 |
description | string | 数据集描述 |
template | string | 模板,如 Official:COSBasicMeta(元数据) / Official:ImageSearch(以图搜图) / Official:FaceSearch(人脸) / Official:DocSearch(文档),默认 Official:COSBasicMeta |
describeDataset
智能检索-查询数据集详情(含统计信息)
| Parameter | Type | Description |
|---|---|---|
name * | string | 数据集名称 |
createDatasetBinding
智能检索-绑定存储桶到数据集
| Parameter | Type | Description |
|---|---|---|
name * | string | 数据集名称 |
mode | number | 索引模式:1=存量索引(默认) 0=仅增量索引 |
uri | string | 绑定的桶,格式 cos://<Bucket>,默认当前桶 |
describeDatasetBindings
智能检索-查询数据集的绑定关系
| Parameter | Type | Description |
|---|---|---|
name * | string | 数据集名称 |
createFileMetaIndex
智能检索-为文件创建元数据索引
| Parameter | Type | Description |
|---|---|---|
name * | string | 数据集名称 |
uri * | string | 文件地址,格式 cos://<Bucket>/<path> |
customId | string | 自定义ID |
mediaType | string | 媒体类型,如 image/video/document |
describeFileMetaIndex
智能检索-查询文件元数据索引
| Parameter | Type | Description |
|---|---|---|
name * | string | 数据集名称 |
uri * | string | 文件地址,格式 cos://<Bucket>/<path> |
datasetSimpleQuery
智能检索-元数据简单查询(条件筛选/排序)
| Parameter | Type | Description |
|---|---|---|
datasetName | string | 数据集名称,不填使用启动配置的 DatasetName |
maxResults | number | 返回数量上限,默认100 |
order | string | 排序方向,默认 desc |
query | object | 查询条件,如 {"Operation":"eq","Field":"ContentType","Value":"image/jpeg"} |
sort | string | 排序字段 |
hybridSearch
智能检索-多模态检索,可用于知识库文档语义检索
| Parameter | Type | Description |
|---|---|---|
text * | string | 检索文本 |
datasetName | string | 数据集名称,不填使用启动配置的 DatasetName |
filter | object | 过滤条件(JSON对象) |
limit | number | 返回条数,默认10 |
offset | number | 偏移量,默认0 |
templates | string | 检索模板,默认 DocSearch |