SonarQube MCP Server

Developmentstdiov1.0.0
Репозиторий

Official SonarQube MCP server that brings code quality and security analysis into AI workflows. Lets agents fetch project issues, security hotspots, quality-gate status, and metrics from SonarQube Server or SonarCloud, so code health can be inspected and triaged conversationally.

Подключение

Добавьте эту конфигурацию в .claude/mcp.json

{
  "mcpServers": {
    "sonarqube": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SONARQUBE_TOKEN",
        "-e",
        "SONARQUBE_URL",
        "mcp/sonarqube"
      ],
      "env": {
        "SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
        "SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
      }
    }
  }
}

Инструменты (3)

list_issues

List code quality and security issues for a project.

{
  "type": "object",
  "required": [
    "project_key"
  ],
  "properties": {
    "severities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Severity filter (e.g., BLOCKER, CRITICAL, MAJOR)"
    },
    "project_key": {
      "type": "string",
      "description": "SonarQube project key"
    }
  }
}

get_quality_gate

Get the quality-gate status for a project.

{
  "type": "object",
  "required": [
    "project_key"
  ],
  "properties": {
    "project_key": {
      "type": "string",
      "description": "SonarQube project key"
    }
  }
}

get_metrics

Retrieve measures such as coverage, bugs, and code smells for a project.

{
  "type": "object",
  "required": [
    "project_key"
  ],
  "properties": {
    "metric_keys": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Metric keys to fetch"
    },
    "project_key": {
      "type": "string",
      "description": "SonarQube project key"
    }
  }
}

Ресурсы

Этот сервер не предоставляет ресурсы.

Промпты

Этот сервер не предоставляет промпты.

Сведения о сервере

Автор
SonarSource (@SonarSource)
Репозиторий
https://github.com/SonarSource/sonarqube-mcp-server
Лицензия
LGPL-3.0
Версия
1.0.0
Звёзды
360
Последнее обновление
24 июня 2026 г.