Skip to main content
Glama
jesee

Elasticsearch MCP Server

by jesee

Elasticsearch MCP Server

Elasticsearch MCP 服务器,支持 Claude Code、VSCode (Cline)、Cursor 等工具。

安装

npm install -g es-mcp-server

Related MCP server: Elastic MCP

配置

环境变量

变量

说明

默认值

ES_HOST

ES 地址

localhost:9200

ES_USERNAME

用户名

-

ES_PASSWORD

密码

-

ES_API_KEY

API Key

-

Claude Code 配置

{
  "mcpServers": {
    "elasticsearch": {
      "command": "es-mcp-server",
      "env": {
        "ES_HOST": "localhost:9200"
      }
    }
  }
}

VSCode (Cline) 配置

路径: ~/.config/Code/User/globalStorage/hybridtalentcomputing.cline-chinese/settings/cline_chinese_mcp_settings.json

{
  "mcpServers": {
    "elasticsearch": {
      "command": "es-mcp-server",
      "env": {
        "ES_HOST": "localhost:9200"
      }
    }
  }
}

Cursor 配置

{
  "mcpServers": {
    "elasticsearch": {
      "command": "es-mcp-server",
      "env": {
        "ES_HOST": "localhost:9200"
      }
    }
  }
}

可用工具

工具

说明

es_health_check

集群健康检查

es_list_indices

列出所有索引

es_create_index

创建索引

es_delete_index

删除索引

es_index_document

索引文档

es_get_document

获取文档

es_search

搜索文档

es_update_document

更新文档

es_delete_document

删除文档

es_cluster_info

集群信息

使用示例

搜索文档

{
  "index": "user_info",
  "query": {
    "match": { "content": "总监" }
  },
  "size": 10
}

索引文档

{
  "index": "products",
  "document": {
    "name": "iPhone",
    "price": 999
  }
}

许可证

MIT

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jesee/es-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server