Compatible with every major AI agent and IDE
What is the NetBird MCP Server?
Connect your NetBird account to any AI agent and take full control of your private network infrastructure through natural conversation.
What you can do
- Account Management — List and update account settings, including peer login expiration and network ranges using
list_accountsandupdate_account. - User Administration — Create service users, invite regular users, and manage roles or block statuses with
list_users,create_user, andupdate_user. - Access Control — Approve or reject pending users and manage user invitations efficiently using
approve_userandreject_user. - Security & Identity — Change user passwords for embedded IdP and retrieve current user information via
get_current_userandchange_user_password. - Invitation Workflow — Generate, regenerate, and track user invite links to scale your network using
list_user_invitesandcreate_user_invite.
How it works
- Subscribe to this server
- Enter your NetBird API Token
- Start managing your Zero Trust network from Claude, Cursor, or any MCP-compatible client
No more manual dashboard navigation to manage peer access or user onboarding. Your AI acts as a network administrator.
Who is this for?
- DevOps Engineers — quickly manage network accounts and peer settings without leaving the terminal or IDE.
- IT Administrators — automate user onboarding, invitations, and access approvals through simple commands.
- Security Teams — monitor active users and manage security settings like password changes and account blocks instantly.
Built-in capabilities (89)
Accept invite and set password (unauthenticated)
Approve a pending user
Change user password (embedded IdP only)
Create a group
Create a new MSP tenant
Create a nameserver group
Create a network
Create a resource (host, subnet, or domain) in a network
Create a router in a network
Create a policy with rules (action, protocol, ports, sources, destinations)
Create a posture check (version, OS, geo-location, network range, or process)
Create a route (Deprecated)
Create a setup key (one-off or reusable)
Create a temporary access peer
Create a service user or invite a regular user
Create a user invite link
Create a new personal access token
Delete a NetBird account and all resources
Delete a group
Delete nameserver group
Delete a network
Delete network resource
Delete network router
Delete a peer
Delete a policy
Delete a posture check
Delete a route (Deprecated)
Delete a setup key
Remove a user
Delete a user invite
Delete a token
Retrieve current user info
Retrieve global DNS settings
Retrieve group details
Retrieve nameserver group details
Retrieve network details
Retrieve network resource details
Retrieve network router details
Retrieve peer details
Retrieve policy details
Retrieve posture check details
Get public invite info (unauthenticated)
Retrieve route details (Deprecated)
Retrieve setup key details
Retrieve a specific token
Invite an existing account as a tenant
List peers accessible by this peer
List all NetBird accounts
List all routers across all networks
List all audit events (activity, initiator, target)
List city names for a country
List all ISO 3166-1 alpha-2 country codes
List all groups
List all MSP tenants
List all nameserver groups
List resources in a network
List routers in a network
List network traffic events (Cloud-only, experimental)
List all networks
List all network peers
List all policies
List all posture checks
List reverse proxy access logs
List all routes (Deprecated)
List all setup keys
List pending user invites
List all tokens for a user
List all users
Regenerate an invite token
Reject a pending user
Resend user invitation
Accept or decline an MSP invitation
Unlink a tenant to a new owner
Update account settings (e.g., peer login expiration, network range)
Update DNS settings (e.g., disabled management groups)
Update group name, peers, or resources
Update tenant name or access groups
Create/update tenant subscription
Update nameserver group
Update network name/description
Update network resource
Update network router
Update peer name, SSH status, or IP
Update policy
Update posture check
Update route (Deprecated)
Update key (revoke or change auto-groups)
Update user role, auto-groups, or block status
Verify tenant domain DNS challenge
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and NetBird tool infrastructure. Connect 89 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add NetBird without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every NetBird tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
NetBird in Mastra AI
NetBird and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect NetBird to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for NetBird in Mastra AI
The NetBird MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 89 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
NetBird for Mastra AI
Every tool call from Mastra AI to the NetBird MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
How can I see all users currently registered in my NetBird network?
You can use the list_users tool. It will return a complete list of users, including their IDs, roles, and current status.
Is it possible to invite a new user to the network via AI?
Yes! Use the create_user_invite tool to generate an invitation link, or create_user to invite a regular user directly by providing the necessary JSON payload.
Can I manage pending user approvals through this integration?
Absolutely. Use approve_user to grant access to a pending user or reject_user to deny their request using their specific User ID.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
PDF Invoice Data Extractor
1 toolsExtract raw text directly from digital PDF invoices entirely local. Keeps your sensitive accounting data air-gapped while letting the AI classify NIFs, suppliers, and totals.

Walmart Marketplace
8 toolsManage your Walmart Marketplace catalog, inventory, and dynamic pricing natively.

Logseq (Knowledge Management)
10 toolsManage your knowledge base via Logseq — create pages, insert outliner blocks, and search across your local graph.

Fireworks AI
6 toolsEmpower LLM applications via Fireworks AI — perform ultra-fast chat completions, generate embeddings and images, and transcribe audio directly from any AI agent.
