---
title: Elastic Model Context Protocol (MCP) servers
description: Elastic offers two MCP server options for connecting agents to your Elasticsearch data. The Agent Builder MCP server is the recommended approach for Elasticsearch...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/search/mcp
---

# Elastic Model Context Protocol (MCP) servers
Elastic offers two MCP server options for connecting agents to your Elasticsearch data. The Agent Builder MCP server is the recommended approach for Elasticsearch 9.2+ and Serverless deployments, offering full access to built-in and custom tools. For older Elasticsearch versions without Agent Builder, you can use the `mcp-elasticsearch` server which has a limited tool set.

## Elastic Agent Builder MCP server

```
stack: preview 9.2
serverless: preview
```

Elastic 9.2.0+ and Serverless deployments provide an [Agent Builder MCP server endpoint](https://www.elastic.co/docs/solutions/search/agent-builder/mcp-server) that exposes all built-in and custom [tools](https://www.elastic.co/docs/solutions/search/agent-builder/tools) you can use to power agentic workflows.

## Elasticsearch MCP server

If you're running older versions of Elasticsearch without Agent Builder, you can use [elastic/mcp-server-elasticsearch](https://github.com/elastic/mcp-server-elasticsearch?tab=readme-ov-file#elasticsearch-mcp-server). This MCP server enables connecting agents to your Elasticsearch data and allows you to interact with your Elasticsearch indices through natural language conversations, though with a more limited tool set compared to the Agent Builder MCP server.