CLS MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CLS MCP ServerSearch for 'error' logs from the last 15 minutes and show the context."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CLS MCP Server
腾讯云日志服务(Cloud Log Service)MCP Server —— 从可观测性视角为 AI 助手提供全方位日志服务能力。
功能特性
日志查询分析:CQL 检索 + SQL 管道分析、上下文查看、直方图、日志计数
指标查询:PromQL 兼容的单时间点/时间范围指标查询
告警管理:告警策略/通知渠道/告警记录查询与管理
资源管理:日志集、日志主题、索引、机器组、仪表盘的增删改查
数据加工 & 定时 SQL:数据加工任务和定时 SQL 任务管理
三级权限控制:READ(默认)/ WRITE / DANGER 分级保护
共 33 个工具,覆盖 CLS 日志服务的完整能力。
快速开始
方式一:PyPI 安装(推荐)
# 使用 uvx 直接运行
uvx cls-mcp-server --help
# 或使用 pip 安装
pip install cls-mcp-server方式二:Docker 运行
docker run -d \
-p 8000:8000 \
-e CLS_SECRET_ID=your-secret-id \
-e CLS_SECRET_KEY=your-secret-key \
-e CLS_REGION=ap-guangzhou \
ghcr.io/tinker-lgd2026/cls-mcp-server:latest方式三:源码安装
git clone https://github.com/Tinker-LGD2026/cls-mcp-server.git
cd cls-mcp-server
uv sync
uv run cls-mcp-server --help配置
环境变量
变量 | 必填 | 默认值 | 说明 |
| 是 | — | 腾讯云 API SecretId |
| 是 | — | 腾讯云 API SecretKey |
| 是 |
| 地域 |
| 否 |
| 传输方式: |
| 否 | — | HTTP Bearer Token 认证(SSE/Streamable HTTP 模式) |
| 否 |
| 启用写操作工具 |
| 否 |
| 启用危险操作工具 |
MCP 客户端配置
Claude Desktop / Cursor(stdio 模式):
{
"mcpServers": {
"cls": {
"command": "uvx",
"args": ["cls-mcp-server"],
"env": {
"CLS_SECRET_ID": "your-secret-id",
"CLS_SECRET_KEY": "your-secret-key",
"CLS_REGION": "ap-guangzhou"
}
}
}
}远程服务(Streamable HTTP 模式):
{
"mcpServers": {
"cls": {
"url": "https://your-server:8000/mcp",
"headers": {
"Authorization": "Bearer your-token"
}
}
}
}部署
支持多种部署方式:
方式 | 适用场景 |
PyPI ( | 本地开发,stdio 模式 |
Docker / Docker Compose | 远程服务,生产环境 |
systemd + 一键脚本 | 传统虚拟机部署 |
Kubernetes / Helm | 容器编排环境 |
详细部署指南请参考 docs/deployment-guide.md。
国内环境
如果 pip / Docker 下载速度慢,可使用国内镜像源:
# pip 使用清华源
pip install cls-mcp-server -i https://pypi.tuna.tsinghua.edu.cn/simple更多加速方案请参考 部署手册 - 国内环境加速。
许可证
[Apache-2.0](LICENSE
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tinker-LGD2026/cls-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server