L

Loggly MCP

by andrewbabu · io.github.andrewbabu/loggly-mcp

Read-only Model Context Protocol (MCP) server for Loggly /apiv2/* APIs, plus IP intelligence (RDAP, GreyNoise, AbuseIPDB). Exposes Loggly search/analytics/field tools, aggregation-first traffic tools, and IP-context tools

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-andrewbabu-loggly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andrewbabu/loggly-mcp"
      ],
      "env": {
        "LOGGLY_SUBDOMAIN": "<VALUE>",
        "LOGGLY_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_PORT": "8787",
        "LOGGLY_ACCOUNTS": "<VALUE>",
        "LOGGLY_FIELD_IP": "<VALUE>",
        "LOGGLY_AUTH_MODE": "bearer",
        "LOGGLY_LOG_LEVEL": "info",
        "MCP_BEARER_TOKEN": "<VALUE>",
        "ABUSEIPDB_API_KEY": "<VALUE>",
        "GREYNOISE_API_KEY": "<VALUE>",
        "LOGGLY_FIELD_HOST": "<VALUE>",
        "LOGGLY_FIELD_PATH": "<VALUE>",
        "LOGGLY_SMOKE_TEST": "<VALUE>",
        "LOGGLY_MAX_RETRIES": "2",
        "LOGGLY_FIELD_STATUS": "<VALUE>",
        "LOGGLY_DEFAULT_ACCOUNT": "<VALUE>",
        "LOGGLY_FIELD_USER_AGENT": "<VALUE>",
        "LOGGLY_REQUEST_TIMEOUT_MS": "15000",
        "LOGGLY_MAX_CONCURRENT_REQUESTS": "4"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-andrewbabu-loggly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andrewbabu/loggly-mcp"
      ],
      "env": {
        "LOGGLY_SUBDOMAIN": "<VALUE>",
        "LOGGLY_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_PORT": "8787",
        "LOGGLY_ACCOUNTS": "<VALUE>",
        "LOGGLY_FIELD_IP": "<VALUE>",
        "LOGGLY_AUTH_MODE": "bearer",
        "LOGGLY_LOG_LEVEL": "info",
        "MCP_BEARER_TOKEN": "<VALUE>",
        "ABUSEIPDB_API_KEY": "<VALUE>",
        "GREYNOISE_API_KEY": "<VALUE>",
        "LOGGLY_FIELD_HOST": "<VALUE>",
        "LOGGLY_FIELD_PATH": "<VALUE>",
        "LOGGLY_SMOKE_TEST": "<VALUE>",
        "LOGGLY_MAX_RETRIES": "2",
        "LOGGLY_FIELD_STATUS": "<VALUE>",
        "LOGGLY_DEFAULT_ACCOUNT": "<VALUE>",
        "LOGGLY_FIELD_USER_AGENT": "<VALUE>",
        "LOGGLY_REQUEST_TIMEOUT_MS": "15000",
        "LOGGLY_MAX_CONCURRENT_REQUESTS": "4"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-andrewbabu-loggly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andrewbabu/loggly-mcp"
      ],
      "env": {
        "LOGGLY_SUBDOMAIN": "<VALUE>",
        "LOGGLY_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_PORT": "8787",
        "LOGGLY_ACCOUNTS": "<VALUE>",
        "LOGGLY_FIELD_IP": "<VALUE>",
        "LOGGLY_AUTH_MODE": "bearer",
        "LOGGLY_LOG_LEVEL": "info",
        "MCP_BEARER_TOKEN": "<VALUE>",
        "ABUSEIPDB_API_KEY": "<VALUE>",
        "GREYNOISE_API_KEY": "<VALUE>",
        "LOGGLY_FIELD_HOST": "<VALUE>",
        "LOGGLY_FIELD_PATH": "<VALUE>",
        "LOGGLY_SMOKE_TEST": "<VALUE>",
        "LOGGLY_MAX_RETRIES": "2",
        "LOGGLY_FIELD_STATUS": "<VALUE>",
        "LOGGLY_DEFAULT_ACCOUNT": "<VALUE>",
        "LOGGLY_FIELD_USER_AGENT": "<VALUE>",
        "LOGGLY_REQUEST_TIMEOUT_MS": "15000",
        "LOGGLY_MAX_CONCURRENT_REQUESTS": "4"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-andrewbabu-loggly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andrewbabu/loggly-mcp"
      ],
      "env": {
        "LOGGLY_SUBDOMAIN": "<VALUE>",
        "LOGGLY_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_PORT": "8787",
        "LOGGLY_ACCOUNTS": "<VALUE>",
        "LOGGLY_FIELD_IP": "<VALUE>",
        "LOGGLY_AUTH_MODE": "bearer",
        "LOGGLY_LOG_LEVEL": "info",
        "MCP_BEARER_TOKEN": "<VALUE>",
        "ABUSEIPDB_API_KEY": "<VALUE>",
        "GREYNOISE_API_KEY": "<VALUE>",
        "LOGGLY_FIELD_HOST": "<VALUE>",
        "LOGGLY_FIELD_PATH": "<VALUE>",
        "LOGGLY_SMOKE_TEST": "<VALUE>",
        "LOGGLY_MAX_RETRIES": "2",
        "LOGGLY_FIELD_STATUS": "<VALUE>",
        "LOGGLY_DEFAULT_ACCOUNT": "<VALUE>",
        "LOGGLY_FIELD_USER_AGENT": "<VALUE>",
        "LOGGLY_REQUEST_TIMEOUT_MS": "15000",
        "LOGGLY_MAX_CONCURRENT_REQUESTS": "4"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-andrewbabu-loggly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andrewbabu/loggly-mcp"
      ],
      "env": {
        "LOGGLY_SUBDOMAIN": "<VALUE>",
        "LOGGLY_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_PORT": "8787",
        "LOGGLY_ACCOUNTS": "<VALUE>",
        "LOGGLY_FIELD_IP": "<VALUE>",
        "LOGGLY_AUTH_MODE": "bearer",
        "LOGGLY_LOG_LEVEL": "info",
        "MCP_BEARER_TOKEN": "<VALUE>",
        "ABUSEIPDB_API_KEY": "<VALUE>",
        "GREYNOISE_API_KEY": "<VALUE>",
        "LOGGLY_FIELD_HOST": "<VALUE>",
        "LOGGLY_FIELD_PATH": "<VALUE>",
        "LOGGLY_SMOKE_TEST": "<VALUE>",
        "LOGGLY_MAX_RETRIES": "2",
        "LOGGLY_FIELD_STATUS": "<VALUE>",
        "LOGGLY_DEFAULT_ACCOUNT": "<VALUE>",
        "LOGGLY_FIELD_USER_AGENT": "<VALUE>",
        "LOGGLY_REQUEST_TIMEOUT_MS": "15000",
        "LOGGLY_MAX_CONCURRENT_REQUESTS": "4"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-andrewbabu-loggly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andrewbabu/loggly-mcp"
      ],
      "env": {
        "LOGGLY_SUBDOMAIN": "<VALUE>",
        "LOGGLY_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_PORT": "8787",
        "LOGGLY_ACCOUNTS": "<VALUE>",
        "LOGGLY_FIELD_IP": "<VALUE>",
        "LOGGLY_AUTH_MODE": "bearer",
        "LOGGLY_LOG_LEVEL": "info",
        "MCP_BEARER_TOKEN": "<VALUE>",
        "ABUSEIPDB_API_KEY": "<VALUE>",
        "GREYNOISE_API_KEY": "<VALUE>",
        "LOGGLY_FIELD_HOST": "<VALUE>",
        "LOGGLY_FIELD_PATH": "<VALUE>",
        "LOGGLY_SMOKE_TEST": "<VALUE>",
        "LOGGLY_MAX_RETRIES": "2",
        "LOGGLY_FIELD_STATUS": "<VALUE>",
        "LOGGLY_DEFAULT_ACCOUNT": "<VALUE>",
        "LOGGLY_FIELD_USER_AGENT": "<VALUE>",
        "LOGGLY_REQUEST_TIMEOUT_MS": "15000",
        "LOGGLY_MAX_CONCURRENT_REQUESTS": "4"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
LOGGLY_SUBDOMAIN Yes Loggly account subdomain or full Loggly URL (e.g. `your-subdomain` or `https://your-subdomain.loggly.com`). Replaced by LOGGLY_ACCOUNTS when that is set.
LOGGLY_TOKEN secret Yes Loggly API token. Replaced by LOGGLY_ACCOUNTS when that is set.
MCP_HTTP_PORT No Port for the stateless Streamable HTTP MCP server. Default: `8787`. Default: 8787
LOGGLY_ACCOUNTS No JSON object mapping an account name to its credentials, e.g. {"acme":{"subdomain":"acme","token":"acme_token","authMode":"bearer"},"beta":{"subdomain":"beta","token":"beta_token"}}. When set, it replaces LOGGLY_SUBDOMAIN/LOGGLY_TOKEN/LOGGLY_AUTH_MODE and every tool accepts an optional `account` argument.
LOGGLY_FIELD_IP No Override for the IP field name used by the aggregation tools, instead of discovery-first field resolution.
LOGGLY_AUTH_MODE No Loggly authentication mode: `bearer` (default) or `basic`. Replaced by LOGGLY_ACCOUNTS when that is set. Default: bearer
LOGGLY_LOG_LEVEL No Log verbosity: `error`, `warn`, `info` (default), or `debug`. Logs are written to stderr. Default: info
MCP_BEARER_TOKEN No Bearer token gating access to the remote HTTP MCP server (`POST /mcp` requires `Authorization: Bearer <MCP_BEARER_TOKEN>`). Required when running the HTTP variant via `npm run start:http`. Treat as a secret.
ABUSEIPDB_API_KEY No AbuseIPDB API key used by `ip_reputation` and `get_ip_context`. If missing, that source comes back as `available: false` rather than an error.
GREYNOISE_API_KEY No GreyNoise API key used by `ip_reputation` and `get_ip_context`. If missing, that source comes back as `available: false` rather than an error.
LOGGLY_FIELD_HOST No Override for the host field name used by the aggregation tools, instead of discovery-first field resolution.
LOGGLY_FIELD_PATH No Override for the path field name used by the aggregation tools, instead of discovery-first field resolution.
LOGGLY_SMOKE_TEST No Set to `1` to run the smoke test without Loggly credentials.
LOGGLY_MAX_RETRIES No Maximum number of retries for transient failures (429, 500 with timeout-like body, 503, 504, or network timeouts). Default: `2`. Default: 2
LOGGLY_FIELD_STATUS No Override for the status field name used by the aggregation tools, instead of discovery-first field resolution.
LOGGLY_DEFAULT_ACCOUNT No Default account name used when a tool's optional `account` argument is omitted and LOGGLY_ACCOUNTS is set.
LOGGLY_FIELD_USER_AGENT No Override for the user agent field name used by the aggregation tools, instead of discovery-first field resolution.
LOGGLY_REQUEST_TIMEOUT_MS No Per-call request timeout in milliseconds. Default: `15000`. Default: 15000
LOGGLY_MAX_CONCURRENT_REQUESTS No Caps how many fan-out requests the aggregation tools run at once per account. Default: `4`. Default: 4

Similar servers