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

victorialogs-mcp-server

v1.0.0

Published

MCP server for VictoriaLogs - query logs using LogsQL

Readme

VictoriaLogs MCP Server

MCP (Model Context Protocol) server for querying VictoriaLogs using LogsQL.

Installation

Via npm (recommended)

npm install -g victorialogs-mcp-server

Or run directly with npx:

npx victorialogs-mcp-server

From source

git clone https://github.com/user/victorialogs-mcp.git
cd victorialogs-mcp
npm install
npm run build

Configuration

Set environment variables:

| Variable | Description | Default | |----------|-------------|---------| | VICTORIALOGS_URL | VictoriaLogs server URL | http://localhost:9428 | | VICTORIALOGS_ACCOUNT_ID | Tenant Account ID (optional) | - | | VICTORIALOGS_PROJECT_ID | Tenant Project ID (optional) | - |

Usage with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "victorialogs": {
      "command": "npx",
      "args": ["victorialogs-mcp-server"],
      "env": {
        "VICTORIALOGS_URL": "http://localhost:9428"
      }
    }
  }
}

Usage with Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "victorialogs": {
      "command": "npx",
      "args": ["victorialogs-mcp-server"],
      "env": {
        "VICTORIALOGS_URL": "http://localhost:9428"
      }
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | victorialogs_query | Execute LogsQL queries and get log entries | | victorialogs_hits | Get hit count statistics over time | | victorialogs_facets | Get most frequent values per field | | victorialogs_stats_query | Execute stats query at a point in time | | victorialogs_stats_query_range | Execute stats query over a time range | | victorialogs_streams | Query log streams | | victorialogs_stream_ids | Get stream IDs | | victorialogs_stream_field_names | List stream field names | | victorialogs_stream_field_values | Get stream field values | | victorialogs_field_names | List all log field names | | victorialogs_field_values | Get values for a specific field | | victorialogs_tenants | List available tenants |

Example Queries

# Find error logs
victorialogs_query(query="error")

# Filter by app and time
victorialogs_query(query='{app="nginx"} AND _time:1h')

# Get stats
victorialogs_stats_query(query="_time:1d | stats by (level) count(*)")

# Get hit counts over time
victorialogs_hits(query="error", start="24h", step="1h")

# Explore fields
victorialogs_field_names(query="*")
victorialogs_field_values(query="*", field="level")

LogsQL Reference

See VictoriaLogs LogsQL documentation for query syntax.

License

MIT