Qiniu Cloud Storage MCP server

Integrates with Qiniu Cloud to provide object storage management, CDN operations, and image processing capabilities for applications that need to handle cloud-stored assets or perform on-the-fly image transformations
Back to servers
Provider
Qiniu
Release date
Apr 14, 2025
Language
Python
Stats
11 stars

This Python-based MCP Server allows you to access Qiniu Cloud services (storage, media processing, and CDN) within AI model chats. It enables models to interact with your cloud resources, letting you manage files, process images, and control CDN operations through natural language.

Installation Requirements

  • Python 3.12 or higher
  • uv package manager

Installing uv

# Mac (recommended)
brew install uv

# Linux & Mac
curl -LsSf https://astral.sh/uv/install.sh | sh

# Add to PATH (temporary)
export PATH="/Users/xxx/.local/bin:$PATH"

# Add to PATH (permanent)
echo 'export PATH="/Users/xxx/.local/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

For detailed installation instructions, see the uv installation guide.

Using with Cline

Setup Steps

  1. Install the Cline plugin in VSCode (adds a Cline icon to the sidebar)
  2. Configure your AI model
  3. Set up the Qiniu MCP server:
    • Click the Cline icon to open the plugin
    • Select the MCP Server module
    • Choose "installed" and click "Advanced MCP Settings"
    • Use the following configuration:
{
  "mcpServers": {
    "qiniu": {
      "command": "uvx",
      "args": [
        "qiniu-mcp-server"
      ],
      "env": {
        "QINIU_ACCESS_KEY": "YOUR_ACCESS_KEY",
        "QINIU_SECRET_KEY": "YOUR_SECRET_KEY",
        "QINIU_REGION_NAME": "YOUR_REGION_NAME",
        "QINIU_ENDPOINT_URL": "YOUR_ENDPOINT_URL",
        "QINIU_BUCKETS": "YOUR_BUCKET_A,YOUR_BUCKET_B"
      },
      "disabled": false
    }
  }
}
  1. Toggle the connection to the qiniu MCP Server
  2. Create a chat window in Cline to interact with the AI and use qiniu-mcp-server

Example Commands

  • List Qiniu resource information
  • List all buckets in Qiniu
  • List files in a specific Qiniu bucket
  • Read file content from a specific file in a bucket
  • Process an image with rounded corners at 200 pixels width
  • Refresh a CDN link: https://developer.qiniu.com/test.txt

Notes

  • You can use the same configuration in Cursor
  • For Claude, if you encounter "Error: spawn uvx ENOENT", use the absolute path to uvx in the command parameter (e.g., "/usr/local/bin/uvx")

Running Standalone

Environment Setup

Copy the environment template:

cp .env.example .env

Edit the .env file with your credentials:

# S3/Kodo authentication
QINIU_ACCESS_KEY=your_access_key
QINIU_SECRET_KEY=your_secret_key

# Region information
QINIU_REGION_NAME=your_region
QINIU_ENDPOINT_URL=endpoint_url # eg:https://s3.your_region.qiniucs.com

# Configure buckets (comma-separated, max 20 recommended)
QINIU_BUCKETS=bucket1,bucket2,bucket3

Starting the MCP Server

  1. Standard input/output mode (default):
uv --directory . run qiniu-mcp-server
  1. SSE mode (for web applications):
uv --directory . run qiniu-mcp-server --transport sse --port 8000

Testing

Using the Model Control Protocol Inspector

Highly recommended for testing:

# Requires Node.js v22.4.0
npx @modelcontextprotocol/inspector uv --directory . run qiniu-mcp-server

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later