Kubernetes Port Forward — MCP Server: port-forward Kubernetes services with terminal integration
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by K8s Port Forward MCP.
namespaceCallable MCP tool function
servicesCallable MCP tool function
serviceNameCallable MCP tool function
list_k8s_servicesCallable MCP tool function
localPortCallable MCP tool function
remotePortCallable MCP tool function
A Model Context Protocol (MCP) server that provides tools for discovering Kubernetes services and running kubectl port-forward sessions (optionally with separate log windows). It is designed for MCP clients/LLMs that translate natural language into structured tool calls.
kubectl port-forwardThis package provides an MCP interface on top of the standard kubectl workflow.
kubectl: Best when you already know exact namespace/pod/ports and prefer manual control.start_k8s_port_forward accepts an array so each service can use different namespace, environment, localPort, and remotePort.kubectl logs -f in a separate OS-level terminal window per service.kubectl installed and configured with access to your clusterhttp://localhost:3002).First, install the Kubernetes Port Forward MCP server with your client.
Standard config works in most MCP clients:
Add via the Amp VS Code extension settings screen or by updating your settings.json file:
Amp CLI Setup:
Add via the amp mcp add command below:
Add via the Antigravity settings or by updating your configuration file:
Use the Claude Code CLI to add the Kubernetes Port Forward MCP server:
Follow the MCP install guide, use the standard config above.
Follow the instruction in the section Configuring MCP Servers
Example: Local Setup
Add the following to your cline_mcp_settings.json file:
Use the Codex CLI to add the Kubernetes Port Forward MCP server:
Alternatively, create or edit the configuration file ~/.codex/config.toml and add:
For more information, see the Codex MCP documentation.
Use the Copilot CLI to interactively add the Kubernetes Port Forward MCP server:
Alternatively, create or edit the configuration file ~/.copilot/mcp-config.json and add:
For more information, see the Copilot CLI documentation.
Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, use command type with the command npx -y k8s-port-forward-mcp@latest. You can also verify config or add command arguments via clicking Edit.
Use the Factory CLI to add the Kubernetes Port Forward MCP server:
Alternatively, type /mcp within Factory droid to open an interactive UI for managing MCP servers.
For more information, see the Factory MCP documentation.
Follow the MCP install guide, use the standard config above.
Go to Advanced settings -> Extensions -> Add custom extension. Name to your liking, use type STDIO, and set the command to npx -y k8s-port-forward-mcp@latest. Click "Add Extension".
Follow the MCP Servers documentation. For example in .kiro/settings/mcp.json:
Go to Program in the right sidebar -> Install -> Edit mcp.json. Use the standard config above.
Follow the MCP Servers documentation. For example in ~/.config/opencode/opencode.json:
Open Qodo Gen chat panel in VSCode or IntelliJ -> Connect more tools -> + Add new MCP -> Paste the standard config above.
Click Save.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/k8s-port-forward-mcp)<a href="https://allmcps.com/mcp/k8s-port-forward-mcp"><img src="https://allmcps.com/api/badge/k8s-port-forward-mcp?style=directory" alt="K8s Port Forward MCP on AllMCPs" /></a>