
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
tencent-cos-mcp
Advanced tools
一个基于 Node.js 的 Model Context Protocol (MCP)服务器,为 Claude Desktop、Cursor 和 Windsurf 等 IDE 提供腾讯云对象存储(COS)功能。
# 直接运行,无需安装
npx tencent-cos-mcp
# 全局安装
npm install -g tencent-cos-mcp
# 运行服务器
tencent-cos-mcp
# 克隆项目
git clone https://github.com/156554395/tencent-cos-mcp.git
cd tencent-cos-mcp
# 安装依赖
npm install
# 启动服务器
npm start
服务器通过环境变量读取腾讯云 COS 配置:
在 MCP 兼容编辑器中配置:
{
"command": "npx",
"args": ["-y","tencent-cos-mcp"],
"env": {
"COS_SECRET_ID": "your-secret-id",
"COS_SECRET_KEY": "your-secret-key",
"COS_REGION": "ap-chengdu",
"COS_BUCKET": "your-bucket",
"COS_DOMAIN": "your-custom-domain.com"
}
}
# 通过环境变量启动
COS_SECRET_ID=your-id \
COS_SECRET_KEY=your-key \
COS_REGION=ap-chengdu \
COS_BUCKET=your-bucket \
npx -y tencent-cos-mcp
| 变量名 | 必需 | 说明 | 示例 |
|---|---|---|---|
COS_SECRET_ID | ✅ | 腾讯云 Secret ID | AKIDxxx... |
COS_SECRET_KEY | ✅ | 腾讯云 Secret Key | xxx... |
COS_REGION | ✅ | COS 地域 | ap-beijing, ap-shanghai |
COS_BUCKET | ✅ | 存储桶名称 | my-bucket-1234567890 |
COS_DOMAIN | ❌ | 自定义域名 | cdn.example.com |
{
"file_path": "/path/to/local/file.jpg", // 必需:本地文件路径
"object_key": "images/file.jpg", // 可选:COS中的对象键
"custom_domain": "cdn.example.com" // 可选:自定义域名
}
{
"files": [
{
"file_path": "/path/to/file1.jpg",
"object_key": "images/file1.jpg" // 可选
},
{
"file_path": "/path/to/file2.png" // 使用文件名作为对象键
}
]
}
{
"object_key": "images/file.jpg", // 必需:COS对象键
"expire_time": 3600 // 可选:过期时间(秒),默认1小时
}
{
"prefix": "images/" // 可选:对象键前缀过滤
}
{
"object_key": "images/file.jpg" // 必需:要删除的对象键
}
在~/Library/Application Support/Claude/claude_desktop_config.json中添加:
{
"mcpServers": {
"tencent-cos-mcp": {
"command": "npx",
"args": ["y","tencent-cos-mcp"],
"env": {
"COS_SECRET_ID": "your-secret-id",
"COS_SECRET_KEY": "your-secret-key",
"COS_REGION": "ap-chengdu",
"COS_BUCKET": "your-bucket",
"COS_DOMAIN": "your-custom-domain.com"
}
}
}
}
在设置中添加 MCP 服务器配置,使用相同的 JSON 格式。
参考官方文档配置 MCP 服务器,使用上述配置参数。
# 查看版本
npx tencent-cos-mcp --version
# 测试配置
COS_SECRET_ID=xxx COS_SECRET_KEY=xxx COS_REGION=ap-chengdu COS_BUCKET=test npx tencent-cos-mcp
# 开发模式
npm run dev
# 发布到npm (维护者)
npm run publish
tencent-cos-mcp/
├── index.js # MCP服务器主入口
├── src/
│ ├── cosService.js # COS SDK封装服务
│ └── config.js # 配置管理
├── config-examples/ # 配置示例
├── package.json # 项目配置
└── README.md # 项目文档
@modelcontextprotocol/sdk - MCP 协议实现cos-nodejs-sdk-v5 - 腾讯云 COS 官方 SDKgit checkout -b feature/new-feature)git commit -am 'Add new feature')git push origin feature/new-feature)MIT License - 查看LICENSE文件了解详情。
FAQs
腾讯云COS MCP服务器 - 基于Node.js的Model Context Protocol服务器,提供腾讯云对象存储服务功能
The npm package tencent-cos-mcp receives a total of 0 weekly downloads. As such, tencent-cos-mcp popularity was classified as not popular.
We found that tencent-cos-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.