Back to MCP directory
publicPublicdnsLocal runtime

netbird

Netbird MCP Server是一个基于Model Context Protocol的服务器,用于为Netbird网络提供LLM访问其配置和状态的接口。

article

README

🚀 Netbird 鸟类飞行器网络服务器

Netbird 鸟类飞行器网络服务器是一款用于管理鸟类飞行器相关数据、监控状态以及处理日志的服务器。它提供了丰富的工具和功能,能满足鸟类飞行器管理的多种需求,同时支持后续的功能扩展。

🚀 快速开始

Netbird 鸟类飞行器网络服务器可以通过直接安装或从源码构建的方式进行部署。以下是详细的安装步骤:

📦 安装指南

直接安装

使用以下命令直接安装:

go install github.com/yourusername/mcp-netbird/cmd/mcp-netbird/main.go

从源码构建

  1. 克隆仓库:
git clone https://github.com/yourusername/mcp-netbird.git
cd mcp-netbird
  1. 安装依赖:
go mod tidy
  1. 构建并运行:
go run cmd/mcp-netbird/main.go

✨ 主要特性

已实现的工具

  1. 鸟类飞行器数据收集
    • list_peers
    • list_groups
    • list_policies
  2. 鸟类飞行器状态监控
    • getpeer_info
    • group_status
    • policy_rules
  3. 鸟类飞行器日志管理
    • view_logs
    • clear_logs

计划中的功能

  1. 鸟类飞行器性能优化
    • 加速数据传输
    • 提高连接稳定性
  2. 扩展功能开发
    • 集成第三方服务
    • 扩展日志分析能力

💻 使用示例

基础用法

# 设置API令牌并运行服务器
export NETBIRD_API_TOKEN=your_token && \
mcp-netbird serve --listen :8001

高级用法

SSE 模式

构建SSE模式的镜像:

docker build -t mcp-netbird-sse:v1 -f Dockerfile.sse .

运行镜像:

docker run --name mcp-netbird -p 8001:8001 -e NETBIRD_API_TOKEN=<your-api-token> mcp-netbird-sse:v1

工具使用示例

查看飞行器群集:

mcp-netbird list_peers

获取特定飞行器信息:

mcp-netbird getpeer_info --id peer_id_here

📚 详细文档

配置

将以下内容添加到配置文件中:

[Netbird]
  API_TOKEN = your_api_token_here

开发

贡献指南

欢迎贡献!请通过GitHub提交问题或拉取请求。

依赖项管理

项目基于以下依赖:

  • Grafana Labs (https://grafana.com/)
  • Mark III Labs (https://github.com/mark3labs/mcp-go)

测试

make test

打包与分发

make dist

📄 许可证

项目基于 Apache License, Version 2.0 协议。

⚠️ 重要提示

  1. 请确保在运行前正确设置 NETBIRD_API_TOKEN
  2. 建议定期检查和清理飞行器日志以保持系统性能。
  3. 使用 HTTPS 提供额外的安全保障。

💡 使用建议

如有任何问题,请随时联系维护团队。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client