mcp-elasticsearch
mcp-elasticsearch
Elasticsearch MCP サーバー(Model Context Protocol)- 読み取り専用の検索のみ。
機能
読み取り専用の操作のみを公開します:
list_indices- すべてのインデックスを一覧表示get_mapping- インデックスのマッピングを取得search- 検索/集計クエリを実行
Related MCP server: Elasticsearch MCP Server
2つのトランスポートモードをサポート
1. stdio(ローカル/スタンドアロン展開用)
python -m mcp_elasticsearch --transport stdio --url http://localhost:92002. sse(リモート/コンテナ化展開用)
python -m mcp_elasticsearch --transport sse --host 0.0.0.0 --port 8002 --url http://elasticsearch:9200 [--api-key your-secret-key]環境変数
すべてのコマンドライン引数は環境変数でも設定できます:
TRANSPORT-stdioまたはsse(デフォルト:stdio)HOST- sse モードのバインドホスト(デフォルト:0.0.0.0)PORT- sse モードのバインドポート(デフォルト:8002)ELASTICSEARCH_URL- Elasticsearch の URLAPI_KEY- クライアント認証用のオプションの API キー
Docker
FROM python:3.11-slim
WORKDIR /app
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-dev --no-root
COPY mcp_elasticsearch/ ./mcp_elasticsearch/
EXPOSE 8002
CMD ["python", "-m", "mcp_elasticsearch"]This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Read-only MCP security data: check catalogue, public scan status and your own scan reports.
Read-only MCP for identity resolution and write guardrails.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA read-only MCP server for Elasticsearch 7.10 clusters, providing tools for cluster info, health, index listing, and Query DSL search with Google OAuth and Bearer token authentication.4 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides tools and resources to interact with Elasticsearch clusters, including listing indices, searching, and retrieving mappings.3MIT
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server for Elasticsearch log querying. Enables natural language search, filtering, context retrieval, and aggregation of logs.-
- AlicenseAqualityCmaintenanceEnables any MCP-compatible agent to query, diagnose, map, and operate Elasticsearch or OpenSearch clusters via REST, with read-only defaults and layered safety controls.34Apache 2.0