Koskamo

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.

Elasticsearch MCP logo, by TocharianOUCommunity listingLocal stdioSource reviewed; not executedPublished by TocharianOU
Vendor documentation

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

Community listingRegistry 0.9.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@tocharianou/elasticsearch-mcp 0.9.1

npm
@tocharianou/elasticsearch-mcp package definition
{
  "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.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.