MCP Server
MCP
Elasticsearch
Elasticsearch MCP Server with multi-version support (ES 5.x-9.x) and comprehensive API access
Install
npx -y @tocharianou/elasticsearch-mcp@0.7.2
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"identifier": "@tocharianou/elasticsearch-mcp",
"version": "0.7.2",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Your Elasticsearch instance URL (e.g., https://localhost:9200)",
"isRequired": true,
"format": "string",
"name": "ES_URL"
},
{
"description": "Elasticsearch API key for authentication",
"format": "string",
"isSecret": true,
"name": "ES_API_KEY"
},
{
"description": "Elasticsearch username for basic authentication",
"format": "string",
"name": "ES_USERNAME"
},
{
"description": "Elasticsearch password for basic authentication",
"format": "string",
"isSecret": true,
"name": "ES_PASSWORD"
},
{
"description": "Path to custom CA certificate for Elasticsearch SSL/TLS",
"format": "filepath",
"name": "ES_CA_CERT"
},
{
"description": "Set to '0' to disable SSL certificate validation (development only)",
"format": "string",
"default": "1",
"name": "NODE_TLS_REJECT_UNAUTHORIZED"
},
{
"description": "Maximum tokens per API call",
"format": "number",
"default": "20000",
"name": "MAX_TOKEN_CALL"
}
]
},
{
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"identifier": "@tocharianou/elasticsearch-mcp",
"version": "0.7.2",
"transport": {
"type": "streamable-http",
"url": "http://localhost:{MCP_HTTP_PORT}/mcp"
},
"environmentVariables": [
{
"description": "Transport mode selection",
"isRequired": true,
"format": "string",
"default": "http",
"choices": [
"stdio",
"http"
],
"name": "MCP_TRANSPORT"
},
{
"description": "HTTP server port (when using HTTP transport)",
"format": "number",
"default": "3000",
"name": "MCP_HTTP_PORT"
},
{
"description": "HTTP server host (when using HTTP transport)",
"format": "string",
"default": "localhost",
"name": "MCP_HTTP_HOST"
},
{
"description": "Your Elasticsearch instance URL (e.g., https://localhost:9200)",
"isRequired": true,
"format": "string",
"name": "ES_URL"
},
{
"description": "Elasticsearch API key for authentication",
"format": "string",
"isSecret": true,
"name": "ES_API_KEY"
},
{
"description": "Elasticsearch username for basic authentication",
"format": "string",
"name": "ES_USERNAME"
},
{
"description": "Elasticsearch password for basic authentication",
"format": "string",
"isSecret": true,
"name": "ES_PASSWORD"
},
{
"description": "Path to custom CA certificate for Elasticsearch SSL/TLS",
"format": "filepath",
"name": "ES_CA_CERT"
},
{
"description": "Set to '0' to disable SSL certificate validation (development only)",
"format": "string",
"default": "1",
"name": "NODE_TLS_REJECT_UNAUTHORIZED"
},
{
"description": "Maximum tokens per API call",
"format": "number",
"default": "20000",
"name": "MAX_TOKEN_CALL"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment