E

Elasticsearch MCP

Search Elasticsearch and Elastic Cloud indices from natural language.

Elastic·No reviews yet
Repo Docs
Share:

About

Official Elastic MCP server exposing search, aggregation, index-management, and cluster-health tools for Elasticsearch and Elastic Cloud. Convert natural-language questions into DSL queries, explore mappings, and build observability agents on top of your logs, metrics and traces.

Example tools

Illustrative tool names — the actual tool set is defined by the server at runtime.

web_search
Search the web and return top results
fetch_url
Fetch and return the contents of a URL

Screenshots

No screenshots yet.

Frequently Asked Questions

Common questions about Elasticsearch MCP.

What is the Elasticsearch MCP server?
The Elasticsearch MCP server enables natural language interaction with Elasticsearch and Elastic Cloud indices. It translates natural language questions into DSL queries and provides tools for search, aggregation, and index management.
How do I install the Elasticsearch MCP server in an MCP client like Cline?
Installation in an MCP client like Cline typically involves adding the server by its slug. For Elasticsearch, use 'elasticsearch'. Specific configurations, such as connection details, can then be applied within the client's settings.
Does the Elasticsearch MCP server require authentication?
Yes, the Elasticsearch MCP server requires API key authentication. You will need to provide a valid API key to access and manage your Elasticsearch and Elastic Cloud indices.
What key capabilities does the Elasticsearch MCP server expose?
This MCP server exposes tools for searching, performing aggregations, managing indices, and checking cluster health. It supports exploring mappings and building observability agents.
What is a limitation of the Elasticsearch MCP server?
A limitation is that its effectiveness depends on the quality and structure of the underlying Elasticsearch index mappings. Poorly defined mappings can hinder accurate natural language query translation and performance.
Is there a cost associated with using the Elasticsearch MCP server?
The cost of using the Elasticsearch MCP server depends on your Elastic Cloud subscription or the licensing of your self-managed Elasticsearch deployment. The server itself is open source.

Install Elasticsearch MCP

Claude Desktop

Add this to claude_desktop_config.json.

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch"
      ]
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json.

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch"
      ]
    }
  }
}

VS Code

Add this to your workspace settings.json.

{
  "mcp.servers": {
    "elasticsearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch"
      ]
    }
  }
}

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Discussion(0)

Sign in to join the discussion.

No comments yet.