elasticsearch-mcp-server
An open-source MCP server that enables AI agents to interact with Elasticsearch and OpenSearch clusters. It provides tools for general API requests, index management (create, delete, list), document operations (search, index, get, delete), cluster health monitoring, alias management, and text analysis.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Search for documents within an Elasticsearch index
- List and manage indices and data streams
- Monitor cluster health and statistics
- Analyze text using specific analyzers
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
elasticsearch-mcp-server 2.0.15
{
"version": "2.0.15",
"transport": "stdio",
"identifier": "elasticsearch-mcp-server",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"environmentVariables": [
{
"name": "ELASTICSEARCH_HOSTS",
"format": "string",
"default": "https://localhost:9200",
"description": "Comma-separated list of Elasticsearch hosts (e.g., https://localhost:9200)"
},
{
"name": "ELASTICSEARCH_API_KEY",
"format": "string",
"description": "API key for Elasticsearch or Elastic Cloud authentication (recommended)"
},
{
"name": "ELASTICSEARCH_USERNAME",
"format": "string",
"description": "Username for basic authentication (alternative to API key)"
},
{
"name": "ELASTICSEARCH_PASSWORD",
"format": "string",
"description": "Password for basic authentication (used with ELASTICSEARCH_USERNAME)"
},
{
"name": "ELASTICSEARCH_VERIFY_CERTS",
"format": "boolean",
"default": "false",
"description": "Whether to verify SSL certificates (true/false)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<YOUR_ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<YOUR_ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<YOUR_ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<YOUR_ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<YOUR_ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}Cline
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<YOUR_ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<YOUR_ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<YOUR_ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<YOUR_ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<YOUR_ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}VS Code
{
"servers": {
"elasticsearch-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<YOUR_ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<YOUR_ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<YOUR_ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<YOUR_ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<YOUR_ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<YOUR_ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<YOUR_ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<YOUR_ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<YOUR_ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<YOUR_ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}Let your agent find its tools
Find servers like elasticsearch-mcp-server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.