Elasticsearch MCP Server

by awesimon
Verified

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoYour Elasticsearch instance URL
API_KEYNoElasticsearch API key for authentication
CA_CERTNoPath to custom CA certificate for Elasticsearch SSL/TLS
PASSWORDNoElasticsearch password for basic authentication
USERNAMENoElasticsearch username for basic authentication

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 available Elasticsearch indices, support regex

get_mappings

Get field mappings for a specific Elasticsearch index

search

Perform an Elasticsearch search with the provided query DSL. Highlights are always enabled.

elasticsearch_health

Get the health status of the Elasticsearch cluster, optionally include index-level details

create_index

Create an Elasticsearch index, optionally configure settings and mappings

create_mapping

Create or update the mapping structure of an Elasticsearch index

bulk

Bulk data into an Elasticsearch index

reindex

Reindex data from a source index to a target index

create_index_template

Create or update an Elasticsearch index template

get_index_template

Get information about Elasticsearch index templates

delete_index_template

Delete an Elasticsearch index template

ID: p1bzvj7dt9