
trackline/mcp-remnawave 是从 https://github.com/trackline/mcp-remnawave. 导入的 MCP 服务器候选
概览
trackline/mcp-remnawave 是从 https://github.com/trackline/mcp-remnawave. 导入的 MCP 服务器候选
概述(AI 翻译)
[!重要] 项目已关闭,请使用https://github.com/3APA3A-3AHO3A/remnawave-mcp
MCP-remnawave
英文 |Русский
Remnawave面板的MCP服务器
MCP服务器(模型上下文协议)为LLM客户端(Claude Desktop、Cursor、Windsurf等)提供管理Remnawave VPN面板的工具。
版本: 1.2.0 |Remnawave API: 2.7.4
特色
- 153 个工具 — 完整管理用户、节点、主机、订阅、小队、高功能设备、配置配置文件、入站信息、API 令牌、计费、摘要、外部小队、设置、订阅页面配置、节点插件、IP 控制和元数据
- 3 资源 — 实时面板统计、节点状态、健康检查
- 5个提示——针对常见任务的引导工作流程
- 只读模式 — 仅限69个只读工具以实现安全监控
- Caddy 支持 —
X-Api-Key面板插头,带自定义路径 - 类型安全 — 基于@remnawave/后端合同构建,用于API路由验证
- stdio transport — 支持Claude Desktop、Cursor、Windsurf及任何兼容MCP的客户端
要求
- Node.js >= 22
- 带 API 令牌的 Remnawave 面板(设置> API 令牌)
安装
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
[!IMPORTANT] PROJECT IS CLOSED, USE PLEASE https://github.com/3APA3A-3AHO3A/remnawave-mcp
mcp-remnawave
MCP Server for Remnawave Panel
MCP server (Model Context Protocol) providing LLM clients (Claude Desktop, Cursor, Windsurf, etc.) with tools to manage a Remnawave VPN panel.
Version: 1.2.0 | Remnawave API: 2.7.4
Features
- 153 tools — full management of users, nodes, hosts, subscriptions, squads, HWID, config profiles, inbounds, API tokens, billing, snippets, external squads, settings, subscription page configs, node plugins, IP control, and metadata
- 3 resources — real-time panel stats, node status, health checks
- 5 prompts — guided workflows for common tasks
- Readonly mode — restrict to 69 read-only tools for safe monitoring
- Caddy support —
X-Api-Keyheader for panels behind Caddy with custom path - Type-safe — built on @remnawave/backend-contract for API route validation
- stdio transport — works with Claude Desktop, Cursor, Windsurf, and any MCP-compatible client
Requirements
- Node.js >= 22
- Remnawave panel with API token (Settings > API Tokens)
Installation
git clone https://github.com/TrackLine/mcp-remnawave.git
cd mcp-remnawave
npm install
npm run build
Configuration
Create a .env file or pass environment variables:
| Variable | Required | Description |
|---|---|---|
REMNAWAVE_BASE_URL |
Yes | Panel URL (e.g. https://vpn.example.com) |
REMNAWAVE_API_TOKEN |
Yes | API token from panel settings |
REMNAWAVE_API_KEY |
No | API key for Caddy reverse proxy authentication |
REMNAWAVE_READONLY |
No | Set to true to enable readonly mode |
REMNAWAVE_BASE_URL=https://vpn.example.com
REMNAWAVE_API_TOKEN=your-api-token-here
Caddy with Custom Path
If your Remnawave panel is deployed behind Caddy with a custom path and API key protection, set the base URL to include the custom path and provide the API key:
REMNAWAVE_BASE_URL=https://example.com/your-secret-path/api
REMNAWAVE_API_KEY=your-caddy-api-key
The X-Api-Key header will be added to every request automatically.
Readonly Mode
Set REMNAWAVE_READONLY=true to disable all write operations (create, update, delete, enable, disable, restart, revoke, reset). Only read/list tools will be registered.
Useful for monitoring dashboards or shared environments where you want to prevent accidental changes.
In readonly mode, the available tools are reduced from 153 to 69:
| Category | Available tools |
|---|
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"remnawave": {
"command": "node",
"args": ["/absolute/path/to/remnawave-mcp/dist/index.js"],
"env": {
"REMNAWAVE_BASE_URL": "https://vpn.example.com",
"REMNAWAVE_API_TOKEN": "your-api-token-here",
"REMNAWAVE_API_KEY": "your-caddy-api-key",
"REMNAWAVE_READONLY": "false"
}
}
}
}