lighthouse-mcp

lighthouse-mcp

MCP server for managing Tencent Cloud Lighthouse servers, enabling natural language control of instances, firewall rules, monitoring, and more.

Category
Visit Server

README

lighthouse-mcp 🦞

MCP Server for Tencent Cloud Lighthouse(轻量应用服务器)管理。

让 AI Agent(Claude Code / OpenClaw / Cursor)通过自然语言管理你的 Lighthouse 服务器。

已支持的工具

工具 说明
describe_regions 查询所有可用地域
describe_instances 查询实例列表
get_monitor_data 获取监控数据(CPU/内存/带宽/磁盘IO)
describe_firewall_rules 查看防火墙规则
create_firewall_rules 添加防火墙规则
delete_firewall_rules 删除防火墙规则
describe_snapshots 查看快照列表
execute_command 远程执行命令(TAT)
describe_command_tasks 查询命令执行状态

安装

npm install -g lighthouse-mcp
# 或
npx lighthouse-mcp

配置

设置腾讯云 API 密钥:

export TENCENT_SECRET_ID="your_secret_id"
export TENCENT_SECRET_KEY="your_secret_key"

或创建 .env 文件:

TENCENT_SECRET_ID=your_secret_id
TENCENT_SECRET_KEY=your_secret_key

密钥获取:腾讯云控制台 > API密钥管理

在 MCP 客户端中使用

Claude Code

添加到 ~/.claude/claude_desktop_config.json 或项目 .mcp.json

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
      "args": ["-y", "lighthouse-mcp"],
      "env": {
        "TENCENT_SECRET_ID": "your_secret_id",
        "TENCENT_SECRET_KEY": "your_secret_key"
      }
    }
  }
}

OpenClaw

添加到 openclaw.jsontools.mcp 配置:

{
  "tools": {
    "mcp": {
      "lighthouse": {
        "command": "node",
        "args": ["dist/index.js"],
        "cwd": "/path/to/lighthouse-mcp",
        "env": {
          "TENCENT_SECRET_ID": "...",
          "TENCENT_SECRET_KEY": "..."
        }
      }
    }
  }
}

示例对话

你: 我有几台服务器?状态怎么样?
Agent: [调用 describe_instances] → 你有 2 台服务器,上海那台运行中...

你: 帮我把上海的服务器防火墙打开 443 端口
Agent: [调用 create_firewall_rules] → 已添加 TCP 443 规则

你: 最近的 CPU 使用率怎么样?
Agent: [调用 get_monitor_data] → 最近 6 小时 CPU 均值 12%...

技术栈

  • @modelcontextprotocol/sdk — MCP 协议 SDK
  • tencentcloud-sdk-nodejs-lighthouse — 腾讯云 Lighthouse SDK
  • TypeScript + ES Modules

License

MIT

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured