
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that exposes Elasticsearch operations as tools so LLM-powered applications can search, update, and manage Elasticsearch data.
Octodet Elasticsearch MCP Server is cataloged as an MCP server attributed to octodet. A Model Context Protocol server that exposes Elasticsearch operations as tools so LLM-powered applications can search, update, and manage Elasticsearch data. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Octodet Elasticsearch MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server provides 16 MCP tools for Elasticsearch operations.
The ES_VERSION setting accepts Elasticsearch version 8 or 9.
README.md · ceaf3b0faf58 · Fetched 2026-11-13 12:10:18 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server for Elasticsearch operations, providing a comprehensive set of tools for interacting with Elasticsearch clusters through the standardized Model Context Protocol. This server enables LLM-powered applications to search, update, and manage Elasticsearch data.
Install the package globally:
npm install -g @octodet/elasticsearch-mcp
Or use it directly with npx:
npx @octodet/elasticsearch-mcp
npm install
npm run build
Add the following configuration to your VS Code settings.json to integrate with the VS Code MCP extension:
"mcp.servers": {
"elasticsearch": {
"command": "npx",
"args": [
"-y", "@octodet/elasticsearch-mcp"
],
"env": {
"ES_URL": "http://localhost:9200",
"ES_API_KEY": "your_api_key",
"ES_VERSION": "8"
}
}
}
Configure in your Claude Desktop configuration file:
{
"mcpServers": {
"elasticsearch": {
"command": "npx",
"args": ["-y", "@octodet/elasticsearch-mcp"],
"env": {
"ES_URL": "http://localhost:9200",
"ES_API_KEY": "your_api_key",
"ES_VERSION": "8"
}
}
}
}
If you're developing the MCP server locally, you can configure the clients to use your local build:
{
"mcpServers": {
"elasticsearch": {
"command": "node",
"args": ["path/to/build/index.js"],
"env": {
"ES_URL": "http://localhost:9200",
"ES_API_KEY": "your_api_key",
"ES_VERSION": "8"
}
}
}
}
The server uses the following environment variables for configuration:
| Variable | Description | Default |
|---|---|---|
| ES_URL | Elasticsearch server URL | http://localhost:9200 |
| ES_API_KEY | API key for authentication | |
| ES_USERNAME | Username for authentication | |
| ES_PASSWORD | Password for authentication | |
| ES_CA_CERT | Path to custom CA certificate | |
| ES_VERSION | Elasticsearch version (8 or 9) | 8 |
| ES_SSL_SKIP_VERIFY | Skip SSL verification | false |
| ES_PATH_PREFIX | Path prefix for Elasticsearch |
The server provides 16 MCP tools for Elasticsearch operations. Each tool is documented with its required and optional parameters:
List all available Elasticsearch indices with detailed information.
Parameters:
indexPattern (optional, string): Pattern to filter indices (e.g., "logs-", "my-index-")Example:
{
"indexPattern": "logs-*"
}
Get field mappings for a specific Elasticsearch index.
Parameters:
index (required, string): The name of the index to get mappings forExample:
{
"index": "my-index"
}
Perform an Elasticsearch search with the provided query DSL and highlighting.
Parameters:
index (required, string): The index or indices to search in (supports comma-separated values)queryBody (required, object): The Elasticsearch query DSL bodyhighlight (optional, boolean): Enable search result highlighting (default: true)Example:
{
"index": "my-index",
"queryBody": {
"query": {
"match": {
"content": "search term"
}
},
"size": 10,
"from": 0,
"sort": [{ "_score": { "order": "desc" } }]
},
"highlight": true
}
Get health information about the Elasticsearch cluster.
Parameters:
Example:
{}
Get shard information for all or specific indices.
Parameters:
index (optional, string): Specific index to get shard information for. If omitted, returns shards for all indicesExample:
{
"index": "my-index"
}
Add a new document to a specific Elasticsearch index.
Parameters:
index (required, string): The index to add the document todocument (required, object): The document content to addid (optional, string): Document ID. If omitted, Elasticsearch will generate one automaticallyExample:
{
"index": "my-index",
"id": "doc1",
"document": {
"title": "My Document",
"content": "Document content here",
"timestamp": "2025-06-23T10:30:00Z",
"tags": ["important", "draft"]
}
}
Update an existing document in a specific Elasticsearch index.
Parameters:
index (required, string): The index containing the documentid (required, string): The ID of the document to updatedocument (required, object): The partial document with fields to updateExample:
{
"index": "my-index",
"id": "doc1",
"document": {
"title": "Updated Document Title",
"last_modified": "2025-06-23T10:30:00Z"
}
}
Delete a document from a specific Elasticsearch index.
Parameters:
index (required, string): The index containing the documentid (required, string): The ID of the document to deleteExample:
{
"index": "my-index",
"id": "doc1"
}
Update documents in an Elasticsearch index based on a query.
Parameters:
index (required, string): The index to update documents inquery (required, object): Elasticsearch query to match documents for updatescript (required, object): Script to execute for updating matched documentsconflicts (optional, string): How to handle version conflicts ("abort" or "proceed", default: "abort")refresh (optional, boolean): Whether to refresh the index after the operation (default: false)Example:
{
"index": "my-index",
"query": {
"term": {
"status": "active"
}
},
"script": {
"source": "ctx._source.status = params.newStatus; ctx._source.updated_at = params.timestamp",
"params": {
"newStatus": "inactive",
"timestamp": "2025-06-23T10:30:00Z"
}
},
"conflicts": "proceed",
"refresh": true
}
Delete documents in an Elasticsearch index based on a query.
Parameters:
index (required, string): The index to delete documents fromquery (required, object): Elasticsearch query to match documents for deletionconflicts (optional, string): How to handle version conflicts ("abort" or "proceed", default: "abort")refresh (optional, boolean): Whether to refresh the index after the operation (default: false)Example:
{
"index": "my-index",
"query": {
"range": {
"created_date": {
"lt": "2025-01-01"
}
}
},
"conflicts": "proceed",
"refresh": true
}
Perform multiple document operations in a single API call for better performance.
Parameters:
operations (required, array): Array of operation objects, each containing:
action (required, string): The operation type ("index", "create", "update", or "delete")index (required, string): The index for this operationid (optional, string): Document ID (required for update/delete, optional for index/create)document (conditional, object): Document content (required for index/create/update operations)Example:
{
"operations": [
{
"action": "index",
"index": "my-index",
"id": "doc1",
"document": { "title": "Document 1", "content": "Content here" }
},
{
"action": "update",
"index": "my-index",
"id": "doc2",
"document": { "title": "Updated Title" }
},
{
"action": "delete",
"index": "my-index",
"id": "doc3"
}
]
}
Create a new Elasticsearch index with optional settings and mappings.
Parameters:
index (required, string): The name of the index to createsettings (optional, object): Index settings like number of shards, replicas, etc.mappings (optional, object): Field mappings defining how documents should be indexedExample:
{
"index": "new-index",
"settings": {
"number_of_shards": 3,
"number_of_replicas": 1,
"analysis": {
"analyzer": {
"custom_analyzer": {
"type": "standard",
"stopwords": "_english_"
}
}
}
},
"mappings": {
"properties": {
"title": {
"type": "text",
"analyzer": "custom_analyzer"
},
"created": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss'Z'"
},
"tags": {
"type": "keyword"
}
}
}
}
Delete an Elasticsearch index permanently.
Parameters:
index (required, string): The name of the index to deleteExample:
{
"index": "my-index"
}
Count documents in an index, optionally filtered by a query.
Parameters:
index (required, string): The index to count documents inquery (optional, object): Elasticsearch query to filter documents for countingExample:
{
"index": "my-index",
"query": {
"bool": {
"must": [
{ "term": { "status": "active" } },
{ "range": { "created_date": { "gte": "2025-01-01" } } }
]
}
}
}
Get index templates from Elasticsearch.
Parameters:
name (optional, string): Specific template name to retrieve. If omitted, returns all templatesExample:
{
"name": "logs-template"
}
Get index aliases from Elasticsearch.
Parameters:
name (optional, string): Specific alias name to retrieve. If omitted, returns all aliasesExample:
{
"name": "logs-alias"
}
Run the server in watch mode during development:
npm run dev
This server implements the Model Context Protocol to enable standardized communication between LLM clients and Elasticsearch. It provides a set of tools that can be invoked by MCP clients to perform various Elasticsearch operations.
To add a new tool to the server:
src/index.ts using the MCP server's tool registration formatsrc/utils/elasticsearchService.tsThis server can be used with any MCP-compatible client, including:
You can also use the server programmatically in your Node.js applications:
import { createOctodetElasticsearchMcpServer } from "@octodet/elasticsearch-mcp";
import { CustomTransport } from "@modelcontextprotocol/sdk/server";
// Configure the Elasticsearch connection
const config = {
url: "http://localhost:9200",
apiKey: "your_api_key",
version: "8",
};
// Create and start the server
async function startServer() {
const server = await createOctodetElasticsearchMcpServer(config);
// Connect to your custom transport
const transport = new CustomTransport();
await server.connect(transport);
console.log("Elasticsearch MCP server started");
}
startServer().catch(console.error);
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Octodet Elasticsearch MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/elasticsearch-mcp-octodet)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.