home / mcp / cloudbase mcp server

CloudBase MCP Server

Provides an MCP pipeline that turns AI-generated ideas into deployed CloudBase apps with automated provisioning and deployment.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "tencentcloudbase-cloudbase-ai-toolkit": {
      "command": "npx",
      "args": [
        "@cloudbase/cloudbase-mcp@latest"
      ]
    }
  }
}

You can use the CloudBase MCP server to turn AI-generated ideas into deployed CloudBase apps with automatic provisioning, deployment, and management. This MCP streamlines the path from thinking in your AI IDE to having a live, hosted application on Tencent Cloud CloudBase, handling deployment of cloud functions, databases, static hosting, and more.

How to use

In an MCP-compatible AI IDE, configure a single MCP server entry to enable one-line access to CloudBase MCP. You typically run the MCP client and point it at the cloudbase MCP entry to start generation, deployment, and iteration end-to-end without manual DevOps steps.

How to install

Prerequisites you need before installing the MCP server are listed here so you can get started quickly.

Install the MCP client support (recommended) using npm to install the official CloudBase CLI, which enables streamlined onboarding and MCP usage.

Additional sections

Configuration is provided as a ready-to-use MCP config block you can paste into your MCP client. The server configuration uses a stdio (local) MCP entry built around npx for the CloudBase MCP package.

Security considerations include using the recommended CLI flow and ensuring you have access to your CloudBase environment and any required credentials stored securely in your IDE or environment.

Troubleshooting steps include checking deployment logs, ensuring the MCP server is reachable from your IDE, and validating that your CloudBase environment is properly initialized.

Notes: You can also use the CodeBuddy integration where CloudBase MCP is built in, so no separate configuration may be required in that particular IDE.

MCP configuration example

{
  "mcpServers": {
    "cloudbase": {
      "command": "npx",
      "args": ["@cloudbase/cloudbase-mcp@latest"]
    }
  }
}

Usage patterns and capabilities

Use the MCP to generate deployment-ready code, configure cloud resources, deploy to cloud, and obtain a live access URL. It covers web apps, mini programs, and backend services, and includes knowledge search and flexible workflow options to tailor the process to your project.

Knowledge and cases

Case studies illustrate building a real-time online game, a mini program with cloud data, and an intelligent diagnostics workflow using CloudBase MCP to automate deployment and debugging.

Available tools

Login

Authenticate your session to CloudBase and access your development environment.

EnvironmentQuery

Query your current CloudBase environments and their status.

DomainManagement

Manage custom domains and their DNS configurations.

CollectionManagement

Manage database collections and schemas.

DocumentCRUD

Create, read, update, and delete documents within collections.

IndexManagement

Create and manage database indexes for efficient queries.

DataModeling

Define data models and validation rules for collections.

CloudFunctionCreate

Create cloud functions and set triggers.

CloudFunctionUpdate

Update function code and configuration.

CloudFunctionInvoke

Invoke cloud functions and view results.

CloudFunctionLogs

Fetch and review function execution logs.

Triggers

Configure cloud function triggers and events.

StaticUpload

Upload static assets for hosting and CDN delivery.

DomainConfig

Configure domains for static hosting and apps.

SiteDeployment

Deploy static sites to hosting with CDN integration.

MiniProgramUpload

Upload and configure WeChat mini programs for deployment.

MiniProgramPreview

Preview mini programs before publishing.

MiniProgramBuild

Build mini programs for distribution.

MiniProgramConfig

Configure mini program settings for release.

MiniProgramDebug

Debug mini programs with live feedback.

KnowledgeSearch

Knowledge library and vector search for CloudBase topics.

WebKnowledgeSearch

Search knowledge related to web development on CloudBase.

ExternalSearch

Search the web for supplementary information when needed.

InteractiveChat

Provide interactive AI-assisted guidance during development.