基于 MCP 协议的腾讯云 COS MCP Server,无需编码即可让大模型快速接入腾讯云存储 (COS) 和数据万象 (CI) 能力。
中文 | English{:target=“_blank”}
基于 MCP 协议的腾讯云 COS MCP Server,无需编码即可让大模型快速接入腾讯云存储 (COS) 和数据万象 (CI) 能力。




为了保护您的数据私密性,请准备以下参数:
mybucket-123456ap-beijingap-beijing。stdio(本地)或 sse(远程)。stdiosse 时,可自由设置端口。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
Mcp Server Ftp
Model Context Protocol server for FTP access
Mcp Crypto Price
A Model Context Protocol (MCP) server that provides real-time cryptocurrency analysis via CoinCap's API. Enables Claude and other MCP clients to fetch crypto prices, analyze market trends, and track historical data.
Mac Shell Mcp
An MCP (Model Context Protocol) server for executing macOS terminal commands with ZSH shell. This server provides a secure way to execute shell commands with built-in whitelisting and approval mechanisms.
Enhanced FileSystem MCP server
MCP server that enables MCP to make REST API calls
An MCP tool server that provides a stateful terminal.
This Model Context Protocol (MCP) server enables LLMs like Claude to perform internet research using the Perplexity API. It provides real-time, up-to-date information with source citations.