Skip to main content

Claude Code Setup Guide

Claude Code can install the CloudBase plugin from the plugin marketplace to get MCP tool connectivity and AI Skills in one go, or connect manually via MCP configuration. The plugin marketplace approach is recommended.

After setup, you can operate CloudBase services directly from Claude Code’s chat.

Examples:

  • "Build a WeChat Mini Program ordering system with CloudBase" — AI scaffolds pages, creates the cloud database, writes cloud functions, and guides preview
  • "Build a reservation management system that lets users place orders and admins update status" — AI models it with CloudBase PostgreSQL, configures permissions, and wires up frontend and backend
  • "Add phone-number login to a Web app" — AI enables the auth method and integrates the CloudBase SDK

No need to switch to the Cloud console — you can do everything in Claude Code with natural language.

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: See Create a CloudBase environment. New users can start for free.


The plugin marketplace installs both MCP tools and AI Skills — one installation provides full capabilities.

Claude Code can install plugins from a marketplace. After installation, MCP connections and Skills are available automatically:

# Add the CloudBase plugin marketplace
claude plugin marketplace add TencentCloudBase/CloudBase-MCP

# Install the CloudBase plugin
claude plugin install cloudbase@tencent-cloudbase

After installation, run /reload-plugins in Claude Code to activate the plugin. Default --scope user makes it globally available; use --scope project to share within a team.

Method 2: Connect via MCP Configuration

If you only need MCP tool connectivity, you can also configure it manually:

Client

Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.

Step 1: Install / Configure CloudBase

Use project template (recommended) - Template includes MCP configuration and AI rulesView templates

Or add this configuration to .mcp.json:

json
1{
2 "mcpServers": {
3 "cloudbase": {
4 "command": "npx",
5 "args": ["@cloudbase/cloudbase-mcp@latest"],
6 "env": {
7 "INTEGRATION_IDE": "ClaudeCode"
8 }
9 }
10 }
11}

Step 2: Chat with AI

Enter the following in your AI chat in order:

prompt
Read https://docs.cloudbase.net/skill.md and tell me what it can do
Use CloudBase Skills: 在 Web 应用中使用 CloudBase 文档数据库实现分页查询和复杂查询功能

FAQ

Q: MCP connection failed? A: Check your .mcp.json format, ensure npx is available, and restart Claude Code.

Q: Tool count shows 0? A: See the FAQ.

More questions: Full FAQ

相关资源