[GH-ISSUE #5787] Feature request: Official MCP (Model Context Protocol) server #11987

Open
opened 2026-08-05 01:32:00 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @renne on GitHub (Apr 2, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5787

Is your feature request related to a problem? Please describe.

Managing NetBird programmatically today requires either the web dashboard or raw REST API calls. There is no AI/LLM-native integration path, which means automation workflows relying on AI agents (using tools like Claude, Copilot, or any MCP-compatible client) cannot interact with NetBird without custom glue code.

A community-maintained MCP server exists (XNet-NGO/mcp-netbird), but it is a single-file ~800-line Go project that lags behind the official API: it is missing DNS Zones, DNS Settings, Personal Access Tokens, Events, and Flow Logs — and has no mechanism to stay in sync with new NetBird API additions (such as those introduced in v0.63).

Describe the solution you'd like

An official NetBird MCP server — maintained in this repository (or as a dedicated sub-module) — that exposes all current NetBird API endpoints as Model Context Protocol tools. This would allow any MCP-compatible AI agent to manage a NetBird account/deployment without custom integration code.

Desired scope (based on the current OpenAPI spec):

API Group Operations
Account Get, Update
Groups List, Get, Create, Update, Delete
Peers List, Get, Update, Delete
Policies List, Get, Create, Update, Delete
Routes List, Get, Create, Update, Delete
Nameserver Groups List, Get, Create, Update, Delete
DNS Settings Get, Update
DNS Zones (v0.63+) List, Get, Create, Update, Delete
DNS Zone Records (v0.63+) List, Get, Create, Update, Delete
Networks List, Get, Create, Update, Delete
Network Resources List, Get, Create, Update, Delete
Network Routers List, Get, Create, Update, Delete
Setup Keys List, Get, Create, Update, Delete, Revoke
Users List, Get, Invite, Update, Delete
Personal Access Tokens List, Get, Create, Delete
Posture Checks List, Get, Create, Update, Delete
Port Allocations List, Get, Create, Update, Delete
Events List
Flow Logs List

The server should authenticate via a Personal Access Token (env var), support both NetBird Cloud and self-hosted deployments (configurable base URL), and be distributed as a standalone binary and/or Docker image.

Describe alternatives you've considered

  1. XNet-NGO/mcp-netbird — Community effort that demonstrates demand, but is incomplete and not officially maintained. A feature request for the coverage gaps was filed there: XNet-NGO/mcp-netbird#1.
  2. Direct REST API in agent prompts — Works but requires agents to manage auth, pagination, and error handling manually; poor developer experience and no structured tool definitions.

An official implementation would benefit from being co-maintained alongside the API, ensuring new endpoints are always exposed at release time.

Additional context

  • MCP (Model Context Protocol) is becoming the dominant standard for AI agent tool integration, with support in Claude (Anthropic), GitHub Copilot, Cursor, and many other AI assistants.
  • The NetBird Go SDK already provides well-typed abstractions over the REST API, significantly reducing the implementation effort for an official MCP server.
  • Hosting the MCP server in the official repository ensures it stays in sync with API changes and benefits from the existing CI/release infrastructure.
Originally created by @renne on GitHub (Apr 2, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5787 **Is your feature request related to a problem? Please describe.** Managing NetBird programmatically today requires either the web dashboard or raw REST API calls. There is no AI/LLM-native integration path, which means automation workflows relying on AI agents (using tools like Claude, Copilot, or any MCP-compatible client) cannot interact with NetBird without custom glue code. A community-maintained MCP server exists ([XNet-NGO/mcp-netbird](https://github.com/XNet-NGO/mcp-netbird)), but it is a single-file ~800-line Go project that lags behind the official API: it is missing DNS Zones, DNS Settings, Personal Access Tokens, Events, and Flow Logs — and has no mechanism to stay in sync with new NetBird API additions (such as those introduced in v0.63). **Describe the solution you'd like** An **official NetBird MCP server** — maintained in this repository (or as a dedicated sub-module) — that exposes all current NetBird API endpoints as [Model Context Protocol](https://modelcontextprotocol.io/) tools. This would allow any MCP-compatible AI agent to manage a NetBird account/deployment without custom integration code. Desired scope (based on the current OpenAPI spec): | API Group | Operations | |---|---| | Account | Get, Update | | Groups | List, Get, Create, Update, Delete | | Peers | List, Get, Update, Delete | | Policies | List, Get, Create, Update, Delete | | Routes | List, Get, Create, Update, Delete | | Nameserver Groups | List, Get, Create, Update, Delete | | DNS Settings | Get, Update | | **DNS Zones** *(v0.63+)* | List, Get, Create, Update, Delete | | **DNS Zone Records** *(v0.63+)* | List, Get, Create, Update, Delete | | Networks | List, Get, Create, Update, Delete | | Network Resources | List, Get, Create, Update, Delete | | Network Routers | List, Get, Create, Update, Delete | | Setup Keys | List, Get, Create, Update, Delete, Revoke | | Users | List, Get, Invite, Update, Delete | | Personal Access Tokens | List, Get, Create, Delete | | Posture Checks | List, Get, Create, Update, Delete | | Port Allocations | List, Get, Create, Update, Delete | | Events | List | | Flow Logs | List | The server should authenticate via a Personal Access Token (env var), support both NetBird Cloud and self-hosted deployments (configurable base URL), and be distributed as a standalone binary and/or Docker image. **Describe alternatives you've considered** 1. **[XNet-NGO/mcp-netbird](https://github.com/XNet-NGO/mcp-netbird)** — Community effort that demonstrates demand, but is incomplete and not officially maintained. A feature request for the coverage gaps was filed there: [XNet-NGO/mcp-netbird#1](https://github.com/XNet-NGO/mcp-netbird/issues/1). 2. **Direct REST API in agent prompts** — Works but requires agents to manage auth, pagination, and error handling manually; poor developer experience and no structured tool definitions. An official implementation would benefit from being co-maintained alongside the API, ensuring new endpoints are always exposed at release time. **Additional context** - MCP (Model Context Protocol) is becoming the dominant standard for AI agent tool integration, with support in Claude (Anthropic), GitHub Copilot, Cursor, and many other AI assistants. - The NetBird Go SDK already provides well-typed abstractions over the REST API, significantly reducing the implementation effort for an official MCP server. - Hosting the MCP server in the official repository ensures it stays in sync with API changes and benefits from the existing CI/release infrastructure.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#11987