Quickly integrate with Tencent Cloud Storage (COS) and Data Processing (CI) capabilities powered
中文 | English
基于 MCP 协议的腾讯云 COS MCP Server,无需编码即可让大模型快速接入腾讯云存储 (COS) 和数据万象 (CI) 能力。
为了保护您的数据私密性,请准备以下参数:
mybucket-123456
ap-beijing
ap-beijing
。stdio
(本地)或 sse
(远程)。stdio
sse
时,可自由设置端口。3001
在大模型内使用时(例如: 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 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"
}
}
}
git clone https://github.com/Tencent/cos-mcp.git
cd cos-mcp
npm install
创建 .env
文件,并配置以下环境变量:
Region='yourRegion'
Bucket='yourBucket'
SecretId='yourSecretId'
SecretKey='yourSecretKey'
DatasetName="yourDatasetName"
npm run start:sse
npm run build
构建产物位于 dist/index.js
。
{
"mcpServers": {
"cos-mcp": {
"url": "http://localhost:3001/sse"
}
}
}
{
"mcpServers": {
"cos-mcp": {
"command": "node",
"args": [
"${your work space}/dist/index.js"
]
}
}
}
完成以上步骤后,即可通过源码运行 COS MCP Server。
cos-mcp
改为 cos-mcp@latest
安装最新版包。cos-mcp
不行,可能是全局变量有问题,可以使用拆分变量或 npx
的方式启动:
npm install -g cos-mcp@latest
cos-mcp --cos-config=xxx --port=3001 --connectType=sse
上述命令效果等同于:
npx cos-mcp@latest --cos-config=xxx --port=3001 --connectType=sse
--cos-config='{\"Region\":\"yourRegion\",\"Bucket\":\"BucketName-APPID\",\"SecretId\":\"yourSecretId\",\"SecretKey\":\"yourSecretKey\",\"DatasetName\":\"datasetName\"}' --port=3001 --connectType=sse
A read-only MCP server by CData that allows LLMs to query live Dropbox data. Requires the CData JDBC Driver for Dropbox.
MCP server and client for MinIO object storage, configured via environment variables.
Interact with the Intelligent Content Management platform through Box AI.
Manage AWS S3 operations, providing secure access to S3 buckets through pre-signed URLs.
Remote SSE MCP server for hosting HTML webpages and sharing content through temporary URLs without authentication
Access various storage services like S3, GCS, and Azure Blob through the Apache OpenDAL™ project, configured via environment variables.
Perform CRUD operations on a WebDAV server with basic authentication.
An MCP server for integrating with Dropbox, allowing clients to interact with files and folders.
A local server for uploading files to Alibaba Cloud Object Storage Service (OSS).
File access and search for Box.