Dec 3rd, 2026: [EN] 5 ways to connect your Elasticsearch with Claude

Claude is the gift that keeps on giving! So for this holiday season, we wanted to highlight five different ways that you can use Claude and Elastic together.

The Claude connector

If you just want a quick, secure, and portable connection, this one is hard to beat.

First, you'll need to pre-define an OAuth Client in Kibana. Follow these instructions: Create or edit an OAuth client in Elastic Agent Builder | Elastic Docs . Depending on whether you want to connect with Claude Code CLI, Claude's desktop app, or the https://claude.ai web app, provide the relevant redirect URI (details here).

Then, go to Elastic Cloud Serverless connector | Claude by Anthropic and click "Add to Claude".

You'll be prompted to provide the MCP URL, Client ID, and Client Secret from when you created your OAuth client in Kibana.

Click "Connect" and authorize the connection.

That's it! Claude will then have direct access to a suite of tools for Elasticsearch and Kibana.

The Elastic CLI

If you're using the Claude Code CLI, it may be convenient to leverage a connection mechanism that is shared between Claude and your other shell sessions.

In your terminal, run:

npm install -g  @elastic/cli

This will put a new elastic executable on your PATH. Then, run

 elastic config context add local 
 --es-url <elasticsearch-url> 
 --kb-url <kibana-url>
 --es-api-key ${ES_API_KEY} 
 --kb-api-key ${ES_API_KEY}

to configure its access. These credentials will be stored securely in your keychain.

That's it! From here, you can tell Claude to use the elastic CLI to work with your project, and it will be able to explore the CLI's structure and help text to issue commands to any Elastic API.

Agent Skills

Working particularly well with the CLI described above, is our collection of Agent Skills.

From your shell, run:

claude plugin marketplace add https://github.com/elastic/agent-skills

You can then granularly add skills for any of Elastic's Elasticsearch, Kibana, Cloud, Observability, or Security solutions.

claude plugin install elastic-elasticsearch@elastic-agent-skills
claude plugin install elastic-kibana@elastic-agent-skills
claude plugin install elastic-observability@elastic-agent-skills
claude plugin install elastic-security@elastic-agent-skills
claude plugin install elastic-cloud@elastic-agent-skills

In a claude session, you can then use / commands to evoke specific skills, or rely on Claude to identify the relevant ones with just natural language.

The Claude plugin

To make it easier to get to these skills, we have a single Claude Plugin that contains all the above solution skills, as well as an included connection to our Elastic Documentation MCP Server.

You can install it from the shell with:

claude plugin install elastic@anthropic-plugin-directory

Or from the Claude UI by going to Plugins tab and searching for "Elastic".

Claude Code/Cowork Integrations

Want to not only search Elastic data from Claude, but also be able to search your Claude data from Elasticsearch? Look no further than our Claude Code Integration and/or our Claude Cowork Integration.

These provide instructions and post-processing resources for gathering Open Telemetry (OTel) logs and traces to enable agent observability and secure monitoring. So if you've ever wanted to build a Kibana dashboard to visualize which tool your agents prefer to call, look no further!

Next steps

We hope that this holiday season, you'll give yourself the gift of Claude + Elastic. Let us know which ones you try!

1 Like