Elasticsearch MCP
An open-source Model Context Protocol server for Elasticsearch versions 5.x through 9.x. It provides a query harness, field validation, and full API access, allowing AI agents to interact with Elasticsearch clusters via stdio or HTTP transport modes.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Execute search queries against Elasticsearch clusters
- Validate document fields before indexing
- Manage Elasticsearch cluster configurations
- Access full Elasticsearch API capabilities
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@tocharianou/elasticsearch-mcp 0.9.1
{
"version": "0.9.1",
"transport": "stdio",
"identifier": "@tocharianou/elasticsearch-mcp",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "ES_URL",
"format": "string",
"isRequired": true,
"description": "Your Elasticsearch instance URL (e.g., https://localhost:9200)"
},
{
"name": "ES_API_KEY",
"format": "string",
"description": "Elasticsearch API key for authentication"
},
{
"name": "ES_USERNAME",
"format": "string",
"description": "Elasticsearch username for basic authentication"
},
{
"name": "ES_PASSWORD",
"format": "string",
"description": "Elasticsearch password for basic authentication"
},
{
"name": "ES_CA_CERT",
"format": "filepath",
"description": "Path to custom CA certificate for Elasticsearch SSL/TLS"
},
{
"name": "NODE_TLS_REJECT_UNAUTHORIZED",
"format": "string",
"default": "1",
"description": "Set to '0' to disable SSL certificate validation (development only)"
},
{
"name": "MAX_TOKEN_CALL",
"format": "number",
"default": "20000",
"description": "Maximum tokens per API call"
}
]
}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": {
"command": "npx",
"args": [
"-y",
"@tocharianou/elasticsearch-mcp@0.9.1"
],
"env": {
"ES_URL": "<YOUR_ES_URL>",
"ES_API_KEY": "<YOUR_ES_API_KEY>",
"ES_USERNAME": "<YOUR_ES_USERNAME>",
"ES_PASSWORD": "<YOUR_ES_PASSWORD>",
"ES_CA_CERT": "<YOUR_ES_CA_CERT>",
"NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
"MAX_TOKEN_CALL": "<YOUR_MAX_TOKEN_CALL>"
}
}
}
}Cline
{
"mcpServers": {
"elasticsearch-mcp": {
"command": "npx",
"args": [
"-y",
"@tocharianou/elasticsearch-mcp@0.9.1"
],
"env": {
"ES_URL": "<YOUR_ES_URL>",
"ES_API_KEY": "<YOUR_ES_API_KEY>",
"ES_USERNAME": "<YOUR_ES_USERNAME>",
"ES_PASSWORD": "<YOUR_ES_PASSWORD>",
"ES_CA_CERT": "<YOUR_ES_CA_CERT>",
"NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
"MAX_TOKEN_CALL": "<YOUR_MAX_TOKEN_CALL>"
}
}
}
}VS Code
{
"servers": {
"elasticsearch-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tocharianou/elasticsearch-mcp@0.9.1"
],
"env": {
"ES_URL": "<YOUR_ES_URL>",
"ES_API_KEY": "<YOUR_ES_API_KEY>",
"ES_USERNAME": "<YOUR_ES_USERNAME>",
"ES_PASSWORD": "<YOUR_ES_PASSWORD>",
"ES_CA_CERT": "<YOUR_ES_CA_CERT>",
"NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
"MAX_TOKEN_CALL": "<YOUR_MAX_TOKEN_CALL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"elasticsearch-mcp": {
"command": "npx",
"args": [
"-y",
"@tocharianou/elasticsearch-mcp@0.9.1"
],
"env": {
"ES_URL": "<YOUR_ES_URL>",
"ES_API_KEY": "<YOUR_ES_API_KEY>",
"ES_USERNAME": "<YOUR_ES_USERNAME>",
"ES_PASSWORD": "<YOUR_ES_PASSWORD>",
"ES_CA_CERT": "<YOUR_ES_CA_CERT>",
"NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
"MAX_TOKEN_CALL": "<YOUR_MAX_TOKEN_CALL>"
}
}
}
}Let your agent find its tools
Find servers like Elasticsearch MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.