Connect to CloudBase MCP
After connecting via the Model Context Protocol (MCP), you can operate CloudBase services directly in your AI chat—no need to switch between your IDE and the console.
CloudBase MCP supports Local Mode (run via npx on your machine) and Hosted Mode (connect to the cloud over HTTP). In Local Mode you can configure environment variables; in Hosted Mode you can control plugins via a URL.
See Connection Modes: Local vs Hosted.
Prerequisites
Before you start, make sure you have:
Node.js and a CloudBase environment ready
Node.js: Install Node.js v18.15.0 or later:
node --version
If you don’t have it installed, download it from the Node.js website.
CloudBase environment: Follow the doc Create a CloudBase environment. New users can start for free.
Connect Your AI Tool
Pick your AI development tool and follow the setup guide:
Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.
Step 1: Install / Configure CloudBase
Install in one click:
Or manual configuration:
Or add this configuration to .cursor/mcp.json:
1{2 "mcpServers": {3 "cloudbase": {4 "command": "npx",5 "args": ["@cloudbase/cloudbase-mcp@latest"],6 "env": {7 "INTEGRATION_IDE": "Cursor"8 }9 }10 }11}Step 2: Chat with AI
Enter the following in your AI chat in order:
Install CloudBase Skills: run npx skills add tencentcloudbase/cloudbase-skills -yUse CloudBase Skills: 实现小程序与 CloudBase 的完整集成Manually Confirm Tool Calls
Most MCP clients (e.g. Cursor) will ask you to manually confirm every tool call. We recommend keeping this enabled and carefully reviewing the tool call details before execution.
Start Using It
After setup, type in your AI chat:
Log in to CloudBase
Your AI will guide you through login and environment selection. Then you can start describing requirements in natural language and let the AI build your app.
Examples
End-to-end example:
Create a todo app and deploy it
The AI can automatically: generate code, create databases, deploy cloud functions, configure static hosting, and return an access link.
Step-by-step examples:
- "Create a users table" - AI creates database collections/tables
- "Deploy this function" - AI uploads and configures cloud functions
- "Deploy the frontend to CDN" - AI uploads files and configures hosting
Detailed requirement example:
Create a todo app with:
- Add / delete / edit todos
- Store data in the cloud database
- Support marking items as completed
- Deploy to the cloud
AI Skill Scenarios
身份认证
数据库
Video Tutorials
Want to learn CloudBase MCP via videos? See tutorials and practical cases.