Connect Your AI Assistant

Add Moltler skills to your favorite AI tools. Select your client below to get the configuration snippet.

1. Select your AI client

2. Configure your Elasticsearch connection

3. Copy configuration for Cursor

Add to: .cursor/mcp.json

{
  "mcpServers": {
    "moltler": {
      "command": "python",
      "args": [
        "<path-to-moltler>/mcp-bridge/moltler_mcp_server.py"
      ],
      "env": {
        "ES_URL": "http://localhost:9200",
        "ES_USER": "elastic-admin",
        "ES_PASSWORD": "elastic-password"
      }
    }
  }
}

Note: Replace <path-to-moltler> with the actual path where you cloned the Moltler repository.

Alternative: Direct HTTP Connection

If your client supports HTTP MCP endpoints

{
  "mcpServers": {
    "moltler": {
      "url": "http://localhost:9200/_escript/mcp",
      "headers": {
        "Authorization": "Basic ZWxhc3RpYy1hZG1pbjplbGFzdGljLXBhc3N3b3Jk"
      }
    }
  }
}

4. After connecting

  1. 1Restart your Cursor application
  2. 2Look for "moltler" in your MCP servers list
  3. 3Ask your AI: "What Moltler skills are available?"

Example prompts to try:

  • "Show me recent errors from my logs"
  • "Check the health of my Elasticsearch cluster"
  • "Find slow API transactions in the last hour"
  • "List all available security detection rules"

Requirements

Elasticsearch

With the Moltler plugin installed

Python 3.8+

For the MCP bridge server

httpx

pip install httpx

Skills installed

./moltler-cli.sh install --all