mcp-server-elasticsearch  by elastic

Connect agents to Elasticsearch data via MCP

Created 5 months ago
475 stars

Top 64.4% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides an experimental Elasticsearch MCP server that allows Model Context Protocol (MCP) clients to interact with Elasticsearch indices via natural language. It targets users who want to query their Elasticsearch data using conversational AI, offering tools for listing indices, retrieving mappings, performing searches, and executing ES|QL queries.

How It Works

The server acts as a bridge, translating natural language requests from MCP clients into Elasticsearch queries. It supports various interaction protocols including stdio, SSE, and streamable-HTTP, with streamable-HTTP being the recommended and more modern approach. Authentication is handled via API keys or basic username/password credentials.

Quick Start & Requirements

  • Installation: Provided as a Docker image (docker.elastic.co/mcp/elasticsearch).
  • Prerequisites: An Elasticsearch instance (versions 8.x and 9.x officially supported), Elasticsearch authentication credentials (API key or username/password).
  • Running (stdio): docker run -i --rm -e ES_URL -e ES_API_KEY docker.elastic.co/mcp/elasticsearch stdio
  • Running (http): docker run --rm -e ES_URL -e ES_API_KEY -p 8080:8080 docker.elastic.co/mcp/elasticsearch http
  • Configuration: Environment variables ES_URL, ES_API_KEY (or ES_USERNAME, ES_PASSWORD), and optionally ES_SSL_SKIP_VERIFY.
  • Docs: [Not explicitly linked, but usage is detailed in README.]

Highlighted Details

  • Supports direct interaction with Elasticsearch indices through natural language.
  • Offers a suite of tools for data exploration and querying within Elasticsearch.
  • Provides multiple communication protocols (stdio, streamable-HTTP, SSE).

Maintenance & Community

  • The project is marked as EXPERIMENTAL.
  • Older versions (<= 0.3.1) installed via npm are deprecated.
  • No community links (Discord, Slack, etc.) are provided in the README.

Licensing & Compatibility

  • The license is not explicitly stated in the provided README snippet.
  • Compatibility for commercial use or closed-source linking is not detailed.

Limitations & Caveats

This MCP server is explicitly marked as EXPERIMENTAL. Support for Elasticsearch versions prior to 8.x is not guaranteed. The ability to provide custom SSL certificates is planned for a future release.

Health Check
Last Commit

3 days ago

Responsiveness

1 week

Pull Requests (30d)
8
Issues (30d)
8
Star History
57 stars in the last 30 days

Explore Similar Projects

Starred by Adam Wolff Adam Wolff(Claude Code Core; MTS at Anthropic), Samuel Colvin Samuel Colvin(Founder and Author of Pydantic), and
5 more.

anthropic-sdk-python by anthropics

0.5%
2k
Python SDK for Anthropic's REST API
Created 2 years ago
Updated 1 day ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Gregor Zunic Gregor Zunic(Cofounder of Browser Use), and
2 more.

airweave by airweave-ai

0.5%
3k
Semantic MCP server for AI agents
Created 8 months ago
Updated 16 hours ago
Feedback? Help us improve.