Elasticsearch MCP by usefulapi

Check cluster health, read indices and mappings, and search or count documents in Elasticsearch.

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
81%
命名の品質
78%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(1)

  • LOWTool 'elasticsearch_list_data_streams' name length outside 3-30 rangeelasticsearch_list_data_streams 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~1,794トークン数(ツール定義)
~894 B一般的なレスポンスサイズ
注意への影響は中程度(128k コンテキストの 1.40%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "elasticsearch": {
      "url": "https://elasticsearch.usefulapi.io/mcp"
    }
  }
}

リモートエンドポイント

https://elasticsearch.usefulapi.io/mcpstreamable-http

できること

ツール一覧

ツール(13)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢elasticsearch_cluster_info

Get the cluster name, node name, and Elasticsearch version of this cluster. Good first call to confirm the connection. API: GET /.

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_cluster_health(level)

Get cluster health status (green, yellow, red), node and shard counts, and unassigned shards. API: GET /_cluster/health.

入力スキーマ

{
  "type": "object",
  "properties": {
    "level": {
      "description": "Detail level (default cluster).",
      "type": "string",
      "enum": [
        "cluster",
        "indices",
        "shards"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_cluster_stats

Get cluster-wide statistics: document and store totals, node count, JVM memory, and versions. API: GET /_cluster/stats.

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_list_nodes

List cluster nodes with roles, heap and disk usage, CPU, and load. API: GET /_cat/nodes (format=json).

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_list_indices(index, health)

List indices with health, status, document count, store size, and shard counts. Optional name pattern. API: GET /_cat/indices (format=json).

入力スキーマ

{
  "type": "object",
  "properties": {
    "index": {
      "description": "Index name or wildcard pattern, e.g. logs-*. Omit to list all.",
      "type": "string",
      "minLength": 1
    },
    "health": {
      "description": "Only indices with this health.",
      "type": "string",
      "enum": [
        "green",
        "yellow",
        "red"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_get_index(index)

Get an index's settings, mappings, and aliases in one call. API: GET /{index}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "index": {
      "type": "string",
      "minLength": 1,
      "description": "Index, alias or data stream name. Comma lists and wildcards work, e.g. logs-*."
    }
  },
  "required": [
    "index"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_get_mapping(index)

Get the field mappings (field names and types) of an index, alias or data stream. Read this before writing a search query. API: GET /{index}/_mapping.

入力スキーマ

{
  "type": "object",
  "properties": {
    "index": {
      "type": "string",
      "minLength": 1,
      "description": "Index, alias or data stream name. Comma lists and wildcards work, e.g. logs-*."
    }
  },
  "required": [
    "index"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_list_aliases(name)

List index aliases and the indices they point to. API: GET /_alias or GET /_alias/{name}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "name": {
      "description": "Name or wildcard pattern. Omit to list all.",
      "type": "string",
      "minLength": 1
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_list_data_streams(name)

List data streams with their backing indices, generation, and status. API: GET /_data_stream or GET /_data_stream/{name}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "name": {
      "description": "Name or wildcard pattern. Omit to list all.",
      "type": "string",
      "minLength": 1
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_search(index, query, size, from, sort, ...)

Search documents in one or more indices with a Query DSL object. Returns hits, total count, and optional aggregations. Use elasticsearch_get_mapping first to learn the field names. API: POST /{index}/_search.

入力スキーマ

{
  "type": "object",
  "properties": {
    "index": {
      "type": "string",
      "minLength": 1,
      "description": "Index, alias or data stream name. Comma lists and wildcards work, e.g. logs-*."
    },
    "query": {
      "description": "Elasticsearch Query DSL object, e.g. {\"match\": {\"title\": \"invoice\"}}. Omit to match all documents.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "size": {
      "description": "Number of hits to return (0-100, default 10).",
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "from": {
      "description": "Offset of the first hit (0-10000).",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "sort": {
      "description": "Sort clauses, e.g. [{\"created_at\": \"desc\"}].",
      "type": "array",
      "items": {}
    },
    "source_fields": {
      "description": "Only return these fields of each document (_source filter).",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "aggs": {
      "description": "Aggregations object, e.g. {\"by_status\": {\"terms\": {\"field\": \"status\"}}}.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "index"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_count(index, query)

Count the documents that match a Query DSL object in one or more indices. API: POST /{index}/_count.

入力スキーマ

{
  "type": "object",
  "properties": {
    "index": {
      "type": "string",
      "minLength": 1,
      "description": "Index, alias or data stream name. Comma lists and wildcards work, e.g. logs-*."
    },
    "query": {
      "description": "Elasticsearch Query DSL object, e.g. {\"match\": {\"title\": \"invoice\"}}. Omit to match all documents.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "index"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_get_document(index, id, source_fields, routing)

Get one document by index and id. Optional source_fields limits the returned fields. API: GET /{index}/_doc/{id}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "index": {
      "type": "string",
      "minLength": 1,
      "description": "Index or alias that holds the document."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "Document id."
    },
    "source_fields": {
      "description": "Only return these fields.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "routing": {
      "description": "Routing value, if the document was indexed with one.",
      "type": "string"
    }
  },
  "required": [
    "index",
    "id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticsearch_esql_query(query)

Run a read-only ES|QL query, e.g. 'FROM logs-* | WHERE status >= 500 | STATS count = COUNT(*) BY service | LIMIT 20'. Returns columns and rows. API: POST /_query.

入力スキーマ

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000,
      "description": "The ES|QL query text."
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 13 件