MCP Server LogoMCP Server
MCPsカテゴリディレクトリ投稿する
投稿する
MCPsカテゴリディレクトリ投稿する
投稿する

MCPサーバー

MCPサーバーのリスト、Awesome MCPサーバーとClaude MCP統合を含む。AIの能力を強化するためのMCPサーバーを検索して発見します。

お問い合わせ

[email protected]

MCPサーバーについて

プライバシーポリシー利用規約

リソース

モデルコンテキストプロトコルMCPスターターガイドClaude MCPサーバー

コミュニティ

GitHub

© 2026 mcpserver.cc © 2025 MCPサーバー. 全著作権所有.

プライバシーポリシー利用規約
  1. Home
  2. /Categories
  3. /Developer Tools
  4. /Sonarqube Mcp Server
Sonarqube Mcp Server

Sonarqube Mcp Server

作成者 SonarSource•9 months ago
サイトを訪問する

SonarQube MCP Server

Developer Tools
SonarQubeMCPServer

SonarQube MCP Server

The SonarQube MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with SonarQube Server or Cloud. It also enables the analysis of code snippet directly within the agent context.

Prerequisites

SonarQube MCP Server can be launched in two ways:

  • With a Docker Container
    • Requires: Docker installed.
  • Directly from the JAR
    • Requires: Java Development Kit (JDK) version 21 or later.

Installation

Building

Run the following Gradle command to clean the project, download analyzers, and build the application:

./gradlew clean build -x test

The JAR file will be created in build/libs/.

To create the Docker image, run the buildDocker task:

./gradlew clean buildDocker -x test

Usage

VS Code

Once the application is built locally (either as a JAR or a Docker image), you can use the following buttons to simplify the installation process within VS Code.

General cases

Alternatively, you can manually copy and paste the MCP configurations. Below are example snippets.

  • Docker
{
  "sonarqube-mcp-server-docker": {
    "command": "docker",
    "args": [
      "run",
      "-i",
      "--rm",
      "-e",
      "SONARQUBE_TOKEN",
      "-e",
      "SONARQUBE_ORG",
      "sonarqube-mcp-server:<version>"
    ],
    "env": {
      "SONARQUBE_TOKEN": "<token>",
      "SONARQUBE_ORG": "<org>"
    }
  }
}
  • JAR
{
  "sonarqube-mcp-server": {
    "command": "java",
    "args": [
      "-jar",
      "<path_to_sonarqube_mcp_server_jar>"
    ],
    "env": {
      "STORAGE_PATH": "<path_to_your_mcp_storage>",
      "PLUGINS_PATH": "<path_to_your_sonar_analyzers>",
      "SONARQUBE_TOKEN": "<token>",
      "SONARQUBE_ORG": "<org>"
    }
  }
}

Configuration

Depending on your environment, you should provide specific environment variables.

SonarQube Cloud

To enable full functionality, the following environment variables must be set before starting the server:

Environmment variable Description
SONARQUBE_TOKEN Your SonarQube Cloud token
SONARQUBE_ORG Your SonarQube Cloud organization key

SonarQube Server

Environmment variable Description
SONARQUBE_TOKEN Your SonarQube Server USER token
SONARQUBE_URL Your SonarQube Server URL

JAR

On top of the previous SonarQube environments, you should add the following variable when running the MCP Server via a JAR:

Environmment variable Description
STORAGE_PATH An absolute path to a writable directory where SonarQube MCP Server will store its files (e.g., for creation, updates, and persistence)
PLUGINS_PATH An optional absolute path to a folder containing the SonarQube analyzers. If none is provided, analysis is disabled

Tools

Analysis

  • analyze_code_snippet - Analyze a code snippet with SonarQube analyzers to find SonarQube issues in it.
    • codeSnippet - Code snippet or full file content - Required String
    • language - Optional language of the code snippet - String

Languages

  • list_languages - List all programming languages supported in this instance
    • q - Optional pattern to match language keys/names against - String

Issues

  • change_sonar_issue_status - Change the status of a SonarQube issue to “accept”, “falsepositive” or to “reopen” an issue

    • key - Issue key - Required String
    • status - New issue’s status - Required Enum {“accept”, “falsepositive”, “reopen”}
  • search_sonar_issues_in_projects - Search for SonarQube issues in my organization’s projects

    • projects - Optional list of Sonar projects - String[]
    • pullRequestId - Optional Pull Request’s identifier - String

Measures

  • get_component_measures - Get measures for a component (project, directory, file)
    • component - Optional component key to get measures for - String
    • branch - Optional branch to analyze for measures - String
    • metricKeys - Optional metric keys to retrieve (e.g. nloc, complexity, violations, coverage) - String[]
    • pullRequest - Optional pull request identifier to analyze for measures - String

Metrics

  • search_metrics - Search for metrics
    • p - Optional 1-based page number (default: 1) - Integer
    • ps - Optional page size. Must be greater than 0 and less than or equal to 500 (default: 100) - Integer

Projects

  • search_my_sonarqube_cloud_projects - Find Sonar projects in my organization
    • page - Optional page number - String

Quality Gates

  • get_quality_gate_status_for_project - Get the Quality Gate Status for the project

    • analysisId - Optional analysis ID - String
    • branch - Optional branch key - String
    • projectId - Optional project ID - String
    • projectKey - Optional project key - String
    • pullRequest - Optional pull request ID - String
  • list_quality_gates - List all quality gates in the organization

Rules

  • list_rule_repositories - List rule repositories available in SonarQube

    • language - Optional language key - String
    • q - Optional search query - String
  • show_rule - Shows detailed information about a SonarQube rule

    • key - Rule key - Required String

Data and telemetry

This server collects anonymous usage data and sends it to SonarSource to help improve the product. No source code or IP address is collected, and SonarSource does not share the data with anyone else. Collection of telemetry can be disabled with the following system property or environment variable: TELEMETRY_DISABLED=true. Click here{:target=“_blank”} to see a sample of the data that are collected.

License

Copyright 2025 SonarSource.

Licensed under the SONAR Source-Available License v1.0

前提条件

  • •サーバーのドメインに精通している
  • •関連技術の基本的な理解
  • •Developer Toolsの知識

おすすめのサーバー

Chromia Mcp

Chromia Mcp

Database Updater Mcp Server

Database Updater Mcp Server

Database Upadter MCP

Ragie Mcp Server

Ragie Mcp Server

Ragie Model Context Protocol Server

もっと見る → →

詳細

作成日

June 11, 2025

最終更新日

June 11, 2025

カテゴリー

Developer Tools

作成者

SonarSource

シェアする

もっと見る

Nhl Go

Nhl Go

NHL api client, mcp server, and cli written in Go

Python Docs Server Mcp Server

Python Docs Server Mcp Server

Get Python Docs

Esxi Mcp Server

Esxi Mcp Server

A VMware ESXi/vCenter management server based on MCP (Model Control Protocol), providing simple REST API interfaces for virtual machine management.

Tavily Search Mcp Server

Tavily Search Mcp Server

An MCP server implementation that integrates the Tavily Search API, providing optimized search capabilities for LLMs.