Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions solutions/search/agent-builder/mcp-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,26 @@ The MCP server is available at:
Most MCP clients (such as Claude Desktop, Cursor, VS Code, etc.) have similar configuration patterns. To connect to your Elastic instance, you'll need to provide your Kibana URL and API key in the client's configuration file, typically in the following format:

```json

{
"mcpServers": {
"elastic-agent-builder": {
"command": "npx",
"args": ["@elastic/agent-builder-mcp"],
"args": [
"mcp-remote",
"<YOUR_KIBANA_URL>/api/agent_builder/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"KIBANA_URL": "<YOUR_KIBANA_URL>",
"API_KEY": "<YOUR_API_KEY>"
"AUTH_HEADER": "ApiKey <YOUR_API_KEY>"
}
}
}
}
```

:::{note}
Replace `<YOUR_KIBANA_URL>` with your actual Kibana URL and `<YOUR_API_KEY>` with your API key. For information on generating API keys, see [API keys](https://www.elastic.co/docs/solutions/search/search-connection-details).

Tools will be executed with the scope assigned to the API key. Make sure your API key has the appropriate permissions to only access the indices and data that you want to expose via the MCP server.
:::
Loading