
awesimon/elasticsearch-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Elasticsearch MCP сервер с доступными функциями, включая управление отображениями, поиск и индексирование, а также управление индексами и т. Д.
Обзор
MCP Сервер для подключения к кластеру Elasticsearch напрямую от любого клиента MCP (например, Claude Desktop, Cursor). Этот сервер соединяет агентов с вашими данными Elasticsearch с помощью протокола Model Context. Это позволяет вам взаимодействовать с индексами Elasticsearch через разговоры на естественном языке. * elasticsearch health: Получите статус здоровья кластера Elasticsearch, необязательно включая детали уровня индекса * list indices: List available Elasticsearch indexs, support regex * create index: Create Elasticsearch index with optional settings and mappings * reindex: Reindex data from the source index to a target index with optionalquery and script Получите отображения полей для определенного индекса Elasticsearch * Create mapping: Создание или обновление структуры отображения для индекса Elasticsearch * поиск: выполните поиск Elasticsearch с предоставленным запросом DSL * bulk: Объем данных в индекс Elasticsearch Создать index template: Создать или обновить шаблон индекса.
Обзор (машинный перевод)
Английский | 中
MCP Сервер для подключения к кластеру Elasticsearch напрямую от любого клиента MCP (например, Claude Desktop, Cursor).
Этот сервер соединяет агентов с вашими данными Elasticsearch с помощью протокола Model Context. Это позволяет вам взаимодействовать с индексами Elasticsearch через разговоры на естественном языке.
Демо
Функциональный обзор
Доступные функции
###Управление кластером [[Т0]]: Получите статус здоровья кластера Elasticsearch, необязательно включая детали уровня индекса
####Индексные операции [[Т1]]: Список доступных индексов Elasticsearch, поддержка regex [[Т2]]: Создайте индекс Elasticsearch с дополнительными настройками и отображениями [[Т3]]: Reindex данные из исходного индекса в целевой индекс с дополнительным запросом и скриптом
###Управление картами [[Т4]]: Получите отображения полей для определенного индекса Elasticsearch [[Т5]]: Создание или обновление структуры отображения для индекса Elasticsearch
Поиск и обработка данных
search: выполните поиск по Elasticsearch с предоставленным запросом DSL
[[Т7]]: Отображение данных в Elasticsearch Index
####Управление шаблонами [[Т8]]: Создание или обновление шаблона индекса
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Elasticsearch MCP Server
MCP Server for connecting to your Elasticsearch cluster directly from any MCP Client (like Claude Desktop, Cursor).
This server connects agents to your Elasticsearch data using the Model Context Protocol. It allows you to interact with your Elasticsearch indices through natural language conversations.
Demo
Feature Overview
Available Features
Cluster Management
elasticsearch_health: Get Elasticsearch cluster health status, optionally including index-level details
Index Operations
list_indices: List available Elasticsearch indices, support regexcreate_index: Create Elasticsearch index with optional settings and mappingsreindex: Reindex data from a source index to a target index with optional query and script
Mapping Management
get_mappings: Get field mappings for a specific Elasticsearch indexcreate_mapping: Create or update mapping structure for an Elasticsearch index
Search & Data Operations
search: Perform an Elasticsearch search with the provided query DSLbulk: Bulk data into an Elasticsearch index
Template Management
create_index_template: Create or update an index templateget_index_template: Get information about index templatesdelete_index_template: Delete an index template
How It Works
- The MCP Client analyzes your request and determines which Elasticsearch operations are needed.
- The MCP server carries out these operations (listing indices, fetching mappings, performing searches).
- The MCP Client processes the results and presents them in a user-friendly format.
Getting Started
Prerequisites
- Elasticsearch 8.x (recommended; this is the current primary compatibility target)
- An Elasticsearch instance
- Elasticsearch authentication credentials (API key or username/password)
- MCP Client (e.g. Claude Desktop, Cursor)
[!NOTE] This project depends on the Node.js client
@elastic/elasticsearch@^8.17.1. That client dependency is not a minimum Elasticsearch server version. Elastic’s official compatibility matrix aligns client and server major versions and describes forward compatibility with higher minor versions within the same major version. This repository does not claim that every Elasticsearch 8.x minor or patch release has been validated;npm testcurrently runs TypeScript compilation only and does not establish Elasticsearch server compatibility. Elasticsearch 7.x, 9.x, and other major versions have not been validated.
Installation & Setup
Using the Published NPM Package
[!TIP]
Установка
npx -y @awesome-ai/elasticsearch-mcpКонфигурация
{
"mcpServers": {
"elasticsearch-mcp": {
"command": "npx",
"args": [
"-y",
"@awesome-ai/elasticsearch-mcp"
],
"env": {
"ES_HOST": "your-elasticsearch-host",
"ES_API_KEY": "your-api-key"
}
}
}
}