Elasticsearch MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ELASTIC_HOSTYesThe URL of the Elasticsearch clusterhttps://localhost:9200
ELASTIC_PASSWORDYesPassword for Elasticsearch authenticationtest123
ELASTIC_USERNAMEYesUsername for Elasticsearch authenticationelastic

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_indices

List all indices in the Elasticsearch cluster

get_mapping

Get index mapping

get_settings

Get index settings

search_documents

Search documents in an index with a custom query

get_cluster_health

Get cluster health status

get_cluster_stats

Get cluster statistics