TokenToSeaMCP 广场
English 控制台

Sonar MCP Server

igorolv

Read-only MCP server for self-hosted SonarQube Community Build 26.4+: lets AI agents (Claude Code, Cursor, Copilot) read issues, security hotspots, rules and code snippets to fix findings locally

接入配置

选择客户端,复制配置,再按项目文档补齐环境变量。

一键添加到 Cursor一键添加到 VS Code

claude mcp add sonar --env SONAR_URL='<SONAR_URL>' --env SONAR_TOKEN='<SONAR_TOKEN>' -- docker run -i --rm -e SONAR_URL -e SONAR_TOKEN ghcr.io/igorolv/sonar-mcp-server:0.1.0

需要的环境变量

  • SONAR_URL
  • SONAR_TOKEN

把占位值换成你自己的密钥;不要把密钥提交到代码仓库。