What you can do with SonarCloud

Built for

Engineering Managers, DevOps Leads, Platform Engineers, Security Champions, Staff Engineers

Example workflows

Discover org and projects

Grounds every later question in the correct organization and project keys.

Try this

List SonarCloud organizations I can access, then show projects in my main org with their keys and last analysis status.

Release gate check

Answers ship/no-ship questions without opening the SonarCloud UI.

Try this

For project myorg_myrepo on main, what is the quality gate status and summary measures for bugs, vulnerabilities, coverage, and code smells?

Blocker triage

Turns org-wide issue search into a standup-ready brief.

Try this

Search open BLOCKER and CRITICAL issues in my SonarCloud organization, grouped by project, and list the top ten by severity.

Security hotspot review

Surfaces human-review security work separate from automatic issue rules.

Try this

List TO_REVIEW security hotspots for myorg_myrepo on the main branch and summarize file paths and review status.

Context to know first

What can AI agents do with SonarCloud on MCPBundles?

Agents can discover organizations and projects, search issues and security hotspots, read quality gate status, inspect quality profiles and rules, fetch project measures, list branches and pull requests, and pull source snippets for findings — using read-only SonarCloud Web API access from your connected token.

How do I connect SonarCloud?

Sign in to MCPBundles, open the SonarCloud skill page, and paste a SonarCloud personal access token from your account security settings. MCPBundles stores the token securely and sends it on each agent request.

Do I need a SonarCloud organization before using this?

Yes. Most project, issue, and gate queries need an organization key from SonarCloud. Agents can call list_organizations first when you are not sure which key to use.

Related editorial

SonarCloud Code Quality Workflows with AI

How AI agents can triage issues, read quality gate status, review security hotspots, and summarize project measures before release.

Read article

AI Skill
SKILL.md

Domain knowledge for SonarCloud — workflow patterns, data models, and gotchas for your AI agent.

SonarCloud

SonarCloud analyzes code quality and security. Organizations scope everything; projects are analyzed repositories; issues and hotspots are findings; measures are metric values; quality gates and profiles define pass/fail and rule sets.

Discovery workflow

  1. get_current_user — who the token belongs to.
  2. list_organizations — organization keys for the account.
  3. get_projects — list/search projects, or fetch one with project_key.
  4. search_issues / search_hotspots — findings at org or project scope.
  5. get_measures / get_project_quality_gate_status — project health summary.

Tool groups

GroupTools
Accountget_current_user
Organizationlist_organizations, list_organization_groups, list_organization_users, list_project_tags, list_favorites
Projectsget_projects, get_component_tree, list_project_branches, list_pull_requests, search_project_analyses
Issuessearch_issues, list_issue_tags, list_issue_authors, get_issue_changelog
Metricslist_metrics, get_measures, search_measure_history
Quality gatesget_quality_gates, get_project_quality_gate_status, get_quality_gate_by_project, search_quality_gate_projects
Quality profilessearch_quality_profiles, compare_quality_profiles, list_quality_profile_projects
Rulesget_rules
Hotspotssearch_hotspots, get_hotspot
Sourceget_source_lines, show_duplications

Data model

  • Organization key — tenant boundary (sonarcloud.io/organizations/{key}).
  • Project key — usually {organization}_{repository}; required for project-scoped reads.
  • Component key — project, directory, or file key from get_component_tree.
  • Issue key — from search_issues; used with get_issue_changelog.
  • Hotspot key — from search_hotspots; used with get_hotspot.
  • Quality gate id — from get_quality_gates list mode.
  • Profile key — from search_quality_profiles.

Gotchas

  • Discover org first when the organization key is unknown.
  • Empty project list until a repository is imported in SonarCloud UI.
  • Project-scoped tools (branches, PRs, hotspots, measures, source lines) need a real project_key.
  • Branch / pull request — many tools accept optional branch or pull_request for non-main analysis.
  • Read-only — this bundle exposes SonarCloud GET endpoints only; issue transitions and gate edits are not included.
  • Auth — personal access token as Authorization: Bearer <token>; no third-party OAuth app for API access.

Tools in this Server (30)

Compare Quality Profiles

Compare two SonarCloud quality profiles and return rules that differ, are only on the left, or only on the right.

Get Component Tree

Return the SonarCloud component hierarchy beneath a project or module, including directories, files, and test units when requested.

Get Current User

Get the SonarCloud profile for the connected personal access token, including login, name, email, and organization group memberships.

Get Hotspot

Get full details for one SonarCloud security hotspot, including message, component location, and review status.

Get Issue Changelog

Get the SonarCloud change history for one issue, including status, severity, assignee, and comment transitions.

Get Measures

Get SonarCloud quality measures for one project. Pass metric_keys from list_metrics or rely on the default quality summary set.

