Graylog MCP Server
io.github.jperelli/graylog-mcp·v1.3.0Query logs from Graylog: get streams, search messages, aggregate, and get full data.
0 stars56 downloads/wk
Reviews
Write oneNobody has reviewed Graylog MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Graylog MCP Server tools (5)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
analyzeAggregate matching messages by the top values of a field instead of returning raw
get_messageFetch the full, untruncated document for a single message by its _id and _index
list_fieldsList the message fields that actually exist in the index. Use this BEFORE searching
list_streamsList the Graylog streams the API token can read (id + title, and whether each removes
searchRead individual matching log lines across one or more streams, merged newest-first.
Public scan report
scanner v0.1.9 · 2026-09-25 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 70 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Graylog MCP Server compares
Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 78/100
- higher than 62% of 3,470 Web search servers
- Tools
- 5
- the typical Web search server has 5
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 56
- more than 39% of 827 Web search servers with a package
What its tools let an agent do: 5 read
Install Graylog MCP Server in Claude Code, Cursor or VS Code
Runs npx -y @jperelli/graylog-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add graylog-mcp -- npx -y @jperelli/graylog-mcp
What the publisher says
From the Graylog MCP Server repository's README, as published. We do not edit it. Read it on GitHub
Graylog MCP Server
A minimal MCP (Model Context Protocol) server in JavaScript that integrates with Graylog.
Features
- JavaScript MCP server
- Tools: search (read matching log lines across multiple streams), analyze (aggregate matches by a field, with an optional time histogram), listfields (which fields exist), liststreams (discover readable streams), and get_message (fetch one full document)
- Empty results explain themselves. A zero-match search reports whether the query is wrong, the window is quiet, or Graylog simply hasn't indexed the logs yet — three causes that otherwise look identical and send an agent in circles
- Discovery over guessing. list_fields and analyze's valueContains let an agent look up real field names and values instead of inventing them, since a wrong guess returns 0 hits and reads as "no logs exist"
- Token-efficient by design, search returns a concise projection of high-signal fields by default; opt into full documents with verbose
- A server-level "instructions" manual teaches the client the query syntax, stream-scoping rules, and severity quirks up front
- Multi-instance support, query multiple Graylog servers from a single MCP server
Requirements
- Node.js 18+
Configuration
Configure one or more Graylog instances using numbered env vars:
Replace N with 1, 2, 3, … to register as many instances as needed. Only instances with both BASEURL and APITOKEN set will be active.
Use with an MCP client
No installation needed, npx downloads and runs the server automatically.
Claude Code
claude mcp add graylog-mcp \
-e GRAYLOG_BASE_URL_INSTANCE_1=http://your-graylog-production.example.com:9000 \
-e GRAYLOG_API_TOKEN_INSTANCE_1=your_production_token \
-e GRAYLOG_LABEL_INSTANCE_1=production \
-e GRAYLOG_BASE_URL_INSTANCE_2=http://your-graylog-staging.example.com:9000 \
-e GRAYLOG_API_TOKEN_INSTANCE_2=your_staging_token \
-e GRAYLOG_LABEL_INSTANCE_2=staging \
-- npx -y @jperelli/graylog-mcp@latestOr add it manually to ~/.claude.json:
{
"mcpServers": {
"graylog-mcp": {
"command": "npx",
"args": ["-y", "@jperelli/graylog-mcp@latest"],
"env": {
"GRAYLOG_BASE_URL_INSTANCE_1": "http://your-graylog-production.example.com:9000",
"GRAYLOG_API_TOKEN_INSTANCE_1": "your_production_token",
"GRAYLOG_LABEL_INSTANCE_1": "production",
"GRAYLOG_BASE_URL_INSTANCE_2": "http://your-graylog-staging.example.com:9000",
"GRAYLOG_API_TOKEN_INSTANCE_2": "your_staging_token",
"GRAYLOG_LABEL_INSTANCE_2": "staging"
}
}
}
}Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"graylog-mcp": {
"command": "npx",
"args": ["-y", "@jperelli/graylog-mcp@latest"],
"env": {
"GRAYLOG_BASE_URL_INSTANCE_1": "http://your-graylog-production.example.com:9000",
"GRAYLOG_API_TOKEN_INSTANCE_1": "your_production_token",
"GRAYLOG_LABEL_INSTANCE_1": "production",Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Graylog MCP Server: common questions
- Is Graylog MCP Server safe?
- Mostly: it is graded B (78/100). Read the Graylog MCP Server safety report
- How do I install Graylog MCP Server?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Graylog MCP Server need an API key?
- Yes. The registry entry asks for
GRAYLOG_API_TOKEN_INSTANCE_1. - Is Graylog MCP Server maintained?
- The last commit was 110 days ago (2026-07-17). The latest release is v1.3.0.
- What can I use instead of Graylog MCP Server?
- Servers from other publishers that do the same job: Apple Contacts MCP server.
- How does Graylog MCP Server compare with other Web search MCP servers?
- safety score 78/100 (higher than 62% of 3,470 Web search servers); tools 5 (the typical Web search server has 5); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Graylog MCP Server
Same job from other publishers: the closest match first, then the best rated.
- Apple ContactsInspect and search Apple Contacts on macOS, and resolve a contact into a message-ready recipient.not reviewedEstablishedA