Skip to main content
Glama
cr7258

Elasticsearch MCP Server

list_aliases

Retrieve all index aliases in an Elasticsearch cluster. Simplify alias management and ensure efficient indexing and query operations with this tool.

Instructions

List all aliases.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'list_aliases' that lists all aliases by delegating to the search client's list_aliases method.
    @mcp.tool() def list_aliases() -> List[Dict]: """List all aliases.""" return self.search_client.list_aliases()
  • Core implementation in AliasClient that retrieves all aliases from the search engine client.
    def list_aliases(self) -> Dict: """Get all aliases.""" return self.client.cat.aliases()
  • src/server.py:44-53 (registration)
    Includes AliasTools in the list of tool classes registered with the MCP server via ToolsRegister, which instantiates and calls register_tools on it.
    tool_classes = [ IndexTools, DocumentTools, ClusterTools, AliasTools, DataStreamTools, GeneralTools, ] # Register all tools register.register_all_tools(tool_classes)

Other Tools

Related 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/cr7258/elasticsearch-mcp-server'

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