Skip to content

jedrazb/mcp-server-elasticsearch-all-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch MCP Server

Connect to any version of Elasticsearch (7.x, 8.x, 9.x) from MCP clients like Claude Desktop. Call any Elasticsearch API through natural language.

Quick Start

  1. Install and configure in your MCP client (e.g. Claude Desktop):
{
  "mcpServers": {
    "elasticsearch-mcp-server": {
      "command": "npx",
      "args": ["-y", "mcp-server-elasticsearch-all-apis"],
      "env": {
        "ES_URL": "your-elasticsearch-url",
        "ES_API_KEY": "your-api-key",
        "ES_VERSION": "9.x" // or "8.x" or "7.x"
      }
    }
  }
}

Configuration

Env Variable Required Description
ES_URL Yes Elasticsearch URL
ES_VERSION No Version to use: "7.x", "8.x", "9.x" (default: "9.x")
ES_API_KEY No* API key for auth
ES_USERNAME No* Username for basic auth
ES_PASSWORD No* Password for basic auth
ES_CA_CERT No Path to custom CA cert

* Either API key or username/password pair required for auth

Development

npm install
npm run build

For local testing with Claude Desktop, point the config to your built dist/index.js.

License

Apache License 2.0

About

MCP server that lets an LLM call any Elasticsearch API (YOLO mode).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%