elasticsearch-mcp

Elasticsearch MCP Server

Octodet’s elasticsearch-mcp connects LLM applications to Elasticsearch for searching data, editing documents, and inspecting clusters. It serves developers using MCP clients with tools for index management, bulk changes, and query-based updates or deletions.

Server facts

elasticsearch-mcp

Project

Author
Octodet
License
Not specified
Category
Databases

Tech

Runtime / language
Not specified
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
3
Last commit
Data as of

Tags

  • elasticsearch

Overview

Elasticsearch search and maintenance workflows are exposed through elasticsearch-mcp’s 16 tools. Applications can discover indices, inspect their field definitions, and run DSL searches with highlighting and script fields. Document counts can cover an entire index or a query-selected subset. For checking cluster state and structure, the toolset includes health information, shard details, index templates, and aliases. These operations let MCP-connected LLM applications examine both stored data and the Elasticsearch structures surrounding it before making changes.

Write operations cover adding documents, applying partial updates, and deleting records by ID. Query-driven changes support scripted updates or deletion of matching documents, with options for conflict handling and index refresh. The bulk tool groups document operations into a single API request, while index creation accepts settings and mappings; index deletion is also available. The project documents integration with Claude Desktop and VS Code, plus programmatic use from Node.js applications. Connection configuration includes API-key or username-and-password authentication, a custom CA certificate path, and an Elasticsearch path prefix.

elasticsearch-mcp setup notes

  • elasticsearch-mcp records stdio only; confirm a network transport upstream before planning remote access.
  • elasticsearch-mcp has no recorded license; confirm reuse terms in its repository.

Related MCP servers