tencent cloud

Tencent Real-Time Communication

Configure MCP Server

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-11-26 17:04:00
MCP delivers TRTC technical knowledge, package pricing and purchase consultation, and AI solutions with UI integration. You can ask questions in natural language within your AI editor and receive answers directly sourced from official Tencent Cloud documentation, including one-click code generation for seamless integration.
Note:
MCP 1.9.0 introduces package pricing and purchase consultation. Inquiries regarding package purchases, version pricing, capability lists, billing rules, and more are answered with structured responses featuring price, supported capabilities, version limitations, and official purchase page links. Supported packages include CallKit, LiveKit, RoomKit component packages, and TRTC basic packages. You can search for packages based on specific scenarios, capability needs, or budget constraints.

Three Key Advantages

Traceable Answers: All responses are sourced from official documentation with reference links. No reliance on model training data; undocumented content will be clearly marked. APIs and parameters are never fabricated.
Package Pricing and Billing: Get details on available packages, pricing, supported features, and billing rules, with links to purchase and activate a package.
SDK and API Documentation: Find documentation for UI components, client SDK APIs, server APIs, callbacks, and billing setup in one place.

Capability List

Capability
Capability Description
Example
Knowledge Consultation
Query packages based on scenario and capability requirements.
“@tencent-rtc Which LiveKit package supports cross-room PK?”
Query packages based on budget, with version restrictions provided.
“@tencent-rtc Which CallKit package supports AI noise suppression within a budget of $600?”
Query pricing and capability list for a specified package version.
“@tencent-rtc How much is the RoomKit Standard package, and how many participants per room does it support?”
Query knowledge related to RoomKit.
“@tencent-rtc How to choose between UI-less and UI-included solutions for Vue3 TUIRoomKit?”
Query knowledge related to LiveKit.
“@tencent-rtc How can a voice chat room admin take the 0th mic slot?”
Query knowledge related to CallKit.
“@tencent-rtc Does CallKit offer a video dating solution?”
Query knowledge related to WebRTC SDK and plugins.
“@tencent-rtc How to use the BasicBeauty plugin for skin smoothing, whitening, and rosiness in TRTC Web SDK?”
Error Troubleshooting
Diagnose common issues such as initialization failure, silent users on mic, error codes, etc.
“@tencent-rtc On iOS AtomicXCore, audience can't hear the host after joinLive in voice chat room. How to troubleshoot?”
Test Credentials
Generate a debug UserSig based on SDKAppID + SecretKey.
“@tencentcloud-sdk-mcp Generate a userSig for userID test01.”
Code Integration
MCP identifies the framework (Vue3/Android/iOS/Flutter/uni-app) based on context and generates broadcaster page, viewer page, and link-mic entry.
“@tencent-rtc Help me integrate LiveKit voice chat room in my iOS project”
MCP identifies Vue3 framework based on context and generates meeting entry page, meeting room page, and route registration, supporting screen sharing.
“@tencent-rtc Help me integrate RoomKit video conference in my Vue3 project”
MCP identifies Vue3/React/Android/iOS/Flutter framework based on context and generates call initiation and incoming call handling pages.
“@tencent-rtc Help me integrate CallKit audio/video call component in my Flutter project”

Prepare Account and Credentials

Create an application in the Tencent Cloud Console and obtain the following credentials (Trial use is supported without configuring SDKAppID if you have not created an application.):
Credential
Usage
Where to Obtain
SDKAppID
MCP environment variable, required for basic queries.
SecretKey
MCP environment variable, required when MCP generates test userSig.

Configure MCP

Configuration Methods

Configure MCP in your AI editor (Cursor / Codex / Claude Code CLI / Claude Desktop / CodeBuddy / Trae, etc.).
Cursor
Codex
Claude Code CLI
Claude Desktop
CodeBuddy
Trae
Click Settings > select Tools & MCP > Add Custom MCP > open the mcp.json file and configure as follows:
{
"mcpServers": {
"tencent-rtc": {
"command": "npx",
"args": ["-y", "@tencent-rtc/mcp@latest"],
"env": {
"SDKAPPID": "YOUR_SDKAPPID",
"SECRETKEY": "YOUR_SECRET_KEY"
}
}
}
}
1. Run the following command to configure MCP, replacing SDKAPPID and SECRETKEY with your actual application information.
codex mcp add tencent-rtc \\
--env SDKAPPID=YOUR_SDK_APP_ID --env SECRETKEY=YOUR_SECRET_KEY \\
-- npx -y @tencent-rtc/mcp@latest
For project-level configuration, add --scope project to write to the project root directory .mcp.json.
2. Run codex mcp list to verify MCP configuration. If tencent-rtc appears in the list, configuration is successful.
1. Run the following command to configure MCP, replacing SDKAPPID and SECRETKEY with your actual application information.
claude mcp add tencent-rtc \\
--env SDKAPPID=YOUR_SDK_APP_ID --env SECRETKEY=YOUR_SECRET_KEY \\
-- npx -y @tencent-rtc/mcp@latest
For project-level configuration, add --scope project to write to the project root directory .mcp.json.
2. Run claude mcp list to verify MCP configuration. If tencent-rtc appears in the list, configuration is successful.
Click Settings > select Developer > Edit Config > claude_desktop_config.json, configure as follows:
{
"mcpServers": {
"tencent-rtc": {
"command": "npx",
"args": ["-y", "@tencent-rtc/mcp@latest"],
"env": {
"SDKAPPID": "YOUR_SDKAPPID",
"SECRETKEY": "YOUR_SECRET_KEY"
}
}
}
}
Click Settings > select MCP > Configure MCP > open the mcp.json file and configure as follows:
{
"mcpServers": {
"tencent-rtc": {
"command": "npx",
"args": ["-y", "@tencent-rtc/mcp@latest"],
"env": {
"SDKAPPID": "YOUR_SDKAPPID",
"SECRETKEY": "YOUR_SECRET_KEY"
}
}
}
}
Click Settings > select MCP > Manually Add MCP > Raw Configuration (JSON) > open the mcp.json file and configure as follows:
{
"mcpServers": {
"tencent-rtc": {
"command": "npx",
"args": ["-y", "@tencent-rtc/mcp@latest"],
"env": {
"SDKAPPID": "YOUR_SDKAPPID",
"SECRETKEY": "YOUR_SECRET_KEY"
}
}
}
}

