# Does Elasticsearch have an MCP server?

**Yes — Official.** Elasticsearch maintains an official MCP server.

> Elastic's standalone elastic/mcp-server-elasticsearch repo is deprecated (critical security fixes only) in favour of the Agent Builder MCP endpoint.

## Facts

- Verdict: Official (Yes)
- Access: Built into the product — Ships inside the vendor's own app or CLI rather than as a standalone download.
- Endpoint: `Built into Elastic Agent Builder at <kibana-url>/api/agent_builder/mcp (Elastic 9.2+ and Serverless) — in-product`
- Category: [Databases](https://mcpyet.com/category/databases/)
- Verified against vendor docs: 2026-09-29
- GitHub data refreshed: 2026-09-29 (re-checked every 6 hours)

## The receipts

- **In-product:** Built into Elastic Agent Builder at <kibana-url>/api/agent_builder/mcp (Elastic 9.2+ and Serverless) — in-product — ships inside Elasticsearch's own product rather than as a standalone server. Documented at <https://www.elastic.co/docs/explore-analyze/ai-features/agent-builder/mcp-server>.

## How to connect it

Ships inside the vendor's own app or CLI rather than as a standalone download.

### Claude Code

```sh
claude mcp add elasticsearch -- npx -y <package-from-readme>
```

Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable. Add `--scope user` to make it available in every project.

### Claude Desktop

Open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:

```json
{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### VS Code

Add to `.vscode/mcp.json`, then pick the server from Copilot's agent-mode tools menu:

```json
{
  "servers": {
    "elasticsearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ]
    }
  }
}
```

### ChatGPT

ChatGPT connects to **remote servers only**, and this one runs on your machine. Either expose it through an MCP gateway that gives it a public URL, or use a client with native local support (Claude or Cursor).

## How we know

elastic.co docs describe the Elastic Agent Builder MCP server at {KIBANA_URL}/api/agent_builder/mcp, GA on Elastic Cloud Serverless and in the Elastic Stack since 9.3 (preview in 9.2).

- GitHub data refreshed 2026-09-29, then every 6 hours.
- Vendor docs verified on 2026-09-29.
- Corrections: hello@mcpyet.com.

## Also in Databases

- [Snowflake](https://mcpyet.com/mcp/snowflake.md) — Official (Yes)
- [Firebase](https://mcpyet.com/mcp/firebase.md) — Official (Yes)
- [Supabase](https://mcpyet.com/mcp/supabase.md) — Official (Yes)
- [PostgreSQL](https://mcpyet.com/mcp/postgres.md) — Community only (Sort of)
- [BigQuery](https://mcpyet.com/mcp/bigquery.md) — Official (Yes)
- [ClickHouse](https://mcpyet.com/mcp/clickhouse.md) — Official (Yes)

---

Source: https://mcpyet.com/mcp/elasticsearch/ — data refreshed 2026-09-29
