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-sonarqube-legacy

v0.1.0

Published

MCP server for legacy SonarQube servers (9.x). Exposes quality gates, issues, measures, hotspots and more via the SonarQube Web API.

Readme

mcp-sonarqube-legacy

An MCP (Model Context Protocol) server for legacy SonarQube servers (9.x). It exposes quality gates, issues, measures, security hotspots, rules, and system info from the SonarQube Web API as MCP tools.

The official SonarSource SonarQube MCP requires SonarQube Server 2025.1+. This package is designed for teams still on the 9.9 LTS line, using only Web API endpoints verified to work with a standard USER token on SonarQube 9.9.3.

Installation

Requires Node.js 18+.

npx mcp-sonarqube-legacy@latest

Configuration

The server reads two environment variables:

| Variable | Required | Description | | ------------------- | -------- | ------------------------------------------------------ | | SONARQUBE_URL | yes | Base URL of the SonarQube server (no trailing slash). | | SONARQUBE_TOKEN | yes | SonarQube USER token (generate via My Account → Security). |

Cursor setup

Add to ~/.cursor/mcp.json (or your project-level .cursor/mcp.json):

{
  "mcpServers": {
    "sonarqube": {
      "command": "npx",
      "args": ["-y", "mcp-sonarqube-legacy@latest"],
      "env": {
        "SONARQUBE_URL": "https://sonarqube.example.com",
        "SONARQUBE_TOKEN": "squ_xxx"
      }
    }
  }
}

Cursor also forwards variables from ~/.cursor/.env.cursor, so you can keep the token there instead.

Tools

| Tool | Endpoint | Purpose | | --------------------------- | ------------------------------------ | ------------------------------------------------- | | get_quality_gate_status | /api/qualitygates/project_status | Quality gate status for a project/branch/PR. | | list_quality_gates | /api/qualitygates/list | List all quality gates. | | search_issues | /api/issues/search | Search issues with filters (severity, type, ...). | | get_component_measures | /api/measures/component | Metrics for a project/component. | | show_rule | /api/rules/show | Details for a specific rule. | | search_rules | /api/rules/search | Search rules by language/query. | | search_metrics | /api/metrics/search | Available SonarQube metrics. | | list_languages | /api/languages/list | Supported programming languages. | | search_hotspots | /api/hotspots/search | Security hotspots for a project. | | list_pull_requests | /api/project_pull_requests/list | Pull requests analyzed for a project. | | get_system_status | /api/system/status | Server status and version. | | ping_system | /api/system/ping | Liveness check. |

Compatibility

Tested against SonarQube 9.9.3 LTS. All tools use endpoints that return 200 with a standard USER token. Admin-only endpoints (/api/system/health, /api/system/info, /api/projects/search, webhooks, ...) are intentionally excluded.

Development

npm install
npm run build
SONARQUBE_URL=... SONARQUBE_TOKEN=... npm start

License

MIT