A sample MCP server for VolcEngine TOS that flexibly get objects from TOS.
TOS 官方推出的 MCP Server 提供强大的查询能力,支持通过自然语言便捷地探索和检索 TOS 中存储的内容,提升了数据访问的直观性与效率。可以与火山引擎云产品 MCP 组合,助力构建更智能的业务应用场景。
版本 | v0.2.0 |
---|---|
描述 | 基于 MCP 管理 TOS 资源,智能化探索数据 |
分类 | 存储 |
标签 | 搜索,视频,图片,文本 |
本 MCP Server 产品提供以下 Tools (工具/能力):
SaaS
该工具允许您便捷查看火山引擎TOS的存储桶列表。
输入:
{
"inputSchema": {
"type": "object",
"required": [],
"properties": {}
},
"name": "list_buckets",
"description": "查询您账号下拥有的所有存储桶的列表。"
}
输出:
列举火山引擎 TOS 的存储桶列表。
SaaS
该工具允许您便捷查看火山引擎TOS桶下的对象列表,每次请求都会返回存储桶中的部分或全部对象(最多 1000 个)。您可以使用请求参数作为选择条件,返回存储桶中对象的子集。
输入:
{
"inputSchema": {
"type": "object",
"required": [
"bucket"
],
"properties": {
"bucket": {
"type": "string",
"description": "用户指定的存储桶名称"
},
"prefix": {
"type": "string",
"description": "可选的对象前缀"
},
"start_after": {
"type": "string",
"description": "列举对象的起始位置。您可以通过指定对象的起始位置分页列举对象"
},
"continuation_token": {
"type": "string",
"description": "指定列举操作从该 Token 开始,通常从上次请求返回的 NextContinuationToken 中获取此 Token"
}
}
},
"name": "list_objects",
"description": "查询您指定存储桶的对象列表"
}
输出:
列举火山引擎 TOS 的 example 桶下的对象。
SaaS
从 TOS 检索对象,需要指定桶名和对象的完整路径。对于文本内容的对象,比如文本文件、CSV 文件等,该工具返回的是其内容。对于图片、视频等二进制对象,该工具返回的是Base64编码的内容。
输入:
{
"inputSchema": {
"type": "object",
"required": [
"bucket",
"key"
],
"properties": {
"bucket": {
"type": "string",
"description": "用户指定的存储桶名称"
},
"key": {
"type": "string",
"description": "用户需要读取的对象名,需要指定完整的对象名"
}
}
},
"name": "get_object",
"description": "获取指定对象的内容,对于文本内容的对象,比如文本文件、CSV 文件等,该工具返回的是其内容。对于图片、视频等二进制对象,该工具返回的是Base64编码的内容。"
}
输出:
读取火山引擎 TOS 桶example下对象名为example.txt的文件内容
方舟,python,cursor
https://console.volcengine.com/tos
火山引擎,从 volcengine 管理控制台获取 volcengine 访问密钥 ID、秘密访问密钥和区域,请在.env文件中设置相关环境变量
以下环境变量可用于配置MCP服务器:
环境变量 | 描述 | 默认值 |
---|---|---|
VOLCENGINE_ACCESS_KEY | 火山引擎账号 ACCESS KEY | - |
VOLCENGINE_SECRET_KEY | 火山引擎账号 SECRET KEY | - |
VOLCENGINE_REGION | 火山引擎 TOS region | - |
TOS_ENDPOINT | 火山引擎 TOS Endpoint | - |
SECURITY_TOKEN | 火山引擎 Security Token,可选 | - |
TOS_BUCKETS | 指定访问的 TOS 桶,可选 | - |
curl -LsSf https://astral.sh/uv/install.sh | sh
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv sync
uv build
When using uv
no specific installation is needed. We will
use uvx
to directly run mcp-server-tos.
添加以下配置到你的 mcp settings 文件中
{
"mcpServers": {
"tos-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/src/mcp_server_tos",
"run",
"mcp-server-tos"
]
}
}
}
[示例如下]
[示例如下]
{
"mcpServers": {
"tos-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/volcengine/mcp-server#subdirectory=server/mcp_server_tos",
"mcp-server-tos"
],
"env": {
"VOLCENGINE_ACCESS_KEY": "your access-key-id",
"VOLCENGINE_SECRET_KEY": "your access-key-secret",
"VOLCENGINE_REGION": "tos region",
"TOS_ENDPOINT": "tos endpoint",
"SECURITY_TOKEN": "your security token",
"TOS_BUCKET": "your specific bucket"
}
}
}
}
volcengine/mcp-server is licensed under the MIT License.
by: SimonB97
MCP server for secure command-line interactions on Windows systems, enabling controlled access to PowerShell, CMD, and Git Bash shells.
by: ferrislucas
Integration with iTerm2 terminal emulator for macOS, enabling LLMs to execute and monitor terminal commands.
by: voska
Docker-ready MCP server for Home Assistant with entity management, domain summaries, automation support, and guided conversations. Includes pre-built container images for easy installation.
by: jamsocket
data-color-mode="auto" data-light-theme="light" data-dark-theme="dark"