The Kibana MCP server allows MCP-compatible clients like Claude Desktop to access your Kibana instance through natural language or programmatic requests. This server acts as a bridge between MCP clients and Kibana's API endpoints.
# Global installation (recommended)
npm install -g @tocharian/mcp-server-kibana
# Or local installation
npm install @tocharian/mcp-server-kibana
git clone https://github.com/TocharinOU/mcp-server-kibana.git
cd mcp-server-kibana
npm install
npm run build
# Set your Kibana credentials and run
KIBANA_URL=http://your-kibana-server:5601 \
KIBANA_USERNAME=your-username \
KIBANA_PASSWORD=your-password \
npx @tocharian/mcp-server-kibana
Add to your Claude Desktop configuration file:
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"kibana-mcp-server": {
"command": "npx",
"args": ["@tocharian/mcp-server-kibana"],
"env": {
"KIBANA_URL": "http://your-kibana-server:5601",
"KIBANA_USERNAME": "your-username",
"KIBANA_PASSWORD": "your-password",
"KIBANA_DEFAULT_SPACE": "default",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
# Create .env file
cat > kibana-mcp.env << EOF
KIBANA_URL=http://your-kibana-server:5601
KIBANA_USERNAME=your-username
KIBANA_PASSWORD=your-password
NODE_TLS_REJECT_UNAUTHORIZED=0
EOF
# Run with environment file
env $(cat kibana-mcp.env | xargs) npx @tocharian/mcp-server-kibana
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 | space (optional string) - Target Kibana space |
execute_api |
Execute a custom Kibana API request | method (GET/POST/PUT/DELETE), path (string), body (optional), params (optional), space (optional string) |
get_available_spaces |
Get available Kibana spaces and current context | include_details (optional boolean) - Include full space details |
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 this server with Claude Desktop, two different prompt interaction modes are supported:
get_status
, execute_api
, etc.) to answer questions or perform actions.kibana-tool-expert
prompt in Claude Desktop for integration testing.Configure the server via 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_DEFAULT_SPACE |
Default Kibana space (default: 'default') | No |
KIBANA_CA_CERT |
CA certificate path (optional, 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 |
# Make sure you're using the latest version
npm install -g @tocharian/mcp-server-kibana@latest
# Or try using node directly
node $(which mcp-server-kibana)
NODE_TLS_REJECT_UNAUTHORIZED=0
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "kibana-mcp-server" '{"command":"npx","args":["@tocharian/mcp-server-kibana"],"env":{"KIBANA_URL":"http://your-kibana-server:5601","KIBANA_USERNAME":"your-username","KIBANA_PASSWORD":"your-password","KIBANA_DEFAULT_SPACE":"default","NODE_TLS_REJECT_UNAUTHORIZED":"0"}}'
See the official Claude Code MCP documentation for more details.
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 > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"kibana-mcp-server": {
"command": "npx",
"args": [
"@tocharian/mcp-server-kibana"
],
"env": {
"KIBANA_URL": "http://your-kibana-server:5601",
"KIBANA_USERNAME": "your-username",
"KIBANA_PASSWORD": "your-password",
"KIBANA_DEFAULT_SPACE": "default",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"kibana-mcp-server": {
"command": "npx",
"args": [
"@tocharian/mcp-server-kibana"
],
"env": {
"KIBANA_URL": "http://your-kibana-server:5601",
"KIBANA_USERNAME": "your-username",
"KIBANA_PASSWORD": "your-password",
"KIBANA_DEFAULT_SPACE": "default",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect