The Netbird MCP Server is a specialized implementation of the Model Context Protocol (MCP) designed to integrate seamlessly with Netbird. This project, derived from the MCP Server for Grafana by Grafana Labs, extends Netbird's capabilities by providing detailed insights into peers, groups, and policies within your Netbird network.
Tool | Category | Description |
---|---|---|
list_netbird_peers |
Peers | List all peers in your Netbird network |
list_netbird_groups |
Groups | List all groups in your Netbird network |
list_netbird_policies |
Policies | List all policies in your Netbird network |
shell
git clone https://github.com/aantti/mcp-netbird
shell
cd mcp-netbird && make install
go install github.com/aantti/mcp-netbird/cmd/mcp-netbird@latest
The server requires the following environment variables:
- NETBIRD_API_TOKEN
: Your Netbird API token.
- NETBIRD_HOST
(optional): The Netbird API host (default is api.netbird.io
).
mcp-netbird
binary and ensure it is in your PATH.json
{
"mcpServers": {
"netbird": {
"command": "mcp-netbird",
"args": [],
"env": {
"NETBIRD_API_TOKEN": "<your-api-token>"
}
}
}
}
Contributions are welcome! The project is written in Go. To run the server manually:
export NETBIRD_API_TOKEN=your-token && go run cmd/mcp-netbird/main.go
Or in SSE mode:
export NETBIRD_API_TOKEN=your-token && go run cmd/mcp-netbird/main.go --transport sse --sse-address :8001
Use the MCP Inspector for testing and debugging:
export NETBIRD_API_TOKEN=your-token && npx @modelcontextprotocol/inspector
TODO: Add tests
To lint the code:
make lint
This project is licensed under the Apache License, Version 2.0.
The Netbird MCP Server is a powerful tool for enhancing Netbird's functionality through the Model Context Protocol. For more details, visit the GitHub repository.