Skip to main content
Glama
TOS MCP Server
by jneless

火山引擎 对象存储 TOS 非官方 MCP工具

  • TOS 非官方 MCP 工具

快速开始

macOS 从零开始配置

1. 安装必要依赖

# 安装 Homebrew(如果还没有)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# 安装 Python 3(如果还没有)
brew install python@3.12

# 安装 uv(Python 包管理器)
curl -LsSf https://astral.sh/uv/install.sh | sh

# 重新加载 shell 配置
source ~/.zshrc  # 如果使用 zsh
# 或
source ~/.bash_profile  # 如果使用 bash

2. 方式一:直接从 GitHub 使用(推荐,无需克隆)

使用 uvx 可以直接从 GitHub 运行,无需克隆仓库:

# 直接运行(会自动从 GitHub 下载和安装)
uvx --from git+https://github.com/jneless/tos-mcp.git tos-mcp-server

3. 方式二:克隆到本地使用

如果需要修改代码或本地开发:

# 克隆项目
git clone https://github.com/jneless/tos-mcp.git
cd tos-mcp

# 自动安装依赖
uv sync

# 运行服务器
uv run tos-mcp-server

环境变量配置

复制环境变量模板:

cp .env.example .env

编辑 .env 文件并填入配置,或者设置环境变量:

export TOS_ACCESS_KEY="your_access_key"
export TOS_SECRET_KEY="your_secret_key"
export TOS_REGION="cn-beijing"
export TOS_ENDPOINT="https://tos-cn-beijing.volces.com"

Related MCP server: Tencent Cloud COS MCP Server

MCP 配置

方式一:直接从 GitHub 安装(推荐,无需克隆仓库)

Cline 或其他 MCP 客户端的配置文件中添加:

{
  "mcpServers": {
    "tos-mcp-server": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/jneless/tos-mcp.git", "tos-mcp-server"],
      "env": {
        "TOS_ACCESS_KEY": "your-access-key",
        "TOS_SECRET_KEY": "your-secret-key",
        "TOS_REGION": "cn-beijing",
        "TOS_ENDPOINT": "https://tos-cn-beijing.volces.com"
      }
    }
  }
}

环境变量配置说明

  • TOS_ACCESS_KEY: 火山引擎访问密钥 ID

  • TOS_SECRET_KEY: 火山引擎访问密钥 Secret

  • TOS_REGION: TOS 服务区域(如 cn-beijing)

  • TOS_ENDPOINT: TOS 服务端点(可选,如果不设置会根据 region 自动生成)

API 测试状态

API 名称

功能描述

分类

测试状态

测试环境

备注

tos_create_bucket

创建存储桶

桶管理

✅ 已测试

Cline

-

tos_list_buckets

列举存储桶

桶管理

✅ 已测试

Cline

-

tos_get_bucket_meta

获取存储桶元数据

桶管理

✅ 已测试

Cline

-

tos_delete_bucket

删除存储桶

桶管理

✅ 已测试

Cline

-

tos_put_object

上传对象

对象管理

✅ 已测试

Cline

-

tos_get_object

下载对象

对象管理

✅ 已测试

Cline

-

tos_list_objects

列举对象

对象管理

✅ 已测试

Cline

-

tos_delete_object

删除对象

对象管理

✅ 已测试

Cline

-

tos_presigned_url

生成预签名URL

预签名

✅ 已测试

Cline

-

tos_image_process

基础图片处理

图片处理

✅ 已测试

Cline

回写,并提供 URL 下载

tos_image_info

获取图片信息

图片处理

✅ 已测试

Cline

-

tos_video_snapshot

视频截帧

视频处理

✅ 已测试

Cline

-

tos_video_info

获取视频信息

视频处理

✅ 已测试

Cline

回写,并提供 URL 下载

测试图片

Cline 配置测试

创建bucket

list bucket

删除 bucket

获取 bucket 元数据

生成预签名 url

下载TOS文件 到本地

上传本地文件 到TOS

列举桶内对象

删除文件

获取图片元信息

图像处理,并回写,生成 presign url

视频截帧,并回写,生成 presign url

TOS 文档

Appendix

Available Tools

13 tools
tos_create_bucketC

创建 TOS 存储桶

Inputs: bucket_name (required), acl.

tos_delete_bucketC

删除 TOS 存储桶

Inputs: bucket_name (required).

tos_delete_objectC

删除 TOS 对象

Inputs: bucket_name (required), object_key (required).

tos_get_bucket_metaC

获取存储桶元数据

Inputs: bucket_name (required).

tos_get_objectC

从 TOS 下载对象

Inputs: bucket_name (required), object_key (required), return_as_base64.

tos_image_infoC

获取图片信息

Inputs: bucket_name (required), object_key (required).

tos_image_processC

图片处理(组合操作,支持多种处理参数)

Inputs: bucket_name (required), object_key (required), process (required), save_bucket (required), +1 more.

tos_list_bucketsB

列举 TOS 存储桶

Inputs: no named parameters.

tos_list_objectsC

列举 TOS 对象

Inputs: bucket_name (required), delimiter, max_keys, prefix.

tos_presigned_urlC

生成预签名 URL

Inputs: bucket_name (required), object_key (required), expires, method.

tos_put_objectC

上传对象到 TOS

Inputs: bucket_name (required), content (required), object_key (required), content_type, +1 more.

tos_video_infoC

获取视频信息

Inputs: bucket_name (required), object_key (required).

tos_video_snapshotC

视频截帧(支持持久化)

Inputs: bucket_name (required), object_key (required), save_bucket (required), save_key (required), +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 13 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific TOS operations like bucket management, object handling, media processing, and URL generation. There is no overlap or ambiguity between tools, as each name precisely indicates its function (e.g., tos_list_buckets vs. tos_list_objects, tos_image_info vs. tos_video_info).

    Naming Consistency5/5

    All tools follow a consistent 'tos_verb_noun' pattern with snake_case throughout, such as tos_create_bucket, tos_get_object, and tos_image_process. This predictable naming convention makes it easy for agents to understand and select the appropriate tool without confusion.

    Tool Count5/5

    With 13 tools, the set is well-scoped for a TOS (object storage) server, covering essential operations like CRUD for buckets and objects, listing, metadata retrieval, media processing, and URL generation. Each tool earns its place without feeling excessive or insufficient for the domain.

    Completeness5/5

    The tool surface provides complete coverage for TOS operations, including full CRUD for buckets and objects, lifecycle management (e.g., delete, list), media-specific functions (image/video info and processing), and utility features like presigned URLs. There are no obvious gaps that would hinder agent workflows in this domain.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Enables AI models to interact with Akave's S3-compatible storage by providing tools for managing storage buckets and objects through standardized Model Context Protocol (MCP).
      13
      28 npm
      3
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables 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.
      5
      24 npm
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables interaction with AWS S3 through MCP, supporting bucket and object management, lifecycle configurations, tagging, policies, CORS settings, presigned URLs, and file uploads/downloads.
      3
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      Enables natural language exploration and management of Volcengine TOS storage, allowing users to list buckets, browse objects, and retrieve file contents. It supports content retrieval for various data types including text, images, and video files.
      3
      1
      -