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

buglens-mcp

v1.0.0

Published

MCP server for BugLens — connect AI coding agents to WordPress sites on shared hosting

Readme

BugLens MCP Server

Connect AI coding agents (Claude Code, Cursor, Windsurf, Codex, Gemini) to WordPress sites via the BugLens Bridge API.

15 Tools Available

| Tool | Description | |------|-------------| | read_file | Read file contents | | write_file | Write to existing file | | create_file | Create new file or directory | | delete_file | Delete file or empty directory | | rename_file | Rename/move file | | list_directory | List directory contents | | search_files | Grep-like search across files | | file_info | Get file metadata | | diff_file | Compare content vs file on disk | | bulk_read | Read multiple files at once (max 20) | | directory_tree | Tree view of directory structure | | wp_cli | Execute WP-CLI commands remotely | | get_bug_reports | List BugLens bug reports | | get_bug_report | Get full bug report details | | update_bug_status | Update bug report status |

Requirements

  • Node.js 18+
  • BugLens plugin v3.0+ installed and activated on WordPress site
  • Bridge API enabled in BugLens settings (WP Admin > BugLens > Settings > Bridge)
  • API key generated in BugLens settings

Installation

Step 1: Install dependencies

cd buglens-mcp
npm install

Step 2: Get your API key

  1. Go to WordPress Admin > BugLens > Settings > Bridge tab
  2. Enable the Bridge API
  3. Copy or generate an API Key

Step 3: Add to your AI agent

Claude Code (Windows CMD)

set BUGLENS_URL=https://your-site.com
set BUGLENS_KEY=your_api_key_here
claude mcp add buglens -- node C:\path\to\buglens-mcp\bin\buglens-mcp.js

Claude Code (Windows PowerShell)

$env:BUGLENS_URL="https://your-site.com"
$env:BUGLENS_KEY="your_api_key_here"
claude mcp add buglens -- node C:\path\to\buglens-mcp\bin\buglens-mcp.js

Claude Code (macOS / Linux)

BUGLENS_URL=https://your-site.com BUGLENS_KEY=your_api_key_here claude mcp add buglens -- node /path/to/buglens-mcp/bin/buglens-mcp.js

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "buglens": {
      "command": "node",
      "args": ["C:\\path\\to\\buglens-mcp\\bin\\buglens-mcp.js"],
      "env": {
        "BUGLENS_URL": "https://your-site.com",
        "BUGLENS_KEY": "your_api_key_here"
      }
    }
  }
}

Cursor / Windsurf (.cursor/mcp.json or similar)

{
  "mcpServers": {
    "buglens": {
      "command": "node",
      "args": ["/path/to/buglens-mcp/bin/buglens-mcp.js"],
      "env": {
        "BUGLENS_URL": "https://your-site.com",
        "BUGLENS_KEY": "your_api_key_here"
      }
    }
  }
}

Verify Connection

After adding the MCP server, ask your AI agent:

"List the WordPress root directory using BugLens"

It should return the directory listing of your WordPress installation.


Security

  • All requests require a valid API key (X-BugLens-Key header)
  • Optional: IP whitelist, time-limited tokens, path restrictions, read-only mode
  • Configure security in WP Admin > BugLens > Settings > Bridge

License

GPL-2.0-or-later