mcp-server-graylog¶
An MCP server for Graylog log management. It runs in one of two modes: bridge
forwards to the experimental built-in MCP endpoint (/api/mcp) of Graylog 7.1+,
api serves a fixed set of read-only REST tools. Companion package:
mcprack-mcp-server-graylog. Binary: /usr/bin/mcp-server-graylog.
sudo apt install mcprack-mcp-server-graylog
Configuration¶
Variable |
Required |
Meaning |
|---|---|---|
|
no |
|
|
no |
Graylog base URL (default |
|
yes |
Graylog API token (secret store); |
|
no |
|
|
no |
Seconds per request (30) and output truncation limit (100000) |
|
no |
|
Registration:
sudo mcprack server edit mcp-server-graylog \
--set-env GRAYLOG_URL=https://graylog.example.com \
--set-env GRAYLOG_MODE=api \
--add-secret-key GRAYLOG_API_TOKEN
sudo mcprack secret set mcp-server-graylog GRAYLOG_API_TOKEN
Tools¶
API mode (all read-only):
server_info,stream_list,stream_get,search_messages,field_list.Bridge mode: the tools Graylog itself publishes. Mutating ones stay hidden until
GRAYLOG_READ_ONLY=false.
Note
Prefer GRAYLOG_MODE=api unless the built-in MCP endpoint is enabled on your
Graylog. Give searches a Lucene query and a short time window.