The Kibana MCP server implementation allows any MCP-compatible client (such as Claude Desktop) to access your Kibana instance through natural language or programmatic requests. It connects to your Kibana instances and exposes the Kibana API endpoints as both tools and resources that can be queried and executed.
Configure the server using these environment variables:
Variable Name | Description | Required |
---|---|---|
KIBANA_URL |
Kibana server address (e.g., http://localhost:5601) | Yes |
KIBANA_USERNAME |
Kibana username | Yes |
KIBANA_PASSWORD |
Kibana password | Yes |
KIBANA_CA_CERT |
CA certificate path (for SSL verification) | No |
KIBANA_TIMEOUT |
Request timeout in ms (default 30000) | No |
KIBANA_MAX_RETRIES |
Max request retries (default 3) | No |
NODE_TLS_REJECT_UNAUTHORIZED |
Set to 0 to disable SSL certificate validation (use with caution) |
No |
Start the server by providing the required environment variables:
KIBANA_URL=http://your-kibana-server:5601 \
KIBANA_USERNAME=your-username \
KIBANA_PASSWORD=your-password \
NODE_TLS_REJECT_UNAUTHORIZED=0 \
npm start
Add the MCP server to your Claude Desktop configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json
on MacOS):
{
"mcpServers": {
"kibana-mcp-server": {
"command": "node",
"args": ["/path/to/mcp-server-kibana/dist/index.js"],
"env": {
"KIBANA_URL": "http://your-kibana-server:5601",
"KIBANA_USERNAME": "your-username",
"KIBANA_PASSWORD": "your-password",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
Resource URI | Description |
---|---|
kibana-api://paths |
Returns all available Kibana API endpoints (can filter with search param) |
kibana-api://path/{method}/{encoded_path} |
Returns details for a specific API endpoint |
Examples:
kibana-api://paths?search=saved_objects
kibana-api://path/GET/%2Fapi%2Fstatus
Tool Name | Description | Input Parameters |
---|---|---|
get_status |
Get the current status of the Kibana server | None |
execute_api |
Execute a custom Kibana API request | method (GET/POST/PUT/DELETE), path (string), body (optional), params (optional) |
search_kibana_api_paths |
Search Kibana API endpoints by keyword | search (string) |
list_all_kibana_api_paths |
List all Kibana API endpoints | None |
get_kibana_api_detail |
Get details for a specific Kibana API endpoint | method (string), path (string) |
When using with Claude Desktop, two interaction modes are available:
kibana-tool-expert
promptkibana-resource-helper
promptIf you encounter issues:
NODE_TLS_REJECT_UNAUTHORIZED=0
For debugging, you can use the MCP Inspector:
npm run inspector
This will provide a browser-accessible debugging tool URL.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.