Skip to main content
Glama
imlewc

Elasticsearch 7.x MCP Server

by imlewc

es-info

Retrieve Elasticsearch cluster information and configuration details from the MCP server for monitoring and troubleshooting database operations.

Instructions

Get Elasticsearch info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reqYes

Implementation Reference

  • Handler function for the 'es-info' tool. Calls self.es_client.info() to retrieve Elasticsearch cluster information and returns it wrapped in a success dict or error on failure.
    def _handle_info(self, req: Dict[str, Any]) -> Dict[str, Any]: """Get Elasticsearch cluster info.""" try: info = self.es_client.info() return {"success": True, "info": info} except Exception as e: self.logger.error(f"Error getting Elasticsearch info: {str(e)}") return {"success": False, "error": str(e)}
  • Registration of the 'es-info' tool using FastMCP's tool decorator, linking it to the _handle_info handler function.
    self.server.tool(name="es-info", description="Get Elasticsearch info")(self._handle_info)

Other Tools

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/imlewc/elasticsearch7-mcp-server'

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