How to set up the Elastic Agent Builder MCP Server in Claude
- For Elastic Cloud Serverless, open the Elastic connector in Claude and authorize access for the intended project.
- For manual configuration, use the documented endpoint for your Kibana space, or copy your registration’s exact MCP URL when using OAuth.
- Test on a non-sensitive index that your approved identity can read.
{KIBANA_URL}/api/agent_builder/mcp{KIBANA_URL}/s/{SPACE_ID}/api/agent_builder/mcpUse the Agent Builder endpoint
The endpoint exposes enabled Elastic Agent Builder tools to an external MCP client. Use it to ask questions about permitted Elasticsearch data, for example summarizing application error counts for a test service. The older standalone Elasticsearch MCP is deprecated for supported newer versions.
Cross-check an ES|QL result
Ask Claude to summarize error totals by service for a one-hour interval in a sandbox index. Request the index and query used. Run the exact query in Kibana and verify the counts and timezone. If one service is missing, check the selected index and space before revising the query.
Match the authentication path to your deployment
Elastic documents OAuth for Serverless projects and API key access for supported Stack and Serverless deployments. When using OAuth, use the URL Elastic issues for the registered client and space. Confirm the tools you need are available on that deployment before adding the connection.