Elasticsearch 7.x MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_PORTNoMCP server listening port9999
ELASTIC_HOSTYesElasticsearch host address (e.g., http://localhost:9200)
ELASTIC_PASSWORDYesElasticsearch password
ELASTIC_USERNAMEYesElasticsearch username

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
es-ping

Ping Elasticsearch server

es-info

Get Elasticsearch info

es-search

Search documents in Elasticsearch index