Get Project Quality Gate Status

Get the computed SonarCloud quality gate status for a project, branch, pull request, or specific analysis.

Get Projects

List or search SonarCloud projects for an organization, or fetch one project when project_key is set. Project keys usually look like organization_repo...

Get Quality Gate By Project

Return the SonarCloud quality gate associated with a project within an organization.

Get Quality Gates

List SonarCloud quality gates for an organization, or fetch one gate and its conditions when gate_id is provided.

Get Rules

Search SonarCloud static analysis rules for an organization, or fetch one rule when rule_key is set. Optionally scope list mode to a quality profile.

Get Source Lines

Return SonarCloud source code lines for a file component within a line range. Use get_component_tree to discover file component keys.

List Favorites

List SonarCloud components bookmarked as favorites by the connected user within an organization.

List Issue Authors

List authors who introduced issues in a SonarCloud project. Useful before filtering search_issues by author.

List Issue Tags

List issue tags already used in a SonarCloud organization or project. Use returned tags in search_issues filters.

List Metrics

List available SonarCloud metric definitions (coverage, complexity, issues, etc.). Returns the global metrics catalog and does not require an organiza...

List Organization Groups

List SonarCloud user groups for an organization, including member counts and default-group flags.

List Organizations

List SonarCloud organizations visible to the connected account. Use the returned organization key across project, issue, quality gate, and quality pro...

List Organization Users

List SonarCloud users and their organization-level permissions. Useful for auditing who can administer quality gates and projects.

List Project Branches

List branches SonarCloud has analyzed for a project, including main-branch and long-lived branch metadata.

List Project Tags

List project tags already used in a SonarCloud organization. Tags help filter projects in get_projects and search_issues.

List Pull Requests

List pull requests SonarCloud has analyzed for a project, including status and quality gate results when available.

List Quality Profile Projects

List SonarCloud projects associated with a quality profile within an organization.

Search Hotspots

Search SonarCloud security hotspots for a project. Hotspots are security-sensitive code locations that require human review.

Search Issues

Search SonarCloud issues for an organization or project keys. Filter by severity, type, status, branch, pull request, tags, and creation date.

Search Measure History

Search historical SonarCloud measure values for a component over a date range. Useful for trend charts of bugs, coverage, or technical debt.

Search Project Analyses

Search recent SonarCloud analyses for a project. Each analysis id can be passed to get_project_quality_gate_status.

Search Quality Gate Projects

Search SonarCloud projects that are linked to or excluded from a quality gate.

Search Quality Profiles

Search SonarCloud quality profiles (rule sets) for an organization. Filter by language, defaults-only, or profiles linked to a project.

Show Duplications

Return duplicated code blocks detected by SonarCloud for a file or project component.

Frequently Asked Questions

What is the SonarCloud MCP server?

Sonar Cloud is a code quality and security management tool that provides automatic static code analysis and continuous inspection for various programming languages. Use it to identify code issues, enforce coding standards, and improve software integrity in development projects. It provides 30 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect SonarCloud to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/sonar-cloud. Authentication is handled automatically.

How many tools does SonarCloud provide?

SonarCloud provides 30 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does SonarCloud require?

SonarCloud uses API Key. SonarCloud requires credentials. Connect via MCPBundles and authentication is handled automatically.

What can AI agents do with SonarCloud on MCPBundles?

Agents can discover organizations and projects, search issues and security hotspots, read quality gate status, inspect quality profiles and rules, fetch project measures, list branches and pull requests, and pull source snippets for findings — using read-only SonarCloud Web API access from your connected token.

How do I connect SonarCloud?

Sign in to MCPBundles, open the SonarCloud skill page, and paste a SonarCloud personal access token from your account security settings. MCPBundles stores the token securely and sends it on each agent request.

Do I need a SonarCloud organization before using this?

Yes. Most project, issue, and gate queries need an organization key from SonarCloud. Agents can call list_organizations first when you are not sure which key to use.

Can agents fix or close SonarCloud issues?

This integration is read-only. Agents can search and explain findings, gate status, and measures, but cannot transition issues, edit quality gates, or change profiles.

Who is this for?

Teams that already run SonarCloud in CI and want release readiness, security review, and quality summaries in the same chat where they debug production — without exporting dashboards or clicking through every project.

Setup Instructions

Connect SonarCloud to any MCP client in minutes

MCP URL
https://mcp.mcpbundles.com/bundle/sonar-cloud

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to SonarCloud and paste the MCP URL into Remote MCP server URL.
  4. Click Add. SonarCloud will appear under Not connected — select it and click Connect to complete OAuth.
Name: SonarCloud
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/sonar-cloud
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Ready to use SonarCloud?

Sign in to connect your credentials and start running tools from the chat.

SonarCloud MCP Server & Skill — 30 Tools