Overview
What is MCP Server Tencent?
MCP Server Tencent is a Spring Boot 3.x and Spring AI based server that integrates with Tencent Cloud AI services, providing a unified interface calling capability via the Model Context Protocol (MCP). It is intended for developers who need to connect MCP clients (e.g., AI assistants) to Tencent AI APIs.
How to use MCP Server Tencent?
Clone the repository, obtain a valid Tencent Cloud login cookie, and either set it as an environment variable (TENCENT_API_COOKIE) or pass it via command-line argument (--tencent.api.cookie). Then compile with Maven and run the JAR file. The server operates over stdio, so it must be launched as a subprocess by an MCP client configured with the appropriate Java command and arguments.
Key features of MCP Server Tencent
- Integrates Tencent Cloud AI services through a single MCP interface
- Built on Spring Boot 3.4.5 and Spring AI 1.0.0-M6
- Configurable via environment variables, command-line args, or YAML
- Authentication using Tencent Cloud login cookie
- Supports custom MCP categories via
tencent.api.categories
Use cases of MCP Server Tencent
- Connecting an MCP-enabled AI assistant to Tencent Cloud AI capabilities
- Building custom automation that queries Tencent AI APIs via a standardized protocol
- Deploying a local gateway for Tencent AI services in development environments
FAQ from MCP Server Tencent
What dependencies are required to run MCP Server Tencent?
JDK 17 or higher, Maven 3.6+ for building, and a valid Tencent Cloud login cookie for authentication. Runtime dependencies include Spring Boot, Spring AI, fastjson, Retrofit2, and Jackson.
How do I authenticate with Tencent Cloud?
Authentication uses a Tencent Cloud login cookie. You can pass it via command-line argument (--tencent.api.cookie=...), environment variable (TENCENT_API_COOKIE), or in application.yml under tencent.api.cookie.
Where does MCP Server Tencent store logs?
Logs are written to data/log/mcp-server-tencent.log in the working directory.
Are there any known limits or security considerations?
The cookie contains sensitive information and must never be committed to version control. Cookies may expire periodically and require renewal. The server uses stdio transport, so it must be launched by an MCP client.
What transport protocol does MCP Server Tencent use?
It uses standard input/output (stdio) as the MCP transport. Enable it with the JVM argument -Dspring.ai.mcp.server.stdio=true.