腾讯云 COS MCP Server logo

腾讯云 COS MCP Server

Organization
Tencent

基于 MCP 协议的腾讯云 COS MCP Server,无需编码即可让大模型快速接入腾讯云存储 (COS) 和数据万象 (CI) 能力。

PublisherTencent
Repositorycos-mcp
LanguageTypeScript
Forks
14
Stars
38
Available tools
0
Transport typestdio, streamable-http
Categories
Links
  • Connect tools to AI workflows

    腾讯云 COS MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    38 stars and 14 forks from the linked repository.

中文 | English

腾讯云 COS MCP Server 🚀🚀🚀

npm Version license

基于 MCP 协议的腾讯云 COS MCP Server,无需编码即可让大模型快速接入腾讯云存储 (COS) 和数据万象 (CI) 能力。


✨ 核心功能

云端存储能力

  • ⬆️ 文件上传到云端
  • ⬇️ 文件从云端下载
  • 📋 获取云端文件列表

云端处理能力

  • 🖼️ 获取图片信息
  • 🔍 图片超分辨率
  • ✂️ 图片裁剪
  • 📲 二维码识别
  • 🏆 图片质量评估
  • 🅰️ 文字水印
  • 🎬 元数据/自然语言检索 (MateInsight)
  • 📄 文档转 PDF
  • 🎥 视频封面

💡 典型应用场景

  • 使用其他 MCP 能力获取的文本/图片/视频/音频等数据,可直接上传到 COS 云端存储。
  • 本地数据快速通过大模型转存到 COS 云端存储/备份。
  • 通过大模型实现自动化:将网页里的视频/图片/音频/文本等数据批量转存到 COS 云端存储。
  • 自动化将视频/图片/音频/文本等数据在云端处理,并转存到 COS 云端存储。

🌟 功能示例

  1. 上传文件到 COS
    eg1
  2. 图片质量评估
    eg3
  3. 自然语言检索图片
    eg2
  4. 视频截帧
    eg15

🔧 安装使用

参数说明

为了保护您的数据私密性,请准备以下参数:

1. SecretId / SecretKey

  • 说明: 腾讯云 COS 的密钥,用于身份认证,请妥善保管,切勿泄露。
  • 获取方式:
    1. 访问 腾讯云密钥管理。
    2. 新建密钥并复制生成的 SecretId 和 SecretKey。

2. Bucket

  • 示例: mybucket-123456
  • 说明: 存储桶名称,用于存放数据,相当于您的个人存储空间。
  • 获取方式:
    1. 访问 存储桶列表。
    2. 复制存储桶名称。如果没有存储桶,可点击“创建存储桶”,一般选择默认配置即可快速完成创建。

3. Region

  • 示例: ap-beijing
  • 说明: 存储桶所在的地域。
  • 获取方式:
    1. 在 存储桶列表 中找到存储桶。
    2. 在存储桶名称一行查看所属地域并复制,例如:ap-beijing。

4. DatasetName

  • 说明: 非必填参数,数据智能检索操作需要此参数。
  • 获取方式:
    1. 访问 数据集管理。
    2. 创建数据集并等待索引建立完成后,复制数据集名称。

5. connectType

  • 说明: 非必填参数,指定连接方式,可选值为 stdio(本地)或 sse(远程)。
  • 默认值: stdio

6. port

  • 说明: 非必填参数,当连接方式为 sse 时,可自由设置端口。
  • 默认值: 3001

从 npx 启动

在大模型内使用时(例如: cursor),需要在 mcp.json 中配置:

json
{
  "mcpServers": {
    "cos-mcp": {
      "command": "npx",
      "args": [
        "cos-mcp",
        "--Region=yourRegion",
        "--Bucket=yourBucket",
        "--SecretId=yourSecretId",
        "--SecretKey=yourSecretKey",
        "--DatasetName=yourDatasetname"
      ]
    }
  }
}

也可以通过 JSON 配置:

