Home / Servers / DigitalOcean API / kubernetes_get_kubeconfig
Retrieve the kubeconfig for a Kubernetes Cluster
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Retrieve the kubeconfig for a Kubernetes Cluster This endpoint returns a kubeconfig file in YAML format. It can be used to connect to and administer the cluster using the Kubernetes command line tool, kubectl, or other programs supporting… [GET /v2/kubernetes/clusters/{cluster_id}/kubeconfig]
Name on the gateway: digitalocean_api__kubernetes_get_kubeconfig · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
cluster_id required | string | A unique ID that can be used to reference a Kubernetes… |
expiry_seconds | integer | The duration in seconds that the returned Kubernetes credentials will be… |
type | token | sso | The type of credentials to return in the kubeconfig. When omitted, the default… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__kubernetes_get_kubeconfig",
"arguments": {
"cluster_id": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the retrieve the kubeconfig for a kubernetes cluster tool with cluster_id set to ….