Environment Variables

SDKAPPID: TRTC application ID for real-time audio/video.
SECRETKEY: The secret key corresponding to SDKAPPID, used to generate test userSig.

Configuration Verification

After saving the configuration, if you see tencent-rtc displayed as Connected (green) in the IDE's MCP panel, installation is successful.

Quick Start Guide

Quick Activation Tips:
Add the @tencent-rtc prefix when asking questions to bypass generic intent search and directly access the latest official SDK and UI component capabilities for faster, more accurate responses.
Precise Activation (Recommended): “@tencent-rtc Help me integrate RoomKit video conference in my Vue3 project”
General Inquiry: “Help me integrate RoomKit video conference in my Vue3 project”

Knowledge Consultation

Copy the following prompt into your IDE dialog to access knowledge consultation features:
@tencent-rtc Help me check the Vue3 LiveKit integration guide, including sample code.

Live Interaction Integration

Copy the following prompt into your IDE dialog to integrate live interaction using LiveKit components or the UI-less Core SDK:
Task: @tencent-rtc Integrate LiveKit into the current project (get the basic video live streaming flow running first)

Execution Requirements:
1. Automatically detect framework (Web Vue3/Flutter/Android/iOS).
2. If unable to detect, call `present_framework_choice` for user selection.
3. Invoke MCP tools by platform:
- Web: `get_web_live_uikit_integration`
- Native: `get_native_livekit_core_integration`
4. Parameter: `framework`.
5. Call `get_usersig` to complete initialization and login.
6. Generate broadcaster page, viewer page, and basic interaction entry.

Acceptance Checklist:
- Broadcaster can start streaming
- Viewer can watch
- Basic interaction available (e.g., link-mic entry)

Common Troubleshooting:
- Black screen: Check device permissions and rendering initialization
- No sound: Check audio permissions and device routing

Video Conference Integration

Copy the following prompt into your IDE dialog to integrate Web Vue3 RoomKit video conferencing:
Task: @tencent-rtc Integrate RoomKit into the current project (get quick-start mode running first)

Execution Requirements:
1. Automatically detect framework (Web Vue3).
2. If unable to detect, call `present_framework_choice` for user selection.
3. Invoke MCP tools by platform:
- Web: `get_web_room_uikit_integration`
4. Parameter: `framework`.
5. Call `get_usersig` to complete initialization and login.
6. Generate meeting entry page, meeting room page, and route registration.

Acceptance Checklist:
- Device check is normal
- Able to join meeting and see audio/video
- Screen sharing available (if platform supports)

Common Troubleshooting:
- Room entry failure: Check roomId and login status
- No video/no audio: Check camera and microphone permissions

Audio/Video Call Integration

Copy the following prompt into your IDE dialog to integrate CallKit audio/video calls:
Task: @tencent-rtc Integrate CallKit into the current project (get 1v1 voice and video call running first)

Execution Requirements:
1. Automatically detect framework (React/Vue3/Flutter/Android/iOS).
2. If unable to detect, call `present_framework_choice` for user selection.
3. Invoke MCP tools by platform:
- Web: `get_web_call_uikit_integration`
- Native: `get_native_call_uikit_integration`
4. Parameter: `framework`.
5. Call `get_usersig` to complete initialization and login.
6. Generate minimal runnable call entry and incoming call handling page.

Acceptance Checklist:
- Initialization and login successful
- Able to initiate 1v1 video call
- Able to receive and answer incoming calls

Common Troubleshooting:
- 60001: Regenerate userSig
- Call failure: Check network and device permissions

FAQs

How do I resolve connection failures when configuring @tencent-rtc/mcp@latest in Cursor IDE?

If MCP fails to connect in Cursor, this may be caused by npx cache issues. Run the following command in your terminal to clear the cache, then reload and reconnect MCP.
rm -rf ~/.npm/_npx && npm cache verify

Appendix: Global Manual Installation

To install globally, run the following command in your terminal:
npx -y @tencent-rtc/mcp@latest

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백