es_mcp_server

es_mcp_server

1

The project is an MCP server implementation for Elasticsearch, aimed at facilitating interactions with Elasticsearch clusters through tools and resources. It offers features like listing indices, retrieving index mappings, and performing searches, while supporting error handling and easy configuration.

Elasticsearch MCP Server

This project implements an MCP server for Elasticsearch, providing tools and resources to interact with Elasticsearch clusters.

Features

  • Tools:
    • list all indices, get mappings, perform searches, and retrieve index statistics.
  • Resources:
    • URI-based access to list indices, get index details and mappings.

Prerequisites

  • Python 3.7+, Elasticsearch Python client, MCP SDK, Elasticsearch cluster credentials.

Setup

  • Clone repository, install dependencies, set environment variables.

Configuring the MCP Server for Claude

  • Script available for configuration with detailed steps.

Testing the MCP Resources

  • Options for using a test script, manual testing, or using a Python test script.

Resource Details

  • JSON output for index listings, details, and mappings.

Error Handling

  • Includes comprehensive error handling and validation.

Contributing

  • Description of how to contribute to the project.

License

  • Licensed under the MIT License.