Skip to main content
Glama
cr7258

Elasticsearch MCP Server

get_cluster_stats

Retrieve high-level cluster statistics to monitor Elasticsearch cluster health, performance metrics, and resource utilization for operational insights.

Instructions

Returns high-level overview of cluster statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler function for 'get_cluster_stats', registered via @mcp.tool() decorator, which delegates the call to the search client's get_cluster_stats method.
    @mcp.tool() def get_cluster_stats() -> Dict: """Returns high-level overview of cluster statistics.""" return self.search_client.get_cluster_stats()
  • The core helper method in ClusterClient that retrieves cluster statistics directly from the OpenSearch client.
    def get_cluster_stats(self) -> Dict: """Get cluster statistics from OpenSearch.""" return self.client.cluster.stats()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cr7258/elasticsearch-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server