home / mcp / tencent cos mcp server
腾讯云COS MCP服务器
Configuration
View docs{
"mcpServers": {
"156554395-tx-cos-mcp": {
"command": "node",
"args": [
"your-absolute-path/tx-cos-mcp/index.js"
],
"env": {
"COS_BUCKET": "YOUR_BUCKET",
"COS_DOMAIN": "YOUR_DOMAIN",
"COS_REGION": "YOUR_REGION",
"COS_SECRET_ID": "YOUR_SECRET_ID",
"COS_SECRET_KEY": "YOUR_SECRET_KEY"
}
}
}
}You run a Tencent COS MCP server built on Node.js that enables COS file uploads, large-file handling, object management, temporary URLs, and folder operations for IDEs like Claude Desktop, Cursor, and Windsurf. It is designed to be easy to attach to your MCP client, providing secure access to COS storage with practical features and MCP protocol compatibility.
You connect to the MCP server from your editor or IDE by configuring an MCP server entry that points to a local stdio server or to an npm/pnpm-based execution. Once the MCP server is running, you can perform operations such as uploading files, listing objects, generating signed URLs, creating folders, and moving or deleting objects through your editor’s MCP client. The server exposes a rich set of endpoints for common COS actions and automatic handling of large files, retries, and progress reporting.
Prerequisites: you need Node.js installed if you run the local server, and a modern MCP-compatible editor or IDE. The following steps install dependencies, set up environment variables for COS, and start the local MCP server for debugging.
# Clone the project
git clone https://github.com/156554395/tx-cos-mcp.git
cd tx-cos-mcp
# Install dependencies
pnpm install
# Configure environment variables
export COS_SECRET_ID=your-secret-id
export COS_SECRET_KEY=your-secret-key
export COS_REGION=your-region
export COS_BUCKET=your-bucket
export COS_DOMAIN=your-custom-domain.com
# Start the debug server
pnpm inspectorYour editor can load the MCP server using one of the following stdio configurations. These snippets invoke the server locally and supply the required COS credentials via environment variables.
{
"mcpServers": {
"tx-cos-mcp": {
"command": "node",
"args": ["your-absolute-path/tx-cos-mcp/index.js"],
"env": {
"COS_SECRET_ID": "your-secret-id",
"COS_SECRET_KEY": "your-secret-key",
"COS_REGION": "your-region",
"COS_BUCKET": "your-bucket",
"COS_DOMAIN": "your-custom-domain.com"
}
}
}
}{
"mcpServers": {
"tx-cos-mcp": {
"command": "npx",
"args": ["-y", "tx-cos-mcp@latest"],
"env": {
"COS_SECRET_ID": "your-secret-id",
"COS_SECRET_KEY": "your-secret-key",
"COS_REGION": "your-region",
"COS_BUCKET": "your-bucket",
"COS_DOMAIN": "your-custom-domain.com"
},
"transportType": "stdio"
}
}
}Single-file upload to COS, including optional object key and custom domain
Batch file uploads to COS with optional object keys for each file
Generate a time-limited URL to access a COS object with an optional expiration
List objects in the bucket with optional prefix filtering and folder view
Delete a single object by key
Copy an object to a target key/bucket
Move an object to a target key/bucket
Rename an object by changing its key
Delete multiple objects by providing a list of keys
Create a new folder/path in the bucket
Delete a folder with optional recursive deletion
List folders and objects under a given prefix
Get statistics for a folder, including size and object count
Large file upload with chunking, progress, and concurrency controls
Query ongoing or past upload session progress
Clean up stored upload progress data
Manage temporary files and cache used during uploads