sonarqube.com
sonarqube.com logo

SonarQube

Integrates with SonarQube to provide code quality metrics, issue tracking, and quality gate status information for softw...

Created byApr 22, 2025

SonarQube MCP Server

A Model Context Protocol (MCP) server that integrates with SonarQube to provide AI assistants with access to code quality metrics, issues, and analysis results.

Overview

The SonarQube MCP Server enables AI assistants to interact with SonarQube's code quality analysis capabilities through the Model Context Protocol. This integration allows AI assistants to:
  • Retrieve code metrics and analysis results
  • Access and filter issues
  • Check quality status
  • Analyze project quality over time

Features

  • List all SonarQube projects with pagination support
  • Get detailed issue information from SonarQube projects with extensive filtering options
  • Support for both SonarQube and SonarCloud
  • Comprehensive parameter validation using Zod schemas
  • Full TypeScript support

Usage with Claude Desktop

  1. Edit claude_desktop_config.json:
  1. Restart Claude Desktop to apply the changes

Docker

NPX

Available Tools

The SonarQube MCP Server provides the following tools:

SonarQube Tools

  1. projects: List all SonarQube projects
  1. issues: Get issues from a SonarQube project

Environment Variables

  • SONARQUBE_TOKEN - Authentication token for SonarQube API access
  • SONARQUBE_ORGANIZATION - (Optional) Organization key for SonarQube Cloud

Development

  1. Clone the repository:
  1. Install dependencies:
  1. Build the project:
  1. Configure Claude Desktop

Prerequisites

  • Node.js 20 or higher
  • pnpm 10.7.0 or higher
  • Docker (for container builds)

Scripts

  • pnpm run build - Build the TypeScript code
  • pnpm run start - Start the server
  • pnpm run dev - Start the server in development mode
  • pnpm run test - Run tests
  • pnpm run lint - Run ESLint
  • pnpm run format - Format code with Prettier

License

MIT

SonarQube MCP Server

A Model Context Protocol (MCP) server that integrates with SonarQube to provide AI assistants with access to code quality metrics, issues, and analysis results.

Overview

The SonarQube MCP Server enables AI assistants to interact with SonarQube's code quality analysis capabilities through the Model Context Protocol. This integration allows AI assistants to:
  • Retrieve code metrics and analysis results
  • Access and filter issues
  • Check quality status
  • Analyze project quality over time

Features

  • List all SonarQube projects with pagination support
  • Get detailed issue information from SonarQube projects with extensive filtering options
  • Support for both SonarQube and SonarCloud
  • Comprehensive parameter validation using Zod schemas
  • Full TypeScript support

Usage with Claude Desktop

  1. Edit claude_desktop_config.json:
  1. Restart Claude Desktop to apply the changes

Docker

NPX

Available Tools

The SonarQube MCP Server provides the following tools:

SonarQube Tools

  1. projects: List all SonarQube projects
  1. issues: Get issues from a SonarQube project

Environment Variables

  • SONARQUBE_TOKEN - Authentication token for SonarQube API access
  • SONARQUBE_ORGANIZATION - (Optional) Organization key for SonarQube Cloud

Development

  1. Clone the repository:
  1. Install dependencies:
  1. Build the project:
  1. Configure Claude Desktop

Prerequisites

  • Node.js 20 or higher
  • pnpm 10.7.0 or higher
  • Docker (for container builds)

Scripts

  • pnpm run build - Build the TypeScript code
  • pnpm run start - Start the server
  • pnpm run dev - Start the server in development mode
  • pnpm run test - Run tests
  • pnpm run lint - Run ESLint
  • pnpm run format - Format code with Prettier

License

MIT