Skip to main content
Glama
maestra-io

Elasticsearch MCP Server

by maestra-io

Elasticsearch MCP Server

A read-only MCP (Model Context Protocol) server for Elasticsearch, providing secure access to ES 7.10 clusters via Streamable HTTP transport with Google OAuth + static Bearer token authentication.

Tools

  • es_cluster_info — cluster name, version, tagline

  • es_cluster_health — cluster status, nodes, shards

  • es_index_list — all indices with health, doc count, storage size

  • es_search — full Query DSL search with pagination, sorting, source filtering

Related MCP server: Elasticsearch MCP Server

Environment Variables

Variable

Required

Default

Description

ES_ADDRESSES

yes

Comma-separated ES node URLs

API_TOKENS

yes

Comma-separated static Bearer tokens

PORT

no

8080

HTTP listen port

PUBLIC_URL

no

https://mta-logs-elasticsearch-mcp.maestra.io

Public URL for OAuth redirects

GOOGLE_CLIENT_ID

no

Enables Google OAuth when set

GOOGLE_CLIENT_SECRET

no

Required with GOOGLE_CLIENT_ID

ES_TIMEOUT

no

30000

ES request timeout (ms)

ES_MAX_RETRIES

no

3

Max retries on 502/503/504/429

MAX_SESSIONS

no

1000

Max concurrent MCP sessions

Development

npm install
npm run build
npm run dev    # tsx watch mode
npm test       # vitest

Docker

docker build -t mcp-elasticsearch .
docker run -e ES_ADDRESSES=http://es:9200 -e API_TOKENS=my-token -p 8080:8080 mcp-elasticsearch

Authentication

  1. Static Bearer tokens — for programmatic access and Teleport

  2. Google OAuth + PKCE — for interactive access via Claude Code (restricted to @maestra.io)

Auth is handled entirely in the application; no Traefik middleware required.

A
license - permissive license
-
quality - not tested
F
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
9Releases (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.

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    An MCP server that enables interaction with Elasticsearch and OpenSearch clusters for searching documents and managing indices. It provides tools for cluster health monitoring, index configuration, and general API requests.
    16
    Apache 2.0
  • A
    license
    -
    quality
    D
    maintenance
    MCP server that provides tools and resources to interact with Elasticsearch clusters, including listing indices, searching, and retrieving mappings.
    3
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Read-only MCP server for exploring and searching OpenSearch clusters, enabling log analysis, index exploration, and query execution.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    A Model Context Protocol server for Elasticsearch, enabling search, index inspection, and cluster information tools with optional write tools.
    14
    198
    1
    ISC

View all related MCP servers

Related MCP Connectors

  • Federated commerce search across independent WooCommerce merchants. Keyless, read-only MCP server.

  • Read-only MCP server for ClassQuill, a tutoring-business-management platform.

  • Read-only MCP server for searching Japan government procurement bid information from the KKJ portal.

View all MCP Connectors

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/maestra-io/mcp-elasticsearch'

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