npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-server-logzio

v0.1.12

Published

Model Context Protocol server for Logz.io log management platform

Readme

MCP Server for Logz.io

License: MIT Node.js Version TypeScript

An unofficial* Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with Logz.io's log management platform. Includes tools for simple log search, Lucene query search, and fetching basic statistics from logz io.

*I'll be a little surprised if logz io makes an official MCP server. Instead, they seem to be leaning heavily into integrating AI directly into their tooling, which makes sense, but doesn't give the user much flexibility over models or integration with external tools.. which is why this project exists.

🚀 Quick Start

Add this to your Claude/Cursor/etc configuration file:

{
  "mcpServers": {
    
    # other servers ...
    
    "logzio": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-logzio", 
        "apiKey", "YOUR_LOGZIO_API_KEY"
      ]
    }
  }
}

US is the default region. For other regions:

{
  "mcpServers": {
    
    # other servers ...
    
    "logzio": {
      "command": "npx", 
      "args": [
        "-y",
        "mcp-server-logzio",
        "apiKey", "YOUR_LOGZIO_API_KEY",
        "region", "eu" # add this for example
      ]
    }
  }
}

🛠️ Advanced Configuration

Command Line Arguments

| Argument | Description | Default | Required | |----------|-------------|---------|----------| | apiKey <key> | Your Logz.io API key | - | Yes | | region <region> | Logz.io region (us, us-west, eu, ca, au, uk) | us | No | | logzioUrl <url> | Custom Logz.io API URL (overrides region) | - | No | | --timeout <ms> | Request timeout | 30000 | No | | --retry-attempts <num> | Retry attempts | 3 | No | | --max-results <num> | Max results per query | 1000 | No |

Supported Regions

The server automatically maps region codes to the correct Logz.io API endpoints:

| Region Code | Description | API Endpoint | |-------------|-------------|--------------| | us | US East (default) | https://api.logz.io | | us-west | US West | https://api-wa.logz.io | | eu | Europe | https://api-eu.logz.io | | ca | Canada | https://api-ca.logz.io | | au | Australia | https://api-au.logz.io | | uk | United Kingdom | https://api-uk.logz.io |

Finding Your Region: Log into your Logz.io account and check the URL in your browser:

  • https://app.logz.io → use region us
  • https://app-eu.logz.io → use region eu
  • https://app-ca.logz.io → use region ca
  • etc.

🔧 Available Tools

These are the tools your agent will see.

search_logs

Search through logs with simple queries and filters.

Parameters:

  • query (required): Search query string
  • timeRange: Time range (1h, 6h, 12h, 24h, 3d, 7d, 30d)
  • from/to: Custom time range (ISO 8601)
  • logType: Filter by log type
  • severity: Filter by severity level
  • limit: Maximum results (1-1000)
  • sort: Sort order (asc/desc)

query_logs

For more advanced search using Lucene queries

Parameters:

  • luceneQuery (required): Lucene query string
  • from/to: Time range (ISO 8601)
  • size: Maximum results (1-1000)
  • sort: Sort order (asc/desc)

get_log_stats

Retrieve aggregated log statistics and metrics.

Parameters:

  • timeRange: Time range (1h, 6h, 12h, 24h, 3d, 7d, 30d)
  • from/to: Custom time range (ISO 8601)
  • groupBy: Fields to group by

🏗️ Development, if you want to mess with the code

Prerequisites

  • Node.js 18+
  • TypeScript 5.8+
  • Valid Logz.io account and API key

Setup

# Clone the repository
git clone https://github.com/modelcontextprotocol/mcp-server-logzio.git
cd mcp-server-logzio

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Run in development mode
npm run dev

Scripts

  • npm run build - Compile TypeScript
  • npm run dev - Run in development mode
  • npm test - Run test suite
  • npm run format - Format code with Prettier
  • npm run type-check - Type check without emission

📁 Project Structure

mcp-server-logzio/
├── src/
│   ├── api/           # Logz.io API client and types
│   ├── tools/         # MCP tool implementations
│   ├── utils/         # Utilities (logging, errors)
│   ├── config.ts      # Configuration management
│   ├── server.ts      # MCP server implementation
│   └── index.ts       # Entry point
├── tests/             # Test suites
├── examples/          # Usage examples
├── docs/              # Documentation
└── dist/              # Compiled output