EKS Metrics MCP Server
Enables querying Amazon EKS cluster metrics from the Kubernetes API server, with filtering by metric name and labels, supporting both exact and regex patterns.
README
EKS Metrics MCP Server
Python MCP server for querying Amazon EKS cluster metrics.
Implemented now:
- Kubernetes API server
/metrics, equivalent tokubectl get --raw /metrics - Metric filtering by exact metric name, metric name regex, and labels
- A source selector that currently supports
api_serverand reservescloudwatch
CloudWatch metric collection is intentionally left as a future extension.
Install
python3.11 -m pip install -e .
The MCP Python SDK requires Python 3.10 or newer. If python points to Python
3.9, use python3.11 or another Python 3.10+ interpreter in both installation
and MCP client configuration.
The server uses the Kubernetes Python client. Authentication follows the same
configuration sources as kubectl:
- In-cluster service account credentials when running inside Kubernetes
- Local kubeconfig from
KUBECONFIGor~/.kube/config - Optional per-call
kube_contextandkubeconfig_pathtool arguments
The Kubernetes identity must be allowed to call the API server non-resource URL
/metrics.
Run
eks-metrics-mcp-server
or:
python3.11 -m eks_metrics_mcp_server.server
Codex MCP config
[mcp_servers.eks-metrics]
enabled = true
command = "python3.11"
args = ["-m", "eks_metrics_mcp_server.server"]
cwd = "/root/eks-metrics-server/eks-metrics-mcp-server"
[mcp_servers.eks-metrics.env]
PYTHONPATH = "/root/eks-metrics-server/eks-metrics-mcp-server/src"
MCP Tools
get_eks_metrics
Fetch metrics from the selected source.
Important arguments:
source:api_serverorcloudwatch; onlyapi_serveris implementedmetric_name: exact Prometheus metric namemetric_name_pattern: regular expression for metric nameslabel_selectors: label key/value filterslimit: maximum returned samplesinclude_raw: include original Prometheus sample linekube_context: kubeconfig context to usekubeconfig_path: kubeconfig path to use
Example metric names from Kubernetes API server metrics include
apiserver_request_total, apiserver_request_duration_seconds_bucket, and
apiserver_current_inflight_requests.
list_api_server_metric_names
Return metric names available from /metrics, including type/help metadata and
sample counts.
Kubernetes RBAC
For an in-cluster deployment, bind a service account to a role that can read
the /metrics non-resource URL:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: eks-metrics-mcp-api-server-metrics
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: eks-metrics-mcp-api-server-metrics
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: eks-metrics-mcp-api-server-metrics
subjects:
- kind: ServiceAccount
name: eks-metrics-mcp
namespace: default
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.