MCP.so
登录

Elasticsearch MCP Server

@awesimon

基本信息

分类

数据库

许可证

MIT

传输方式

stdio

作者

awesimon

关于 Elasticsearch MCP Server

Elasticsearch MCP server with available features including mappings management, search and indexing, and index management etc.

Elasticsearch MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "elasticsearch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@awesome-ai/elasticsearch-mcp"
      ],
      "env": {
        "ES_HOST": "your-elasticsearch-host",
        "ES_API_KEY": "your-api-key"
      }
    }
  }
}

Elasticsearch MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Elasticsearch MCP Server?

A Model Context Protocol server that connects MCP Clients—such as Claude Desktop or Cursor—to an Elasticsearch cluster, enabling users to interact with their indices and data through natural language conversations.

How to use Elasticsearch MCP Server?

Configure your MCP Client using npx with the published npm package (@awesome-ai/elasticsearch-mcp), providing your Elasticsearch host and authentication credentials via environment variables (ES_HOST, ES_API_KEY or ES_USERNAME/ES_PASSWORD). After setup, the server connects automatically, and you can query your cluster using everyday language.

Key features of Elasticsearch MCP Server

  • Check cluster health with optional index-level details
  • List, create, and reindex Elasticsearch indices
  • Get and create field mappings for indices
  • Search Elasticsearch with query DSL
  • Bulk-import data into an index
  • Create, list, and delete index templates

Use cases of Elasticsearch MCP Server

  • Ask for the health status and active node count of your cluster
  • List all indices or create new ones with custom settings and mappings
  • Reindex data from one index to another
  • Retrieve field mappings and add new fields to existing indices
  • Perform natural language searches on your Elasticsearch data
  • Manage index templates for automated index configuration

常见问题

1

What do I need to run Elasticsearch MCP Server?

You need a running Elasticsearch instance, authentication credentials (an API key or a username/password pair), and an MCP Client such as Claude Desktop or Cursor.

2

How do I authenticate with my Elasticsearch cluster?

You must provide either an `ES_API_KEY` or both `ES_USERNAME` and `ES_PASSWORD` via environment variables. The configuration accepts legacy variable names as fallbacks.

3

Can I connect to multiple Elasticsearch nodes?

Yes. Set the `ES_HOST` environment variable to a comma-separated list of node URLs. The client automatically handles failover and load balancing across the configured nodes.

4

How do I run the server from source for development?

Clone the repository, install dependencies (`npm install`), build the project (`npm run build`), then point your MCP Client configuration to the built `dist/index.js` file using the `node` command.

5

Is there a way to debug or test the server locally?

Yes, use the MCP Inspector. Run `ES_HOST=your-url ES_API_KEY=your-key npm run inspector`, then access the inspector UI at `http://127.0.0.1:6274` to inspect requests and responses.

评论

数据库 分类下的更多 MCP 服务器