# Connect SonarQube Server to Your AI Agent (Universal MCP)

> Use your AI to track issues, audit security, and monitor compliance in SonarQube Server — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http sonarqube-server https://api.universalmcp.app/mcp/sonarqube-server`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/sonarqube-server` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "sonarqube-server", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: SonarQube Server | Category: DevOps & IT/Security (SonarSource) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Project analysis, Pull request feedback, Access and tokens; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=sonarqube-server | Guide: https://universalmcp.app/mcp/sonarqube-server
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across project analysis, pull request feedback, and access and tokens. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Project analysis (1):** Project analysis (write)
- **Pull request feedback (1):** Pull request feedback (write)
- **Access and tokens (1):** Access and tokens (write)

## Example Prompts for SonarQube Server
- **Gate failures:** "List every SonarQube Server pull request that failed the quality gate this week and the rule that triggered it."
- **Coverage trend:** "Show SonarQube Server coverage on new code by project for the last 30 days, flagging drops below 80 percent."
- **Hotspot review:** "Summarize open security hotspots in SonarQube Server for auth-service, grouped by severity and assignee."
- **Draft PR comment:** "Draft a SonarQube Server review comment for PR 422 explaining the coverage gap, and hold it for my approval before posting."
