1. Conduid
  2. Cloud
  3. txn2/kubefwd
MCP server · Cloud

txn2/kubefwd

Bulk port forwarding Kubernetes services for local development.

82Strong

Scored 20 hours ago · breakdown

About txn2/kubefwd

txn2/kubefwd is an MCP server published by txn2 in the Cloud category: bulk port forwarding Kubernetes services for local development. Conduid read 28 tools from its source: add_namespace, add_service, diagnose_errors, find_services, get_analysis, get_connection_info and 22 more. No package is published for it, so it installs from a source checkout.

The repository has 4.2K stars and 238 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. The latest release is v1.25.18 (16 Oct 2026): kubefwd v1.25.18 Security release. It follows v1.25.17 (16 Oct 2026), and the 5 most recent releases go back to v1.25.14 (22 Apr 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, kubernetes, kubefwd, devops-tools, devops and k8s.

Install

From source
git clone https://github.com/txn2/kubefwd

Tools (28)

add_namespaceForward all services in a namespace to localhost. Adds /etc/hosts entries for each service. Returns list of discovered services with connection info.
add_serviceForward a single service to localhost. Returns local IP, hostnames (added to /etc/hosts), and mapped ports. Requires namespace and service_name.
diagnose_errorsDiagnose current errors with root cause analysis. Returns error types, affected pods, and specific fix suggestions.
find_servicesSearch forwarded services by name pattern, port number, or namespace. Returns matching services with connection info.
get_analysisFull analysis with issues, priorities, and recommended actions. Returns classified errors and specific tool calls to fix them. Best starting point for troubleshooting.
get_connection_infoGet connection details for a forwarded service: IP address, hostnames, ports, and environment variables. Use after add_service to get ready-to-use connection strings. Requires service_name.
get_endpointsGet endpoints for a Kubernetes service. Shows which pods are backing the service and their ready state. Useful for debugging service-to-pod routing.
get_eventsGet Kubernetes events for debugging. Shows scheduling, pulling, starting, killing events. Filter by resource kind (Pod, Service) and name. Critical for diagnosing startup failures.
get_healthGet kubefwd health: status (healthy/degraded/unhealthy), version, uptime, and service/error counts.
get_historyAccess event, error, or reconnection history. Filter by type and service key. Analyze patterns over time. Requires type ('events', 'errors', or 'reconnections').
get_http_trafficView HTTP requests through a forward: method, path, status code, response time. Debug API calls and verify connectivity. Requires service_key (e.g., 'myservice.namespace.context') or forward_key.
get_logsGet kubefwd log entries. Filter by level (debug/info/warn/error) or search text. Returns timestamped messages.
get_metricsGet bandwidth metrics: total bytes in/out, transfer rates, per-service breakdown. Shows network activity.
get_podGet detailed pod information including containers, status, conditions, resources, and events. Use to diagnose pod issues. Requires namespace and pod_name.
get_pod_logsGet logs from a Kubernetes pod. Useful for debugging services. Returns recent log lines from the pod's container. Requires namespace and pod_name. Get pod names from list_pods or get_service output.
get_quick_statusFast health check returning ok/issues/error with message. Use as first check before taking action.
get_serviceGet detailed service info: all port forwards, pods, hostnames, traffic bytes/rates, and error state. Requires key (e.g., 'servicename.namespace.context').
list_contextsList Kubernetes contexts from kubeconfig with current context marked. Use to discover clusters before forwarding.
list_hostnamesList all /etc/hosts entries created by kubefwd. Shows hostname-to-IP mappings for each forwarded service.
list_k8s_namespacesList available Kubernetes namespaces with forwarding status. Use to discover what can be forwarded.
list_k8s_servicesList services in a namespace with type, ports, and forwarding status. Use to discover what can be forwarded. Requires namespace.
list_podsList Kubernetes pods with status, ready state, restarts, and age. Filter by label selector or service name. Essential for finding which pods back a service. Requires namespace.
list_servicesList all forwarded services with status. Returns service names, namespaces, contexts, forward counts, and error states.
reconnect_all_errorsReconnect all errored services at once. Returns count of services triggered.
reconnect_serviceReconnect a service to its pods. Use when service is in error state. Forces immediate reconnection attempt. Requires key (e.g., 'servicename.namespace.context').
remove_namespaceStop all service forwards in a namespace. Removes /etc/hosts entries and cleans up network interfaces.
remove_serviceStop forwarding a service. Removes /etc/hosts entries and releases the allocated IP. Requires key (e.g., 'servicename.namespace.context').
sync_serviceRe-sync pods for a service. Discovers pod changes and updates forwards. Use after deployments or pod restarts. Requires key (e.g., 'servicename.namespace.context').

Security checks

Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 709 words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by go.sum.
  • ✓No dynamic code executionScanned 76 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiocmd/kubefwd/mcp/mcp.go:166
Starts other programs
5 callspkg/fwdapi/network.go:78, pkg/fwdnet/fwdnet.go:88, pkg/fwdnet/fwdnet.go:102
Outbound network calls
3 callspkg/fwdmcp/httpclient.go:37, pkg/fwdmcp/httpclient.go:54, pkg/fwdport/fwdport.go:485
Writes or deletes files
2 callspkg/fwdhost/fwdhost.go:25, pkg/fwdhost/fwdhost.go:40
Lockfile
go.sum

Pattern matches on the source text of 76 files: places to read, not proof of what the code does at run time.

Releases

v1.25.18kubefwd-v1.25.18 · 16 Oct 2026kubefwd v1.25.18 Security release. Everyone on v1.25.17 or earlier should upgrade. v1.25.17 shipped with known vulnerabilities in `golang.org/x/net`, `golang.org/x/crypto` and `golang.org/x/text`. This release updates those modules and has…
v1.25.17kubefwd-v1.25.17 · 16 Oct 2026kubefwd v1.25.17 [!WARNING] Superseded by v1.25.18. Do not install this version. v1.25.17 shipped with known vulnerabilities in `golang.org/x/net`. Five HTTP/2 advisories are reachable from kubefwd: GO-2026-6603, GO-2026-6610,…
v1.25.16kubefwd-v1.25.16 · 20 Jun 2026kubefwd v1.25.16 This release modernizes the interactive Terminal UI by moving it onto the Charm v2 library line, hardens API-key startup logging, and rolls up routine dependency and CI maintenance. Highlights TUI migrated to Charm v2…
v1.25.15kubefwd-v1.25.15 · 29 May 2026kubefwd v1.25.15 Highlights 🔒 REST API now requires authentication (security) The optional REST API (`--api`) and the HTTP MCP bridge previously served every endpoint — Kubernetes context enumeration, pod log reads, and port-forward…
v1.25.14kubefwd-v1.25.14 · 22 Apr 2026What's New MCP Registry Publish Fix (#470) Fixes the Publish to MCP Registry step in the release workflow that had been failing on every release since v1.25.1. `server.json` used the snake_case key `file_sha256`, but the MCP registry…

README

The repository's README runs to about 709 words, fetched 6 days ago. The original in the repository is authoritative.

Read full README
Questions

About txn2/kubefwd

How do I install txn2/kubefwd?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is txn2/kubefwd safe to use with an AI agent?

Its trust score is 82 out of 100 (strong). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 76 source files found that it serves MCP over stdio, starts other programs (5 calls), makes outbound network calls (3 calls) and writes or deletes files (2 calls). Its dependencies are pinned by go.sum. It has no ConduID identity yet, so agent calls to it are not receipted.

Is txn2/kubefwd still maintained?

Yes — the latest release is v1.25.18 (16 Oct 2026), and the last commit was yesterday. The repository has 4.2K stars and 8 open issues.

What tools does txn2/kubefwd provide?

Conduid read 28 tools from the source: add_namespace, add_service, diagnose_errors, find_services, get_analysis, get_connection_info, get_endpoints, get_events and 20 more.

What license is txn2/kubefwd released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v1.25.18, as well.