CloudBase AI ToolKit is an MCP (Model Context Protocol) server that enables AI-assisted development with Tencent CloudBase. It allows you to automatically generate, deploy, and host full-stack web applications, mini programs, databases, and backend services.
CloudBase MCP server integrates with AI coding tools to provide seamless deployment to Tencent CloudBase. This integration helps you quickly develop and deploy applications without managing infrastructure.
Before using the CloudBase MCP server, ensure you have:
Install the CloudBase MCP server in your project by adding it to your AI development tool's MCP configuration:
npx @cloudbase/cloudbase-mcp@latest
Depending on which AI coding tool you use, you'll need to add the CloudBase MCP configuration to your project.
Add the following to .cursor/mcp.json
:
{
"mcpServers": {
"cloudbase-mcp": {
"command": "npx",
"args": ["@cloudbase/cloudbase-mcp@latest"]
}
}
}
Add the following to .vscode/mcp.json
:
{
"servers": {
"cloudbase": {
"command": "npx",
"args": [
"@cloudbase/cloudbase-mcp@latest"
]
}
}
}
Add this to your WindSurf Plugins configuration:
{
"mcpServers": {
"cloudbase-mcp": {
"command": "npx",
"args": ["@cloudbase/cloudbase-mcp@latest"]
}
}
}
Most AI coding tools support similar configuration patterns. Add the CloudBase MCP server with:
{
"mcpServers": {
"cloudbase": {
"command": "npx",
"args": ["@cloudbase/cloudbase-mcp@latest"]
}
}
}
Once you've configured the MCP server, you can start using it with simple commands in your AI tool:
Log in to CloudBase:
login to CloudBase
The AI will help you authenticate with Tencent CloudBase and select an environment.
To logout:
logout from CloudBase
Query your current CloudBase environment:
query current CloudBase environment information
Create a multiplayer online chess game with real-time updates
The AI will:
Debugging: If you encounter errors, share them with the AI:
I'm getting an error: [error message]
The AI can analyze CloudBase function logs and help debug issues:
The cloud function isn't working as expected. Please check the logs and fix it.
CloudBase MCP uses a plugin architecture to provide tools for different aspects of development. Enable specific plugins by configuring environment variables:
{
"env": {
"CLOUDBASE_MCP_PLUGINS_ENABLED": "env,database,functions,hosting"
}
}
Available plugins include:
You can disable anonymous usage statistics by setting:
{
"env": {
"CLOUDBASE_MCP_TELEMETRY_DISABLED": "true"
}
}
If you encounter installation problems related to npx caching:
npx clear-npx-cache
If tools show as quantity 0 after installation:
For more troubleshooting help, refer to the FAQ documentation.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "cloudbase-mcp" '{"command":"npx","args":["-y","@cloudbase/cloudbase-mcp@latest"]}'
See the official Claude Code MCP documentation for more details.
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.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cloudbase-mcp": {
"command": "npx",
"args": [
"-y",
"@cloudbase/cloudbase-mcp@latest"
]
}
}
}
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.
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"cloudbase-mcp": {
"command": "npx",
"args": [
"-y",
"@cloudbase/cloudbase-mcp@latest"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect