Read-only Kibana/Elasticsearch CLI optimised for AI agent usage
Project description
kibana-agent
Read-only Kibana/ES CLI for AI agents. Queries Elasticsearch through Kibana's console proxy API.
Install
uv tool install kibana-agent
# or just run:
# uvx kibana-agent
Setup
kibana-agent profile create prd --url https://kibana.example.com --auth 1password \
--op-username "op://vault/item/username" --op-password "op://vault/item/password" --use
Auth: 1password (Touch ID, cached 30 min), keychain (OS keyring — macOS Keychain / Linux Secret Service / Windows Credential Locker via the keyring library; on Linux requires a running Secret Service provider such as gnome-keyring, KWallet, or KeePassXC), plain.
Usage
kibana-agent context # index overview
kibana-agent search 'my-index-*' --last 1h -n 10 # search logs
kibana-agent count 'my-index-*' -q '{"match":{"level":"ERROR"}}' # count docs
kibana-agent tail 'my-index-*' -f @timestamp,level,message # live stream
kibana-agent histogram 'my-index-*' --last 6h --interval 10m # date histogram
kibana-agent discover 'my-index-*' --kql "level:ERROR" # Kibana URL
Agent setup
Add to your CLAUDE.md (or equivalent system prompt):
Use `kibana-agent` to query Elasticsearch. Start with `kibana-agent context` to
discover indices and fields, then use `kibana-agent search`, `kibana-agent count`,
`kibana-agent histogram` to investigate. Run `kibana-agent agent-help` for full
usage reference.
Output is JSON. All operations are read-only.
MCP server
The same operations are also available as an MCP server (kibana-agent mcp) for use with Claude Code, Claude Desktop, Cursor, etc. Profiles and credentials are shared with the CLI.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kibana_agent-0.6.0.tar.gz.
File metadata
- Download URL: kibana_agent-0.6.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e81382895e2390d8bc573557f67fad270c1e8fcf169aabf56fe38416a7752c13
|
|
| MD5 |
3767e05a5de538e4368d18850e8dac32
|
|
| BLAKE2b-256 |
e8245876e0b73d5c7ab73be48326f0c5d29e2618ff6e9c6847118930141b0e75
|
File details
Details for the file kibana_agent-0.6.0-py3-none-any.whl.
File metadata
- Download URL: kibana_agent-0.6.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40d299bef7649e0b0c62fd96525f146b980da0f74630ea931cf5a26afa3fcd47
|
|
| MD5 |
3336c6c999c425cb76dce8110160f4f7
|
|
| BLAKE2b-256 |
b85d6c3debc536124f6b592e9aeaacd708ba0bf00b620828e0ef285c4413ea12
|