Skip to content
VS Code

Graylog MCP Server for VS Code

io.github.jperelli/graylog-mcp

Query logs from Graylog: get streams, search messages, aggregate, and get full data.

client:VS Code transport:stdio runtime:npm

Install Graylog MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "graylog-base-url-instance-1",
      "description": "GRAYLOG_BASE_URL_INSTANCE_1",
      "password": true
    },
    {
      "type": "promptString",
      "id": "graylog-api-token-instance-1",
      "description": "GRAYLOG_API_TOKEN_INSTANCE_1",
      "password": true
    },
    {
      "type": "promptString",
      "id": "graylog-label-instance-1",
      "description": "GRAYLOG_LABEL_INSTANCE_1",
      "password": true
    }
  ],
  "servers": {
    "graylog-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@jperelli/graylog-mcp"
      ],
      "env": {
        "GRAYLOG_BASE_URL_INSTANCE_1": "${input:graylog-base-url-instance-1}",
        "GRAYLOG_API_TOKEN_INSTANCE_1": "${input:graylog-api-token-instance-1}",
        "GRAYLOG_LABEL_INSTANCE_1": "${input:graylog-label-instance-1}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Graylog MCP Server in other clients