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

@logrocket/mcp

v0.2.1

Published

An MCP (Model Context Protocol) server that enables Claude and other MCP clients to query the LogRocket API in natural language to access information about your LogRocket sessions, metrics, issues, and more. For example, allows you to:

Readme

LogRocket MCP Server

An MCP (Model Context Protocol) server that enables Claude and other MCP clients to query the LogRocket API in natural language to access information about your LogRocket sessions, metrics, issues, and more. For example, allows you to:

  • Pull in context about your app's behavior to help with debugging and fixing errors
  • Get a better sense of how users interact with your app
  • Query a user or account's sessions for targeted investigation

Available Tools

use_logrocket

Run a natural language query against LogRocket. Chains tool calls internally to limit context usage.

Parameters:

  • query (required) - The natural language query to run against LogRocket data
  • chatID (optional) - The ID of a previous conversation to continue; omit to start a new conversation

Example:

"Use LogRocket to tell me how many users have gone through the refills flow today."

...

"On average, how long did it take them to complete the flow?"

...

"How can we improve the flow to reduce the number of users who abandon it?"

query_logrocket_user

Deprecated. Use use_logrocket instead.

Query LogRocket by user email to get information about their sessions.

Parameters:

  • userEmail (required) - The email address of the user to query
  • question (required) - Question about the user's behavior/sessions

Example:

"Can you check LogRocket for user [email protected] and tell me what errors they encountered?"

query_logrocket_sessions

Deprecated. Use use_logrocket instead.

Query LogRocket for specific sessions by URL. Use this when you have a LogRocket session URL.

Parameters:

  • sessionURLs (required) - Array of LogRocket session URLs (max 10)
  • question (required) - Question about the sessions

Session URL format: https://app.logrocket.com/{org}/{app}/s/{recordingID}/{sessionID}

Example:

"What errors occurred in this session: https://app.logrocket.com/apphub/logrocket/s/abc123/456"

Environment Variables

| Variable | Description | | --------------------- | --------------------------------------- | | LOGROCKET_API_TOKEN | API token for authentication (required) |

The API token is available at https://app.logrocket.com/r/settings/general.

Configuration for MCP Clients

Cursor

Add the following to your Cursor MCP configuration file (~/.cursor/mcp.json):

{
  "mcpServers": {
    "logrocket": {
      "command": "npx",
      "args": ["@logrocket/mcp"],
      "env": {
        "LOGROCKET_API_TOKEN": "..."
      }
    }
  }
}

Claude Desktop

Add to your Claude Desktop configuration file:

{
  "mcpServers": {
    "logrocket": {
      "command": "npx",
      "args": ["@logrocket/mcp"],
      "env": {
        "LOGROCKET_API_TOKEN": "..."
      }
    }
  }
}

Configuration File Locations

  • Cursor: ~/.cursor/mcp.json
  • macOS (Claude Desktop): ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows (Claude Desktop): %APPDATA%\Claude\claude_desktop_config.json
  • Linux (Claude Desktop): ~/.config/Claude/claude_desktop_config.json

Security Notes

  • Never commit your API token to version control
  • Rotate tokens regularly according to your security policy
  • The token should be treated as sensitive credentials

Troubleshooting

Token not found error

If you see an error about LOGROCKET_API_TOKEN not being set:

  1. Verify the environment variable is set in your MCP configuration
  2. Restart your MCP client after updating the configuration

Connection errors

If you encounter connection timeouts or errors:

  1. Verify you have internet connectivity
  2. Check if the API endpoint is accessible
  3. Verify your API token is valid and not expired
  4. Check for any firewall or proxy restrictions