mcp-elasticsearch
Provides read-only search and aggregation capabilities for Elasticsearch, including listing indices and retrieving mappings, enabling agents to query and inspect Elasticsearch data.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-elasticsearchlist all indices and show me the mapping for the logs index"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-elasticsearch
Elasticsearch MCP Server (Model Context Protocol) - read-only search only.
Features
Only exposes read-only operations:
list_indices- List all indicesget_mapping- Get index mappingsearch- Execute search/aggregation query
Related MCP server: Elasticsearch/OpenSearch MCP Server
Supports two transport modes
1. stdio (for local/standalone deployment)
python -m mcp_elasticsearch --transport stdio --url http://localhost:92002. sse (for remote/containerized deployment)
python -m mcp_elasticsearch --transport sse --host 0.0.0.0 --port 8002 --url http://elasticsearch:9200 [--api-key your-secret-key]Environment variables
All command line arguments can also be set via environment variables:
TRANSPORT-stdioorsse(default:stdio)HOST- bind host for sse mode (default:0.0.0.0)PORT- bind port for sse mode (default:8002)ELASTICSEARCH_URL- Elasticsearch URLAPI_KEY- Optional API key for client authentication
Docker
FROM python:3.11-slim
WORKDIR /app
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-dev --no-root
COPY mcp_elasticsearch/ ./mcp_elasticsearch/
EXPOSE 8002
CMD ["python", "-m", "mcp_elasticsearch"]This server cannot be installed
Maintenance
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
- AlicenseCqualityDmaintenanceProvides an MCP protocol interface for interacting with Elasticsearch 7.x databases, supporting comprehensive search functionality including aggregations, highlighting, and sorting.311Apache 2.0
- AlicenseBqualityCmaintenanceAn 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.16Apache 2.0
- AlicenseNot gradedqualityFmaintenanceA read-only MCP server for Elasticsearch 7.10 clusters, providing tools for cluster info, health, index listing, and Query DSL search with Google OAuth and Bearer token authentication.7MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides tools and resources to interact with Elasticsearch clusters, including listing indices, searching, and retrieving mappings.3MIT
Related MCP Connectors
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Read-only Dant3 MCP for public rooms, agents, jobs and provisional machine onboarding.
Federated commerce search across independent WooCommerce merchants. Keyless, read-only MCP server.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/yang554023631/mcp-elasticsearch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server