json
{
  "mcpServers": {
    "cos-mcp": {
      "command": "npx",
      "args": [
        "cos-mcp",
        "--cos-config='{\"Region\":\"yourRegion\",\"Bucket\":\"yourBucket\",\"SecretId\":\"yourSecretId\",\"SecretKey\":\"yourSecretKey\",\"DatasetName\":\"yourDatasetname\"}'"
      ]
    }
  }
}

使用 npm 安装

bash
# 安装
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 中配置:

json
{
  "mcpServers": {
    "cos-mcp": {
      "url": "http://localhost:3001/sse"
    }
  }
}

使用源码安装

步骤 1: 克隆项目代码

bash
git clone https://github.com/Tencent/cos-mcp.git
cd cos-mcp

步骤 2: 安装依赖

bash
npm install

步骤 3: 启动服务

3.1 配置本地环境变量

创建 .env 文件,并配置以下环境变量:

env
Region='yourRegion'
Bucket='yourBucket'
SecretId='yourSecretId'
SecretKey='yourSecretKey'
DatasetName="yourDatasetName"

3.2 本地 SSE 模式启动(方式一)

bash
npm run start:sse

3.3 本地构建后使用 STDIO 模式(方式二)

bash
npm run build

构建产物位于 dist/index.js。


步骤 4: 在大模型内使用

SSE 模式配置

json
{
  "mcpServers": {
    "cos-mcp": {
      "url": "http://localhost:3001/sse"
    }
  }
}

STDIO 模式配置

json
{
  "mcpServers": {
    "cos-mcp": {
      "command": "node",
      "args": [
        "${your work space}/dist/index.js"
      ]
    }
  }
}

完成以上步骤后,即可通过源码运行 COS MCP Server。


⚠️ 注意事项

  1. 如果安装了旧版本的包,可以将上述内容内 cos-mcp 改为 cos-mcp@latest 安装最新版包。
  2. 如果全局安装后直接使用 cos-mcp 不行,可能是全局变量有问题,可以使用拆分变量或 npx 的方式启动:
    bash
    npm install -g cos-mcp@latest
    cos-mcp --cos-config=xxx --port=3001 --connectType=sse
    上述命令效果等同于:
    bash
    npx cos-mcp@latest --cos-config=xxx --port=3001 --connectType=sse
  3. 如果出现解析问题,可能是终端对双引号敏感,可以将配置参数改为以下格式再尝试:
    bash
    --cos-config='{\"Region\":\"yourRegion\",\"Bucket\":\"BucketName-APPID\",\"SecretId\":\"yourSecretId\",\"SecretKey\":\"yourSecretKey\",\"DatasetName\":\"datasetName\"}' --port=3001 --connectType=sse

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "tencent-cos-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cos-mcp"
      ]
    }
  }
}

Use 腾讯云 COS MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 腾讯云 COS MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add 腾讯云 COS MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the 腾讯云 COS MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "tencent-cos-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cos-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 腾讯云 COS MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the 腾讯云 COS MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 腾讯云 COS MCP Server to help me with this task?
腾讯云 COS MCP Server
Sure. I read it.
Here is what I found using 腾讯云 COS MCP Server.

Option 2: Add an MCP server URL

Use this when 腾讯云 COS MCP Server is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for 腾讯云 COS MCP Server.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the 腾讯云 COS MCP Server connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the 腾讯云 COS MCP Server tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the 腾讯云 COS MCP Server tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 腾讯云 COS MCP Server to help me with this task?
腾讯云 COS MCP Server
Sure. I read it.
Here is what I found using 腾讯云 COS MCP Server.

Frequently asked questions

What is the 腾讯云 COS MCP Server MCP server used for?

腾讯云 COS MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use 腾讯云 COS MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 腾讯云 COS MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use 腾讯云 COS MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With 腾讯云 COS MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 腾讯云 COS MCP Server MCP to TypingMind?

腾讯云 COS MCP Server can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does 腾讯云 COS MCP Server MCP provide in TypingMind?

腾讯云 COS MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use 腾讯云 COS MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 腾讯云 COS MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