EM

elastic/mcp-server-elasticsearch

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

728 stars 160 forks 品質 91 トレンド 42Apache-2.0

このMCPサーバーは非推奨で、今後は重要なセキュリティアップデートのみを受け取る予定です。Elastic 9.2で利用可能なElastic Agent Builder MCPエンドポイントに置き換えられました。

概要

このMCPサーバーは非推奨であり、今後は重要なセキュリティアップデートのみを受け取る予定です。Elastic Agent Builder MCPエンドポイントに置き換えられ、Elastic 9.2.0+およびElasticsearch Serverlessプロジェクトで利用可能です。 Elasticsearch MCPサーバーは、モデルコンテキストプロトコル(MCP)を使ってAIエージェントをElasticsearchデータに接続します。これにより、Elasticsearchインデックスとの自然言語によるやり取りが可能になり、エージェントはカスタムAPIなしでデータをクエリ、分析、取得できます。 AWSマーケットプレイスからElasticsearch MCPサーバーコンテナイメージを展開・設定するには、以下の手順に従ってください。 - Elasticsearchクラスタ(バージョン8.xまたは9)。

概要(AI 翻訳)

[!注意] このMCPサーバーは非推奨で、今後は重要なセキュリティアップデートのみを受け取る予定です。 Elastic Agent Builder MCPエンドポイントに置き換えられ、Elastic 9.2.0+およびElasticsearch Serverlessプロジェクトで利用可能です。

AIエージェントにはElasticsearch MCPサーバーを活用

Elasticsearch MCPサーバーは、モデルコンテキストプロトコル(MCP)を使ってAIエージェントをElasticsearchデータに接続します。 これにより、Elasticsearchインデックスとの自然言語によるやり取りが可能となり、エージェントはカスタムAPIなしでデータをクエリ、分析、取得できます。

AWSマーケットプレイスからElasticsearch MCPサーバーコンテナイメージを展開・設定するには、以下の手順に従ってください。

始める前に

始める前に、以下のことを確認してください:

  • AWS環境からアクセス可能なElasticsearchクラスター(バージョン8.xまたは9.x)
  • Elasticsearch認証認証情報:
  • APIキー、または
  • ユーザー名とパスワードのペア
  • AWS環境(例えばEC2インスタンスやコンテナサービス上)にインストールされ実行中のDocker
  • 設定済みのMCPクライアント(例:Claude Desktop、Cursor、VS Code、または他のMCP互換ツール)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Elasticsearch MCP Server

[!CAUTION] This MCP server is deprecated and will only receive critical security updates going forward. It has been superseded by the Elastic Agent Builder MCP endpoint, which is available in Elastic 9.2.0+ and Elasticsearch Serverless projects.

Use the Elasticsearch MCP Server for AI Agents

The Elasticsearch MCP Server connects your AI agents to Elasticsearch data using the Model Context Protocol (MCP). It enables natural language interactions with your Elasticsearch indices, allowing agents to query, analyze, and retrieve data without custom APIs.

Follow these steps to deploy and configure the Elasticsearch MCP Server container image from AWS Marketplace.

Before you begin

Before you start, ensure you have:

  • An Elasticsearch cluster (version 8.x or 9.x) accessible from your AWS environment
  • Elasticsearch authentication credentials:
  • Docker installed and running in your AWS environment (for example, on an EC2 instance or in a container service)
  • An MCP client configured (such as Claude Desktop, Cursor, VS Code, or another MCP-compatible tool)
  • Network connectivity between your deployment environment and your Elasticsearch cluster

[!NOTE]

These instructions apply to Elasticsearch MCP Server 0.4.0 and later. For versions 0.3.1 and earlier, refer to the README for v0.3.1.

Deploy the Elasticsearch MCP Server

The Elasticsearch MCP Server is provided as a Docker container image available from AWS Marketplace. You can run it using either the stdio protocol (for direct client connections) or the streamable-HTTP protocol (for web-based integrations).

Choose a protocol

The server supports two protocols:

  • stdio: Direct communication between the MCP client and server. Use this when your client supports stdio and runs in the same environment.
  • streamable-HTTP: HTTP-based protocol recommended for web integrations, stateful sessions, and concurrent clients.

Note: Server-Sent Events (SSE) is deprecated. Use streamable-HTTP instead.

Configure the stdio protocol

Use the stdio protocol when your MCP client connects directly to the server process.

Set environment variables for stdio mode

Set the following environment variables:

  • ES_URL: The URL of your Elasticsearch cluster (for example, https://your-cluster.es.amazonaws.com:9200)
  • For authentication, use one of these options:
    • API key: Set ES_API_KEY to your Elasticsearch API key
GitHub で README 全文を見る

インストール

docker run -i --rm -e ES_URL -e ES_API_KEY docker.elastic.co/mcp/elasticsearch stdio
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "elasticsearch-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "ES_URL", "-e", "ES_API_KEY", "docker.elastic.co/mcp/elasticsearch", "stdio" ], "env": { "ES_URL": "<elasticsearch-cluster-url>", "ES_API_KEY": "<elasticsearch-API-key>" } } } }