Skip to main content
Glama

Elasticsearch MCP Server

by rishab2404

search

Query Elasticsearch indices using custom DSL to retrieve data with enabled highlights. Optionally include query profiling and execution explanations for deeper analysis.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
explainNoWhether to include explanation of how the query was executed
indexYesName of the Elasticsearch index to search
profileNoWhether to include query profiling information
queryBodyYesComplete Elasticsearch query DSL object that can include query, size, from, sort, etc.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "explain": { "default": false, "description": "Whether to include explanation of how the query was executed", "type": "boolean" }, "index": { "description": "Name of the Elasticsearch index to search", "minLength": 1, "type": "string" }, "profile": { "default": false, "description": "Whether to include query profiling information", "type": "boolean" }, "queryBody": { "additionalProperties": {}, "description": "Complete Elasticsearch query DSL object that can include query, size, from, sort, etc.", "type": "object" } }, "required": [ "index", "queryBody" ], "type": "object" }

Other Tools from Elasticsearch MCP Server

Related Tools

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/rishab2404/mcp_es'

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