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

gasoline-mcp

v5.2.0

Published

Gasoline MCP is an AI Debugger, Inspector, and Observability toolkit. It acts as Chrome DevTools for AI Agents using the Model Context Protocol (MCP).

Readme

gasoline-mcp

Browser observability for AI coding agents - autonomously debug and fix issues in real time. Streams console logs, network errors, and exceptions to Claude Code, Copilot, Cursor, or any MCP-compatible assistant. Enterprise ready.

Setup (2 Steps)

Step 1: Add the MCP Server to Your AI Tool

MCP (Model Context Protocol) lets your AI assistant talk to external tools. You just need to add a config snippet — no global install required. npx downloads and runs the binary automatically.

Pick your tool and add the config:

Option A: Per-project (recommended for teams) — create .mcp.json in your project root:

{
  "mcpServers": {
    "gasoline": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "gasoline-mcp", "--port", "7890", "--persist"]
    }
  }
}

Option B: Global — add to ~/.claude/settings.json:

{
  "mcpServers": {
    "gasoline": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "gasoline-mcp", "--port", "7890", "--persist"]
    }
  }
}

After adding, restart Claude Code. You should see "gasoline" listed when you run /mcp.

Architecture note: Your AI tool spawns a SINGLE Gasoline process that handles both:

  • HTTP server on port 7890 (for browser extension telemetry)
  • stdio MCP protocol (for AI tool commands)

Both interfaces share the same browser state. Do NOT manually start Gasoline — let the MCP system manage it.

Edit your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "gasoline": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "gasoline-mcp", "--port", "7890", "--persist"]
    }
  }
}

Restart Claude Desktop after saving.

Go to Settings → MCP Servers → Add Server, or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gasoline": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "gasoline-mcp", "--port", "7890", "--persist"]
    }
  }
}

Restart Cursor after saving.

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

{
  "mcpServers": {
    "gasoline": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "gasoline-mcp", "--port", "7890", "--persist"]
    }
  }
}

Restart Windsurf after saving.

Add to ~/.continue/config.json:

{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "gasoline-mcp", "--port", "7890", "--persist"]
        }
      }
    ]
  }
}

Add to ~/.config/zed/settings.json:

{
  "context_servers": {
    "gasoline": {
      "command": {
        "path": "npx",
        "args": ["-y", "gasoline-mcp", "--port", "7890", "--persist"]
      }
    }
  }
}

Step 2: Install the Browser Extension

The extension captures logs from your browser and sends them to the local Gasoline server.

  1. Download or clone the Gasoline repository
  2. Open chrome://extensions in Chrome
  3. Enable Developer mode (top right toggle)
  4. Click Load unpacked
  5. Select the extension/ folder from the repository

Once installed, you'll see the Gasoline icon in your browser toolbar. Click it to check connection status.

That's It!

Your AI assistant now has access to 5 composite tools:

| Tool | What it does | | ---- | ------------ | | observe | Real-time browser state (errors, logs, network, websocket, actions, vitals, page) | | analyze | Data analysis and insights (performance, api, accessibility, changes, timeline) | | generate | Code generation from captured data (reproduction, test, pr_summary, sarif, har) | | configure | Session and noise management (store, noise_rule, dismiss, clear) | | query_dom | Live DOM inspection via CSS selectors |

Try it: open your web app, trigger an error, then ask your AI assistant "What browser errors do you see?"

How It Works

Browser → Extension → Local Server (localhost:7890) → Log File → AI reads via MCP
  1. The extension captures console logs, network errors, and exceptions from your browser
  2. Logs are sent to the Gasoline server running on your machine (localhost only)
  3. Your AI assistant reads the logs through the MCP protocol
  4. Everything stays local — no data ever leaves your machine

Manual Server Mode (No MCP)

If your AI tool doesn't support MCP, you can run the server standalone:

npx gasoline-mcp

This starts an HTTP server on http://localhost:7890 and writes logs to ~/gasoline-logs.jsonl. Your AI can read this file directly.

Options

gasoline-mcp [options]

  --port <number>        Port to listen on (default: 7890)
  --log-file <path>      Path to log file (default: ~/gasoline-logs.jsonl)
  --max-entries <number> Max log entries before rotation (default: 1000)
  --mcp                  No-op (MCP mode is the default)
  --version              Show version
  --help                 Show help

Troubleshooting

"gasoline" not showing up in my AI tool?

  • Make sure you restarted the AI tool after adding the config
  • Check the config file path is correct for your tool
  • Try running npx gasoline-mcp --version to verify the package works

"bind: address already in use" error?

If MCP fails to start with a port conflict, you likely have a manually-started Gasoline instance running:

# Find and kill the conflicting process
ps aux | grep gasoline | grep -v grep
kill <PID>

# Or on macOS/Linux:
pkill -f gasoline

Then reload your MCP connection. The MCP system will spawn a fresh instance. Remember: do NOT manually start Gasoline when using MCP mode.

Extension shows "Disconnected"?

  • The MCP server starts automatically when your AI tool launches — check if it's running: ps aux | grep gasoline
  • Verify the extension's Server URL matches your config (default: http://localhost:7890)
  • Try restarting your AI tool to re-initialize the MCP connection

No logs appearing?

  • Click the extension icon and check the capture level (try "All Logs")
  • Make sure the page was loaded/refreshed after the extension was installed
  • Check ~/gasoline-logs.jsonl to see if entries are being written

Supported Platforms

  • macOS (Apple Silicon & Intel)
  • Linux (x64 & ARM64)
  • Windows (x64)

Privacy

100% local. Logs never leave your machine. No cloud, no analytics, no telemetry. The server only binds to 127.0.0.1.

Links