Netbird MCP Server
Installing
Installing from source
Clone the repository
Build and install
Installing from GitHub
Installing via Smithery
Configuration
NETBIRD_API_TOKEN
: Your Netbird API token
NETBIRD_HOST
(optional): The Netbird API host (default isapi.netbird.io
)
Features
- Uses Netbird API to access configuration and status
- Configurable API endpoint
- Secure token-based authentication for Netbird API
Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Adding tools
- Create a new file in
tools
(e.g.,tools/users.go
), possibly use existing code as a template
- Add API route and response specifics to the new file
- Add the tool to
func newServer()
incmd/main.go
Usage
- Get your Netbird API token from the Netbird management console.
- Install the
mcp-netbird
binary using one of the installation methods above. Make sure the binary is in your PATH.
- Add the server configuration to your client configuration file. E.g., for Codeium Windsurf add the following to
~/.codeium/windsurf/mcp_config.json
:
Note: if you see something along the lines of[netbird] [error] spawn mcp-netbird ENOENT
in Claude Desktop logs, you need to specify the full path tomcp-netbird
. On macOS Claude Logs are in~/Library/Logs/Claude
.
- Try asking questions along the lines of "Can you explain my Netbird peers, groups and policies to me?"
Docker
ToolHive
- Install
thv
as described in ToolHive README.
- Add Netbird API token to
thv
secrets:
- Build an SSE image as described in the Docker section above
- Start Netbird MCP with
thv run
on port 8080:
- When you want to stop the server, use:
Development
Debugging
stdio
or SSE
transport type. For stdio
specify the full path to mcp-netbird
in the UI.Testing
Linting
License
Netbird MCP Server
Installing
Installing from source
Clone the repository
Build and install
Installing from GitHub
Installing via Smithery
Configuration
NETBIRD_API_TOKEN
: Your Netbird API token
NETBIRD_HOST
(optional): The Netbird API host (default isapi.netbird.io
)
Features
- Uses Netbird API to access configuration and status
- Configurable API endpoint
- Secure token-based authentication for Netbird API
Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Adding tools
- Create a new file in
tools
(e.g.,tools/users.go
), possibly use existing code as a template
- Add API route and response specifics to the new file
- Add the tool to
func newServer()
incmd/main.go
Usage
- Get your Netbird API token from the Netbird management console.
- Install the
mcp-netbird
binary using one of the installation methods above. Make sure the binary is in your PATH.
- Add the server configuration to your client configuration file. E.g., for Codeium Windsurf add the following to
~/.codeium/windsurf/mcp_config.json
:
Note: if you see something along the lines of[netbird] [error] spawn mcp-netbird ENOENT
in Claude Desktop logs, you need to specify the full path tomcp-netbird
. On macOS Claude Logs are in~/Library/Logs/Claude
.
- Try asking questions along the lines of "Can you explain my Netbird peers, groups and policies to me?"
Docker
ToolHive
- Install
thv
as described in ToolHive README.
- Add Netbird API token to
thv
secrets:
- Build an SSE image as described in the Docker section above
- Start Netbird MCP with
thv run
on port 8080:
- When you want to stop the server, use:
Development
Debugging
stdio
or SSE
transport type. For stdio
specify the full path to mcp-netbird
in the UI.