XMZ MCP Server

XMZ MCP Server

Enables AI models to interact with Tencent Cloud COS for cloud storage operations (upload, download, list files) and advanced media processing capabilities (image super-resolution, QR code recognition, video thumbnails, document conversion, and natural language-based file search).

Category
Visit Server

README

XMZ MCP Server 🚀🚀🚀

npm Version license

<p align="center"> <img alt="logo" src="./src/img/logo.png"/> </p>

基于 MCP 协议的XMZ MCP Server,无需编码即可让大模型快速接入多种服务。


✨ 核心功能

云端存储能力

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

云端处理能力

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

💡 典型应用场景

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

🌟 功能示例

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

🔧 安装使用

参数说明

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

1. SecretId / SecretKey

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

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 中配置:

{
  "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://cnb.cool/XMZZUZHI/mcp
cd mcp

步骤 2: 安装依赖

yarn nstall

步骤 3: 启动服务

3.1 配置本地环境变量

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

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

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

yarn start:sse

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

yarn 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"
      ]
    }
  }
}

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured