AgentHubAgentHub

Elasticsearch

MCP ServerMCP Registry官方收录

io.github.TocharianOU/elasticsearch · v0.7.2

Elasticsearch MCP Server with multi-version support (ES 5.x-9.x) and comprehensive API access

概览

Elasticsearch 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio、streamable-http 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "<ES_URL>"
      }
    }
  }
}

环境变量

ES_URL必填

Your Elasticsearch instance URL (e.g., https://localhost:9200)

ES_API_KEY可选secret

Elasticsearch API key for authentication

ES_USERNAME可选

Elasticsearch username for basic authentication

ES_PASSWORD可选secret

Elasticsearch password for basic authentication

ES_CA_CERT可选

Path to custom CA certificate for Elasticsearch SSL/TLS

NODE_TLS_REJECT_UNAUTHORIZED可选

Set to '0' to disable SSL certificate validation (development only)

MAX_TOKEN_CALL可选

Maximum tokens per API call

MCP_TRANSPORT必填

Transport mode selection

MCP_HTTP_PORT可选

HTTP server port (when using HTTP transport)

MCP_HTTP_HOST可选

HTTP server host (when using HTTP transport)

ES_URL必填

Your Elasticsearch instance URL (e.g., https://localhost:9200)

ES_API_KEY可选secret

Elasticsearch API key for authentication

ES_USERNAME可选

Elasticsearch username for basic authentication

ES_PASSWORD可选secret

Elasticsearch password for basic authentication

ES_CA_CERT可选

Path to custom CA certificate for Elasticsearch SSL/TLS

NODE_TLS_REJECT_UNAUTHORIZED可选

Set to '0' to disable SSL certificate validation (development only)

MAX_TOKEN_CALL可选

Maximum tokens per API call

相关资源

统一 Manifest

{
  "id": "io.github.TocharianOU/elasticsearch",
  "type": "mcp-server",
  "version": "0.7.2",
  "displayName": "Elasticsearch",
  "description": "Elasticsearch MCP Server with multi-version support (ES 5.x-9.x) and comprehensive API access",
  "repository": {
    "url": "https://github.com/TocharianOU/elasticsearch-mcp",
    "source": "github"
  },
  "homepage": "https://github.com/TocharianOU/elasticsearch-mcp",
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@tocharianou/elasticsearch-mcp",
        "version": "0.7.2",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "ES_URL",
            "description": "Your Elasticsearch instance URL (e.g., https://localhost:9200)",
            "isRequired": true
          },
          {
            "name": "ES_API_KEY",
            "description": "Elasticsearch API key for authentication",
            "isSecret": true
          },
          {
            "name": "ES_USERNAME",
            "description": "Elasticsearch username for basic authentication"
          },
          {
            "name": "ES_PASSWORD",
            "description": "Elasticsearch password for basic authentication",
            "isSecret": true
          },
          {
            "name": "ES_CA_CERT",
            "description": "Path to custom CA certificate for Elasticsearch SSL/TLS"
          },
          {
            "name": "NODE_TLS_REJECT_UNAUTHORIZED",
            "description": "Set to '0' to disable SSL certificate validation (development only)"
          },
          {
            "name": "MAX_TOKEN_CALL",
            "description": "Maximum tokens per API call"
          }
        ]
      },
      {
        "registryType": "npm",
        "identifier": "@tocharianou/elasticsearch-mcp",
        "version": "0.7.2",
        "transport": "streamable-http",
        "environmentVariables": [
          {
            "name": "MCP_TRANSPORT",
            "description": "Transport mode selection",
            "isRequired": true
          },
          {
            "name": "MCP_HTTP_PORT",
            "description": "HTTP server port (when using HTTP transport)"
          },
          {
            "name": "MCP_HTTP_HOST",
            "description": "HTTP server host (when using HTTP transport)"
          },
          {
            "name": "ES_URL",
            "description": "Your Elasticsearch instance URL (e.g., https://localhost:9200)",
            "isRequired": true
          },
          {
            "name": "ES_API_KEY",
            "description": "Elasticsearch API key for authentication",
            "isSecret": true
          },
          {
            "name": "ES_USERNAME",
            "description": "Elasticsearch username for basic authentication"
          },
          {
            "name": "ES_PASSWORD",
            "description": "Elasticsearch password for basic authentication",
            "isSecret": true
          },
          {
            "name": "ES_CA_CERT",
            "description": "Path to custom CA certificate for Elasticsearch SSL/TLS"
          },
          {
            "name": "NODE_TLS_REJECT_UNAUTHORIZED",
            "description": "Set to '0' to disable SSL certificate validation (development only)"
          },
          {
            "name": "MAX_TOKEN_CALL",
            "description": "Maximum tokens per API call"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.TocharianOU/elasticsearch",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.TocharianOU%2Felasticsearch/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
Elasticsearch — MCP Server 安装与配置 · AgentHub