# Tencent CloudBase / TCB MCP

> Tencent CloudBase / TCB MCP gives your AI client direct access to China's major serverless platform. It lets you run cloud functions, query NoSQL databases, and manage storage resources without logging into the console. Your agent can audit environments and execute complex backend logic through natural conversation.

## Overview
- **Category:** industry-titans
- **Price:** Free
- **Tags:** serverless, baas, cloud-functions, backend-orchestration, database-auditing, api-management

## Description

Tencent CloudBase is a massive BaaS platform for running complicated backends, and this MCP connects your AI client right into its core systems. You don't have to click through endless menus in the Tencent Console anymore. Instead, you talk to your agent about what you need—like checking the status of a specific function or querying user data—and it handles the whole process. It turns complicated infrastructure management and resource auditing into a simple conversation.

If you are working with Miniapp backends or running high-volume automation in China, this MCP is built for that complexity. You can ask your agent to list all available functions, check which collections hold user data, or even trigger complex cloud logic using custom parameters. It gives your AI client the same operational oversight a human DevOps engineer gets, but through simple language commands. Connect this powerful backend tool via Vinkius and keep working in your preferred environment.

## Tools

### get_environment_info
Checks the overall status, region, and quota usage for your entire TCB project environment.

### get_function_metadata
Fetches specific details, like runtime and parameters, for a single listed cloud function.

### invoke_cloud_function
Runs a specified cloud function immediately, allowing you to test or execute live backend logic with custom data inputs.

### list_auth_users
Grabs a list of every authenticated user registered in the TCB environment's system.

### list_cloud_functions
Retrieves a list of every cloud function defined within the current environment.

### list_collections
Shows all NoSQL database collections available for querying data within your project.

### list_tcb_buckets
Lists every storage bucket used by the environment, helping you track file resources.

### query_cloud_db
Allows you to run complex database queries against your NoSQL collections using specific criteria.

## Prompt Examples

**Prompt:** 
```
List all cloud functions in our 'prod-8821' environment.
```

**Response:** 
```
I've retrieved the cloud function list for environment `prod-8821`. You have 12 active functions, including 'OrderProcessor' (Node.js 16) and 'UserSync' (Python 3.7). Would you like me to trigger one of these functions for you?
```

**Prompt:** 
```
Query the 'Users' collection for all documents where 'status' is 'active'.
```

**Response:** 
```
I've executed the database query on the 'Users' collection. I found 45 active users. Should I retrieve the full details for the first few users or check your remaining storage quota?
```

**Prompt:** 
```
Show me the configuration and quota usage for our TCB environment.
```

**Response:** 
```
I've retrieved your environment summary. Your TCB instance is running in 'ap-shanghai' and is currently 'NORMAL'. You have used 45% of your free storage quota and 12% of your monthly function invocations. Would you like me to audit your VPC settings?
```

## Capabilities

### Audit Environment Health
Check overall project status, monitor resource quotas, and verify the connection details for your TCB environment.

### Manage Backend Logic (Functions)
List all available cloud functions, retrieve detailed metadata on specific functions, or trigger them to run with custom input data.

### Query Structured Data
See which database collections exist and execute complex queries against your cloud NoSQL user data.

### Monitor Storage Resources
List all storage buckets used by the project and audit the file resources within that environment.

## Use Cases

### Debugging a failing payment microservice
A developer suspects the nightly payment processing failed. They ask their agent, which uses 'list_cloud_functions', identifies the correct function name, and then runs 'get_function_metadata' to check its latest error logs before finally using 'invoke_cloud_function' to test a manual rerun.

### Auditing user data access
An ops engineer needs to know if the marketing team accessed any specific user profiles. They run 'list_collections' to confirm the 'UserProfiles' collection exists, then use 'query_cloud_db' with status filters to pull only active records.

### Checking overall project stability
A team lead wants a quick health check before a major deployment. They prompt their agent for 'environment info', which immediately reports the current region, quota usage, and whether the environment is stable enough to proceed.

### Verifying storage integrity
The team needs to know if old log files are taking up too much space. They use 'list_tcb_buckets' to see all containers, then ask their agent to check the file resources within a specific bucket.

## Benefits

- Stop hunting through the Tencent Console. Instead of manually navigating multiple tabs to check resource usage, asking your agent for 'environment info' instantly gives you a summary of quotas and status.
- Need to test backend logic? You don't have to deploy code just to check it. Use 'invoke_cloud_function' to run specific functions right through chat with custom inputs.
- Auditing user data is fast. Instead of writing complex SQL queries in a separate tool, you simply list collections and then use 'query_cloud_db' to pull exactly the records you need.
- It keeps everything centralized. You can check your status ('get_environment_info'), see all available code paths ('list_cloud_functions'), and manage storage buckets—all in one chat window.
- This saves time on repetitive tasks like user tracking. Running 'list_auth_users' provides a clean list of every registered user, so you don't need to export CSVs.

## How It Works

The bottom line is you get to manage your entire serverless backend through chat prompts instead of clicking through multiple complex web dashboards.

1. Subscribe to this MCP, providing your Tencent Cloud SecretId, SecretKey, Region, and EnvId.
2. Connect your AI client (like Claude or Cursor) through the Vinkius marketplace using these credentials.
3. Ask your agent a natural language question, such as 'What are my active users?' or 'Run the payment processing function.' The MCP executes the necessary tools and returns the result.

## Frequently Asked Questions

**How do I list all the microservices in my TCB environment?**
Run the 'list_cloud_functions' tool. This provides a complete roster of every function available, which lets you see what services are currently active.

**Can I query user data using the Tencent CloudBase / TCB MCP?**
Yes. You first use 'list_collections' to find the right database, and then you run 'query_cloud_db' with specific criteria to pull records.

**What if I need to test a function without deploying it?**
You can bypass deployment by using the 'invoke_cloud_function' tool. This lets your agent execute existing logic directly and pass custom data inputs for testing purposes.

**Does this MCP help me check my usage limits?**
Absolutely. The 'get_environment_info' tool gives you a real-time summary of quotas, letting you monitor your storage and function invocation limits.