huawei-cloud-ops-mcp-server
Enables AI assistants to query and manage Huawei Cloud resources (ECS, VPC, RDS, etc.) and retrieve pricing information through the Model Context Protocol.
README
华为云运维 MCP 服务器
基于 Model Context Protocol (MCP) 的华为云 API 调用服务器,为 AI 助手提供华为云资源查询、价格查询和管理能力。
功能特性
- API 调用: 支持查询和管理华为云资源(ECS、VPC、RDS、EVS、ELB、OBS、EIP、DDS、CSS、DCS、CES 等)
- 价格查询: 支持查询华为云服务价格信息,支持多条件过滤
- 工作流指导: 智能分析用户查询,提供工具调用建议
- 多区域支持: 支持华为云全球多个区域,自动处理 project_id 和 region 映射
- 文档集成: 内置 API 文档和价格结构文档,支持快速查询
安装
前置要求
- Python >= 3.11
- 华为云账号及访问密钥 (AK/SK)
安装步骤
- 安装依赖:
# 使用 uv (推荐)
uv sync
# 或使用 pip
pip install -e .
- 配置环境变量(创建
.env文件):
HUAWEI_CLOUD_ACCESS_KEY=your_access_key
HUAWEI_CLOUD_SECRET_KEY=your_secret_key
# MCP 传输方式:stdio(默认)或 http(用于 Docker)
MCP_TRANSPORT=http
# 日志配置(可选)
# LOG_LEVEL=INFO
# LOG_FILE=logs/app.log
使用方法
Docker 运行(推荐)
- 构建镜像:
docker build -t huawei-cloud-ops-mcp-server .
- 运行容器:
docker run -d --rm \
-e HUAWEI_CLOUD_ACCESS_KEY=your_access_key \
-e HUAWEI_CLOUD_SECRET_KEY=your_secret_key \
-e MCP_TRANSPORT=http \
-e MCP_HOST=0.0.0.0 \
-p 8000:8000 \
huawei-cloud-ops-mcp-server
- MCP 客户端配置(HTTP 传输):
{
"mcpServers": {
"huawei-cloud-ops": {
"url": "http://localhost:8000"
}
}
}
本地运行
- 启动服务器:
python -m huawei_cloud_ops_mcp_server
linux: nohup uv run python -m huawei_cloud_ops_mcp_server > /dev/null 2>&1 </dev/null &
- MCP 客户端配置(stdio 传输):
{
"mcpServers": {
"huawei-cloud-ops": {
"command": "python",
"args": ["-m", "huawei_cloud_ops_mcp_server"]
}
}
}
注意事项
- 当前仅支持 GET 请求,POST/PUT/DELETE 暂不支持
- 区域名称使用完整中文(如
"华北-北京一"),支持模糊匹配 - API 返回 JSON 字符串格式
- 日志文件默认保存在
logs/app.log
相关链接
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.