Tencent MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Tencent MCP Server
Production-oriented Model Context Protocol (MCP) gateway for Tencent Cloud. Tencent MCP exposes the installed Tencent Cloud SDK through one policy-checked, audited MCP endpoint, with embedded Grafana and Loki observability.
Architecture
MCP client
|
| Streamable HTTP :8000/mcp
v
Tencent MCP container
|- MCP tools and Tencent SDK
|- deny-by-default safety policy
|- human approval API for mutating SQL
|- audit JSONL + Loki :3100 (internal)
`- Grafana :5000
|
v
Tencent Cloud APIsThe default deployment is a single Docker image:
MCP endpoint:
http://127.0.0.1:8000/mcpHealth and administration endpoints: port
8000Grafana dashboards:
http://127.0.0.1:5000Loki: internal port
3100, not host-published
See the architecture and policy document for the component diagram, data flow, service/action rules, and approval precedence.
Related MCP server: Aegis
Capabilities
Generic Tencent Cloud access
call_tencent_apicalls actions from the installed Tencent SDK.list_tencent_servicesdiscovers supported services.list_service_actionsdiscovers versions and actions for a service.get_caller_identityvalidates the configured Tencent account through STS.
The current image exposes approximately 260 SDK service modules, including COS, CVM, TKE, CLS, CAM, STS, DLC, WeData, EMR, VPC, and many others. The runtime service list is authoritative because it follows the installed SDK.
Platform workflows
run_dlc_sqlsubmits and monitors DLC SQL.run_wedata_workflowtriggers and monitors WeData workflows and provides failure evidence and rule-based RCA.get_metadata_contextexposes non-secret project defaults.
Knowledge and governance
save_knowledge,list_knowledge, andpromote_knowledgemanage refined and unrefined Markdown lessons in the MCP knowledge base.get_audit_policyshows active readonly prefixes, deny prefixes, and mutation allowlists.GET /mcp/readmereturns a runtime-generated agent briefing containing current metadata and discovered skills.
Security model
Every Tencent API call is evaluated before reaching the SDK:
Readonly action prefixes are allowed.
Dangerous deny prefixes are blocked.
Explicit
service:Actionorservice:*mutation entries are allowed.All other actions are blocked by default.
Deny prefixes override mutation allowlists. The only earlier rule is a readonly-prefix match. Passing the MCP policy does not grant Tencent access; the Tencent CAM/IAM policy must also authorize the action.
Mutating SQL is handled separately. It is held for authenticated human approval using:
TENCENT_MCP_APPROVAL_USERTENCENT_MCP_APPROVAL_PASSWORD
Approval requests expire after five minutes and can be consumed once.
Credentials are read only from the mounted
creds/credentials.json file. Do not put Tencent credentials in environment
variables, metadata, skills, images, or source control.
Production deployment
Prerequisites
Docker Engine and Docker Compose
Tencent Cloud credentials with the required CAM/IAM permissions
A strong approval password for mutating SQL
A strong Grafana administrator password
Configure
git clone https://github.com/Madhav1223/tencent-mcp.git
cd tencent-mcp
cp .env.example .env
mkdir -p creds
chmod 700 credsCreate creds/credentials.json with the required Tencent credentials and
restrict it to the owner:
{
"secretId": "AKID...",
"secretKey": "...",
"token": "optional-short-lived-token"
}chmod 600 creds/credentials.jsonSet strong values in .env for approval and Grafana credentials. Configure
non-secret defaults in config/metadata.md. Never commit either credentials
or production passwords.
Start
docker compose pull
docker compose up -d
docker compose psThe container health check covers MCP, Loki, and Grafana. Verify the service:
curl -fsS http://127.0.0.1:8000/healthzConnect an MCP client to:
http://127.0.0.1:8000/mcpThe image is available from
Docker Hub as
mppnp/tencent-mcp:latest. Use a versioned tag for controlled rollouts.
Configuration surfaces
Surface | Purpose |
| Tencent SecretId, SecretKey, and optional STS token |
| Non-secret region, WeData, and DLC defaults |
| Operator-managed skills, mounted read-only |
| MCP-managed refined/unrefined knowledge |
| Runtime settings and policy overrides |
Important policy variables:
# Pick a profile (file-based or built-in; default = DLC SQL only)
TENCENT_MCP_PROFILE=default
# One-off override on top of the active profile (CSV)
TENCENT_MCP_ALLOW_MUTATIONS=service:Action,service:OtherAction
TENCENT_MCP_DENY_PREFIXES=Delete,Destroy,Terminate
TENCENT_MCP_APPROVAL_USER=operator
TENCENT_MCP_APPROVAL_PASSWORD=<strong-secret>Profiles are defined in config/mutation-profiles.json
(bind-mounted, user-editable). Two profiles are always available without the file:
default (DLC SQL only) and readonly (zero mutations).
Add your own profile to the JSON, set TENCENT_MCP_PROFILE=<name>, and restart.
See POLICY_AND_PERMISSIONS.md for the full
policy reference and .env.example for available settings.
Operations and documentation
Operations guide: health, logs, Grafana, credential rotation, approvals, and troubleshooting.
Development guide: local setup, tests, linting, and image validation.
Release guide: CI/CD, Docker Hub, GHCR, tags, and release verification.
Docker Hub overview: copy-paste deployment reference.
Credentials guide: credential-file requirements.
Security policy: vulnerability reporting.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Governed MCP gateway for business apps: roles, previews, approvals and one audit log.
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
MCP gateway: one connection for your AI apps, with tool policies, PII redaction and audit logs.
Related MCP Servers
- AlicenseBqualityDmaintenanceA governance and policy enforcement gateway for MCP servers that provides hard guardrails, dynamic parameter bounds, human-in-the-loop approvals, and audit telemetry.28 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables governing tenant-aware MCP tools with policy enforcement, scoped access, human approval workflows, and tamper-evident audit logging.MIT
- AlicenseAqualityCmaintenanceEnables policy-governed MCP interactions with deterministic authorization, tenant isolation, minimized PII exposure, and human approval gates for sensitive mutations, while producing structured audit events.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables centralized proxy and orchestration of MCP servers, providing unified tool discovery, authentication, and secure request routing. It adds a human-in-the-loop approval gate for high-risk actions and audit logging.Apache 2.0