@tencentcloud/chatsdk-mcp
v1.0.3
Published
Tencent Cloud MCP Server for ChatSDK
Readme
Tencent ChatSDK Model Context Protocol (MCP) Server for Cursor IDE
This repository provides a CLI-based Model Context Protocol (MCP) server that exposes Tencent SDK documentation and Tencent API resources to LLM-powered tools. This improves the LLM AI Agent's ability to understand and interact with Tencent's SDKs and APIs.
Features
- MCP server exposing tools for interacting with Tencent via JSON-RPC over STDIN/STDOUT.
- MCP server supports SSE Mode by supplying
HTTP_PORTenvironment variable. - Retrieve official Tencent ChatSDK documentation (HTML → Markdown) for:
- Languages: JavaScript, Java, Swift, Objective-C, Kotlin.
- API reference sections: configuration, chat function.
- Retrieve official Tencent TUIKit SDK documentation (HTML → Markdown) for:
- TUIKit SDK languages: JavaScript, Kotlin, Swift.
- TUIKit SDK topics: configuration, chat function.
- Converts remote HTML articles to Markdown using
jsdomandturndownfor consistent documentation formatting. - Input validation via Zod schemas for all tool parameters, ensuring robust error handling.
- Extensible tool definitions leveraging the Model Context Protocol SDK (
@modelcontextprotocol/sdk) withMcpServerandStdioServerTransport.
Prerequisites
- Node.js (>= 18) and npm
- Cursor IDE with MCP support
How To Use
To set up the @tencentcloud/chatsdk-mcp MCP Server, follow these steps:
- Step1: Installation.
npx -y @tencentcloud/chatsdk-mcp- Step2: In your Cursor project, create or open the
.cursor/mcp.jsonor~/.cursor/mcp.jsonfiles and add your config.
{
"mcpServers": {
"tencentcloud-chatsdk-mcp": {
"command": "npx",
"args": ["-y", "@tencentcloud/chatsdk-mcp"]
}
}
}When you save the file, a notification is displayed. In the prompt, click Enable.

- Step3: Navigate to Cursor Settings (the gear icon in top right corner) -> MCP, and check if tencentcloud-sdk-mcp server is enabled.

Step4: Ask the AI agent to build your Tencentcloud sdk app for you by describing the functionality yourself or by using a sample prompt.
[!WARNING] Make sure to use the Agent mode. Depending on your Cursor rules, you may also need to explicitly ask the AI agent to use the Tencentcloud sdk-mcp server.
