Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyCloud and servers

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

kubectl configured with access to a cluster, and root or sudo access to change /etc/hosts and network interfaces. See the kubefwd docs for the MCP setup.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.