CloudBase

Developer toolsDatabases

CloudBase MCP: DB, functions, storage, hosting via @cloudbase/cloudbase-mcp.

Your AI app calls the CloudBase MCP server, which does the developer tools and databases work and sends the result back to the chat.

About CloudBase

CloudBase is a community MCP server from TencentCloudBase, filed in our directory under developer tools and databases. CloudBase MCP: DB, functions, storage, hosting via @cloudbase/cloudbase-mcp.

CloudBase runs on your own machine: your AI app starts it with the command npx -y @cloudbase/cloudbase-mcp@2.38.0 and talks to it over standard input and output.

CloudBase is listed in the official MCP registry as io.github.TencentCloudBase/cloudbase-mcp, version 2.38.0.

At a glance

Publisher
TencentCloudBase (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @cloudbase/cloudbase-mcp
Written in
TypeScript
License
MIT
GitHub stars
1,176
Official MCP registry
io.github.TencentCloudBase/cloudbase-mcp

How to set up CloudBase

  1. Install Node.js on the machine that runs your AI app, because CloudBase starts with npx and downloads its package on first run.
  2. Check the CloudBase README for keys or settings; the registry lists none that CloudBase requires.
  3. Add CloudBase to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the CloudBase tools to confirm the connection.
  5. Run one read-only task with CloudBase first, and keep your app asking before each tool call until the results look right.

CloudBase compared with similar servers

  • UniFi Access by sirkirby has fewer GitHub stars than CloudBase (1.2k against 1.2k); both are community servers, and both run locally.
  • Ref Tools by ref-tools has more GitHub stars than CloudBase (1.2k against 1.2k); both are community servers, and both run locally.
  • UniFi Network by sirkirby has fewer GitHub stars than CloudBase (1.2k against 1.2k); both are community servers, and both run locally.

Before you connect CloudBase

  • Give CloudBase its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each CloudBase tool call until you trust what it does with them.
  • Treat text that CloudBase fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for CloudBase on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for CloudBase

How marketing and sales teams put CloudBase to work, by company size. Pick the size closest to yours and start CloudBase on one use case.

Small business

  • A small business with a developer can use CloudBase to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask CloudBase to explain and fix a marketing site issue without context switching between tools.
  • A small business with its own app can ask CloudBase plain questions about customers and orders, without writing SQL.
  • CloudBase runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use CloudBase to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect CloudBase to keep scripts and automations documented and versioned as they change.
  • Marketing analysts can connect CloudBase to answer campaign questions from the warehouse directly, instead of waiting on the data team's queue.
  • Start CloudBase on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out CloudBase with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on CloudBase so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises should point CloudBase at a read replica with a read-only role, so agents query freely without risk to production data.
  • CloudBase is a community server, so have security review the code and pin a version before CloudBase touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

CloudBase README

From TencentCloudBase/CloudBase-AI-Toolkit on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@cloudbase/cloudbase-mcp

MCP Server for Tencent CloudBase. Part of CloudBase AI Toolkit.

Operate CloudBase from AI coding tools: login, databases, functions, storage, hosting, and logs, via the Model Context Protocol.

English · 简体中文 · Toolkit README · Docs (docs.cloudbase.net/ai/cloudbase-ai-toolkit) · Changelog · Issues

What this package is

@cloudbase/cloudbase-mcp is the npm distribution of the CloudBase MCP Server. It is one piece of the Toolkit:

Piece Role
Plugin Installs MCP + Skills + Hooks together
Agent Skills Scenario skills toward workable CloudBase practice
MCP (this package) Tools the agent calls to act on your CloudBase environment

Prefer Plugin when your IDE supports it. Use this package alone when you only need MCP config.

Full Toolkit narrative, related repos, and IDE matrix: repository README.

Quick start

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

First prompts:

Login to CloudBase
Use CloudBase Skills to build a todo app with login, database and permissions, then deploy

You need a CloudBase environment and should confirm sensitive actions the AI proposes.

Other install paths
Path When
Official MCP Registry io.github.TencentCloudBase/cloudbase-mcp Discover via registry search=cloudbase
npx plugins add TencentCloudBase/cloudbase-plugin Open Plugin Spec tools
Marketplace / built-in plugin Claude Code, Codex, CodeBuddy, WorkBuddy, Doubao, MiniMax Code, DeepSeek Harness, Kimi Code, Kimi Work, ZCode, etc.

Already using CloudBase CLI? tcb ai sets up MCP and Skills too (docs (docs.cloudbase.net/cli-v1/ai/introduce)).

Connection modes

Remote (recommended): your IDE connects over HTTP to Tencent Cloud MCP. No local Node, and interactive clients finish authorization in the browser.

Site MCP endpoint
China (domestic) https://tcb-api.cloud.tencent.com/mcp/v1
International https://tcb-api.tencentcloud.com/mcp/v1

Pick the endpoint matching the site your environment lives in, the two sites use separate accounts and credentials.

OAuth (interactive, recommended): the URL is the whole configuration, your IDE opens the browser for login and consent, and you pick the environment there. No keys land in config files, and there is nothing to rotate.

{
  "mcpServers": {
    "cloudbase": {
      "type": "http",
      "url": "https://tcb-api.cloud.tencent.com/mcp/v1"
    }
  }
}

Static credentials (for a client without OAuth, and for CI/CD): append env_id and a key pair created on the same site as the endpoint.

{
  "mcpServers": {
    "cloudbase": {
      "type": "http",
      "url": "https://tcb-api.cloud.tencent.com/mcp/v1?env_id=<env_id>",
      "headers": {
        "X-TencentCloud-SecretId": "<Tencent Cloud Secret ID>",
        "X-TencentCloud-SecretKey": "<Tencent Cloud Secret Key>"
      }
    }
  }
}

A static key pair stays valid until it is rotated or deleted; an OAuth session ends when you log out. Use the static form only where the browser flow is impossible, and keep it out of a repository.

Local: runs npx -y @cloudbase/npm-launcher@1.3.0 @cloudbase/cloudbase-mcp@latest on your machine, full features, including local filesystem upload and template download. Requires Node.js v18.15.0+.

Remote trade-off: local-filesystem features (upload, template download) are unavailable, and the international site does not yet expose NoSQL tools.

Remote URLs accept site for one case only, a China-site environment in ap-singapore, where the region is ambiguous, plus enable_plugins / disable_plugins (comma-separated). Canonical plugin names: see src/server.ts in this package (e.g. env, database, functions, hosting, storage, pg_database, cloudrun, logs, feedback).

Self-hosted Cloud Mode: set CLOUDBASE_MCP_CLOUD_MODE=true (or MCP_CLOUD_MODE=true) so local file and process tools are disabled for remote callers.

Scenario Suggestion
Personal / fastest start Remote URL (OAuth)
Need local file features Local npx
CI / automation Remote + static credentials
Self-hosted MCP Cloud Mode required
Site & region

Set TCB_SITE (domestic / intl) to select the login/credential site, and TCB_REGION for API routing. The domestic and international sites are separate account systems. ap-singapore exists on both, so domestic-site Singapore users must set TCB_SITE=domestic; otherwise it defaults to intl. Project-level .cloudbase/project.json ({ site, region, envId }) is also supported.

In remote mode the site is determined by the endpoint host itself, tcb-api.cloud.tencent.com is the China site, tcb-api.tencentcloud.com is the international site, and there is no site query parameter to set. This holds for a China-site environment in ap-singapore too: keep using the China-site endpoint. Self-hosted Cloud Mode deployments can still use the TCB_SITE environment variable.

MCP Apps panels (off by default)

auth, queryEnv and the deploy tools can render MCP Apps panels (ui://cloudbase/*) in hosts that support them. Panels are off by default (experimental): set CLOUDBASE_MCP_UI=on to register the ui:// resources and let those tools carry _meta.ui; without the flag no ui:// resource is registered and the server declares no io.modelcontextprotocol/ui extension.

Hosts that cannot render them are unaffected in practice, resources/list stays empty (the panels are ResourceTemplates without a list), so nothing new appears in a resource browser, and every tool keeps returning the same JSON text it did before. The flag only decides whether panels are offered.

Turn it on with CLOUDBASE_MCP_UI=on (also accepts 1 / true / yes / enabled). Leaving it unset, or any other value, including a typo such as of, means off, so a misspelled value never silently enables panels you meant to keep disabled. Tools behave identically either way.

Capabilities

Typical backend work in your environment (confirm critical steps):

  • Database: PostgreSQL and document DB, data models, CRUD, permissions
  • Compute: cloud functions / Cloud Run, author, deploy, invoke, debug
  • Auth & storage: login methods, object storage, permission linkage
  • Release & ops: static hosting / Mini Program publish; logs and redeploy

Tool catalog: MCP tools · tools.json

Confirmations before destructive calls

Deleting a cloud function, a collection, the documents in one, a stored file, a CloudRun service or a MySQL instance now pauses the call until you answer a dialog that names the target, "about to delete the cloud function hello (env env-abc)", instead of asking a bare "are you sure?". The same deletes pause when they arrive as callCloudApi, but only for an explicit service + Action pair: DeleteFunction on tcb or scf, tcb.DeleteTable, tcb.DeleteItem, tcb.DestroyEnv, tcb.DestroyPlatformEnv, tcb.DestroyMySQL, tcbr.DeleteCloudRunServer, and tcbr.DeleteCloudRunVersions when IsDeleteServer is true. A Delete prefix does not confirm other cloud APIs. Cloud storage deletes do not go through callCloudApi. PostgreSQL execute / applyMigration pause only when the SQL itself is DELETE, DROP, TRUNCATE or ALTER … DROP; INSERT, UPDATE and CREATE TABLE do not. It is built on MCP form elicitation, so it can only appear where the client declares that capability and actually asks the user.

Situation What happens
The client asks the user You get the dialog; the call runs only after you pick "delete"
The client is in a full-access / never-ask mode It answers on its own within a few milliseconds. That is treated as "you were not asked", and the call proceeds
The client cannot render forms No dialog, and the call proceeds, the behaviour is the same as before this change
You decline, dismiss it, or answer nothing for 45s Nothing is executed, and the result says so without being marked as an error, so a model does not retry the same deletion

A declined call is not a failure: the tool returns "not executed" plus what to do instead. Two environment variables change the handling, and neither of them bypasses authentication, permissions or read-only limits, they only decide whether the question is asked:

Variable Effect
CLOUDBASE_MCP_SKIP_ELICITATIONS Comma-separated. Accepts a tool name (manageFunctions, callCloudApi) or a single action (manageFunctions.deleteFunction, callCloudApi.tcb.DeleteFunction), case-sensitive, no wildcard. Unknown entries are logged and ignored rather than failing the server
CLOUDBASE_MCP_ELICIT_AUTO_APPROVE allow (default) proceeds when the client answers for itself; block treats that case as not confirmed

A client's own tool-approval prompt is not this confirmation: it asks "may this tool run?", not "is this the resource you want to delete?".

Credential-shaped arguments: one real check before writing

When a call's arguments contain something shaped like a credential, a three-part JWT, or a cb_secret_… / cb_publishable_… key, the server asks the client for one check before writing: compare the value against your original source and confirm. The message deliberately carries no plaintext: only the total length, the segment lengths (for a JWT), and a fingerprint (the first 12 hex characters of sha256). That is enough to notice a value that was changed while being copied or transcribed, and nothing that would put the secret into the conversation or into the logs.

What this is not. We do not decide whether the credential is valid. There is no signature verification, no certs/JWKS lookup, no network request of any kind, and no server-side comparison, the server never sees the value you originally pasted, so the only side that can compare it is the client. This is a request for a real confirmation at write time, not a validity check.

Boundaries. It only applies when the arguments actually contain a credential-shaped string (otherwise the call is unchanged: one shallow scan, no network). It only applies when the client supports interactive form elicitation; a client that cannot ask proceeds as before, so an unattended client is not blocked. And a check that returns within a few hundred milliseconds counts as "nobody looked at it": unlike the deletion confirmation, where a client answering for itself is treated as "you were not asked" and the call proceeds, a credential write is not executed, because a value nobody compared is exactly the case this guards against. When the guard declines, the result says "not executed" without being marked as an error, so a model does not retry it blindly.

Variable Effect
CLOUDBASE_MCP_SKIP_CREDENTIAL_GUARD Comma-separated. Accepts a tool name (manageCloudRun) or a single action (manageCloudRun.updateConfig), case-sensitive, no wildcard. Unknown entries are logged and ignored rather than failing the server

Environment panel (MCP Apps)

The panel is off by default (experimental). Set CLOUDBASE_MCP_UI=on to enable it. Where the client declares the io.modelcontextprotocol/ui extension, auth also opens a panel (ui://cloudbase/get-started). It consumes the structured result that this auth call already returned and shows the connection status: region, scope, and the environment ID. Signed-out users get a sign-in action. When no environment is bound, clicking a row binds it.

The panel does not touch cloud resources, but it is not a read-only surface. It makes two kinds of calls:

  • auth(status), read-only, fired by "Re-check".
  • auth(set_env), fired when you click an environment row. It only rebinds the local environment for this session (an environment-scoped API key still cannot reach another environment), but it changes which environment every subsequent tool call uses, so pick the row deliberately.

Every other action just hands a sentence to the conversation. A result that carries a credentials block (for example auth(get_temp_credentials) with reveal) does not open "View raw response", so that fold never shows the key.

Clients that do not render MCP Apps are unaffected: auth keeps the same title, description, arguments and output, and resources/list stays empty, so nothing new appears in a resource browser.

IDE config snippets

Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "cloudbase": {
      "command": "npx",
      "args": ["-y", "@cloudbase/npm-launcher@1.3.0", "@cloudbase/cloudbase-mcp@latest"]
    }
  }
}
WindSurf (.windsurf/settings.json)
{
  "mcpServers": {
    "cloudbase": {
      "command": "npx",
      "args": ["-y", "@cloudbase/npm-launcher@1.3.0", "@cloudbase/cloudbase-mcp@latest"]
    }
  }
}
CodeBuddy

CloudBase is built in; manual MCP config is usually unnecessary.

Others: IDE setup.

Docs

License

MIT · TencentCloudBase

Questions about CloudBase

What is the CloudBase MCP server?

CloudBase MCP: DB, functions, storage, hosting via @cloudbase/cloudbase-mcp. CloudBase is maintained by TencentCloudBase on GitHub at TencentCloudBase/CloudBase-AI-Toolkit, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the CloudBase MCP server?

Add CloudBase to your AI app's MCP config with the command npx -y @cloudbase/cloudbase-mcp@2.38.0. In Claude Code, run claude mcp add --transport stdio tencentcloudbase -- npx -y @cloudbase/cloudbase-mcp@2.38.0. To run CloudBase this way you need Node.js installed.

Does CloudBase need an API key?

The registry lists no required keys for CloudBase. Check the CloudBase README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is CloudBase an official MCP server?

No. CloudBase is a community server maintained by TencentCloudBase. Community servers can be excellent; read the code and the open issues before you give CloudBase access to company data.

What license is CloudBase under?

CloudBase is released under the MIT license, according to its GitHub repository. The license covers the code of CloudBase; the service it connects to has its own terms.