Bulk port forwarding of Kubernetes services for local development
open sourceApache-2.0self-hostablefreeMCP
kubefwd port-forwards Kubernetes services in bulk: one service, a whole namespace, several namespaces or several clusters at once, optionally filtered by label or field selector. Each service gets its own 127.x.x.x loopback address and its cluster hostname in /etc/hosts, so in-cluster connection strings such as http://api:8080 or mysql -h db work unchanged on your machine, and several services can share a port like 3306 or 443 without remapping. It watches Kubernetes events and reconnects on pod churn, and handles headless services with one address per pod, port remapping, custom domain suffixes and IP reservation. You can drive it from an interactive TUI with live traffic and pod log streaming, a REST API with more than 40 endpoints, or an MCP server for AI assistants. It has been on the CNCF Landscape since 2018.
Problems it solves
- reach all the services in a Kubernetes namespace from my laptop by their cluster names
- kubectl port-forward one service at a time is tedious and the ports clash
- develop locally against services running in a Kubernetes cluster without changing connection strings
- port-forwards break whenever pods restart
- let my AI assistant set up port forwards to my cluster
Features
- bulk port forwarding by service, namespace, several namespaces or clusters
- label and field selectors
- unique 127.x.x.x loopback address per service with /etc/hosts entries
- automatic reconnect on pod churn
- headless services with one address per pod
- port remapping, custom domain suffixes and IP reservation
- interactive TUI with live traffic and pod log streaming
- REST API with 40+ endpoints
- MCP server for AI assistants
Limitations
- It must run with sudo (administrator rights) to write /etc/hosts and bind low ports.1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
