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

**URL:** <https://discuss.elastic.co/t/dec-3rd-2026-en-5-ways-to-connect-your-elasticsearch-with-claude/391118>\
**Category:** Advent Calendar\
**Created:** [December 3, 2026, 8:00am UTC](https://discuss.elastic.co/t/dec-3rd-2026-en-5-ways-to-connect-your-elasticsearch-with-claude/391118 "2026-12-03T08:00:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [December 3, 2026, 8:00am UTC](https://discuss.elastic.co/t/dec-3rd-2026-en-5-ways-to-connect-your-elasticsearch-with-claude/391118/1 "2026-12-03T08:00:04Z")

</div>

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](https://www.elastic.co/docs/deploy-manage/app-connections/create-oauth-client) . Depending on whether you want to connect with Claude Code CLI, Claude's desktop app, or the [https://claude.ai](https://claude.ai) web app, provide the relevant redirect URI (details [here](https://www.elastic.co/docs/deploy-manage/app-connections/connect-mcp-host#configure-your-mcp-host)).

Then, go to [Elastic Cloud Serverless connector | Claude by Anthropic](https://claude.com/marketplace/connectors/elastic-cloud-serverless) 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.

 ![Screenshot 2026-11-18 at 4.42.43 PM](https://us1.discourse-cdn.com/elastic/original/3X/d/1/d12c9d742290346ebdd172cab6582583106e0568.png)

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:

```sh
npm install -g @elastic/cli

```

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

```sh
 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](https://github.com/elastic/agent-skills).

From your shell, run:

```sh
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.

```sh
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:

```sh
claude plugin install elastic@anthropic-plugin-directory

```

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

 ![Screenshot 2026-11-18 at 5.04.56 PM](https://us1.discourse-cdn.com/elastic/original/3X/4/a/4a7ae02574adf9d965539a4aeb4791812305c10a.png)

# 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](https://www.elastic.co/docs/reference/integrations/claude_code) and/or our [Claude Cowork Integration](https://www.elastic.co/docs/reference/integrations/claude_cowork).

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!
