Skip to main content
Glama
cr7258

Elasticsearch MCP Server

list_indices

Retrieve a comprehensive list of all indices within an Elasticsearch cluster to manage and organize data effectively.

Instructions

List all indices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'list_indices': decorated with @mcp.tool(), provides docstring and type hints for schema, executes by calling search_client.list_indices()
    @mcp.tool() def list_indices() -> List[Dict]: """List all indices.""" return self.search_client.list_indices()
  • Core implementation of index listing in IndexClient using the underlying client's cat.indices() method.
    def list_indices(self) -> Dict: """List all indices.""" return self.client.cat.indices()

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