kubefwd
Lets your AI agent work with kubefwd to forward Kubernetes services to your laptop by name for local development.
4.2k stars on GitHubby Craig Johnston (txn2)License Apache-2.0Updated 20 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Download the .mcpb file and open it with Claude Desktop.
Download the .mcpb file βReady! Now test it
Restart the app and paste one of these requests in the chat:
Forward all services in the staging namespace to my machine.
Which services are currently forwarded and are any of them failing?
What it is
kubefwd is a command-line tool that forwards all the services in a Kubernetes namespace to your computer. Each service gets its own local IP and a name in /etc/hosts, so your code can reach database and API services by their in-cluster names. The readme says it has MCP support so AI assistants like Claude Code and Cursor can use it.
What it can do
- Forward all services in a namespace with one command
- Give each service its own 127.x.x.x address to avoid port conflicts
- Add service names to /etc/hosts automatically
- Reconnect when pods restart or connections drop
- Show live traffic and pod logs in an interactive TUI
- Control forwarding through a REST API
When to use
- βΊWhen you build an app locally that needs a database or API running in a dev cluster.
- βΊWhen kubectl port-forward is too slow because you need many services at once.
- βΊWhen you want your AI assistant to start or check port forwards for you.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
mirrordAllows your agent to test local processes within a Kubernetes cluster. Changes are tested against live services without needing deployment.kubernetesHelps your agent deploy and debug Kubernetes workloads with kubectl, covering pods, deployments, logs and resource limits.mirrord-kafkaHelps DevOps engineers set up mirrord to split Kafka queues on Kubernetes, so one developer's test messages reach their own local app.Frequently asked questions
Is it free and open source?
Yes. It is open source under the Apache License 2.0.
What does it need?
A working kubectl setup with cluster access, and root or sudo rights.
How is it different from kubectl port-forward?
It forwards every service in a namespace at once, gives each a unique IP, resolves service names automatically and reconnects on its own.
Which systems does it run on?
The readme lists install options for macOS with Homebrew, Linux packages, Windows with winget or scoop, and Docker.
Where is the MCP setup explained?
On the project's MCP integration page at kubefwd.com/mcp-integration.
Can it limit what it forwards?
Yes. You can choose namespaces and filter by label, for example -l app=api.
If it does not work
- βΊRun it with sudo -E so it can edit /etc/hosts and use your kubeconfig.
- βΊCheck that kubectl can reach your cluster before starting.
- βΊSee the Troubleshooting page at kubefwd.com/troubleshooting for common issues.
5 new skills a week. 1 minute to read.