kubefwd
MCP server by txn2 Community
kubefwd bulk forwards Kubernetes services to a local workstation so developers can reach cluster services by name. It is a command-line tool with an interactive TUI, MCP support for AI assistants, and an Apache 2.0 license.
About
kubefwd is a command-line utility that bulk port forwards Kubernetes services to a local workstation. It discovers services in a namespace, gives each one a unique 127.x.x.x loopback IP, and updates /etc/hosts so services can be reached by name. An interactive TUI shows real-time monitoring, traffic metrics and pod logs.
It is aimed at developers who want local code to use the same connection strings as in-cluster services, such as db:5432 or api-gateway:8080, without environment-specific configuration or Docker Compose files. Forwards reconnect automatically when pods restart. The project also offers a REST API and MCP support for AI assistants such as Claude Code and Cursor. It requires kubectl access to a cluster and root or sudo access.
Written from the project's README and checked against it.
What you need
- kubectl configured with cluster access
- Root or sudo access
- macOS, Linux or Windows for installation
Try asking
- Forward all services in the staging namespace to my laptop.
- Show me the traffic metrics for the forwarded services.
- Filter the forwards to services with the label app=api.
Good to know
- Requires root or sudo access for /etc/hosts and network interfaces.
- Feature development is limited to maintainers.
Security check
C- Asks for administrator rights (sudo)In
README.md:sudo
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Local development against cluster services
- Access cluster services by name on a laptop
- Skip local setup for cluster dependencies
Alternatives to kubefwd
All alternatives →Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.
Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.
SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.
Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.
Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.
Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.
Compare with Azure MCP Server, openstatus or SmartBear MCP
kubefwd: common questions
Does kubefwd need changes to my application code?
The source says applications can keep their existing connection strings, such as http://api-gateway:8080, and they work the same way locally. No environment-specific configuration is needed.
What happens when a pod restarts during a session?
The source says kubefwd auto-reconnects when pods restart or connections drop. It is listed as one of its main features.
How is kubefwd different from kubectl port-forward?
The source says kubefwd forwards all services in a namespace with one command, gives each service a unique IP, and resolves service names through /etc/hosts. kubectl port-forward does not do these things.
Is kubefwd the official server?
kubefwd is a community project by txn2, not verified by a company domain.
Is kubefwd free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is kubefwd safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to kubefwd?
Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.
Does kubefwd work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
