A side-by-side look at the Sonarqube MCP Server and Context7 MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.
Verdict: choose Sonarqube MCP Server for developer tools work over a hosted endpoint; choose Context7 for developer tools as a local process. You can also run both side by side in one mcpServers block.
SONARQUBE_TOKEN, SONARQUBE_ORG, SONARQUBE_URL, SONARQUBE_PROJECT_KEY.analyze_code_snippet, projectKey, filePath.resolve-library-id, query-docs.Rows where the two servers differ are marked.
| Spec | ||
|---|---|---|
| Category | Developer Tools | Developer Tools |
| Quality signal | 61/100 · Good | 65/100 · Great |
| Install command | Confirmed | Confirmed |
| Transport | Remote HTTP/SSE | Local subprocess (stdio) |
| Auth | API key required | API key required |
| Pricing | Not declared | Free |
| Required env vars | SONARQUBE_TOKENSONARQUBE_ORGSONARQUBE_URLSONARQUBE_PROJECT_KEY | None listed |
| Verified owner | Community listing | Community listing |
| GitHub stars | 665 | 63,209 |
| Directory activity | 2 views 0 installs 0 upvotes | 10 views 0 installs 0 upvotes |
| Tools | 80 | 2 |
| Full listing | View Sonarqube MCP Server | View Context7 |
analyze_code_snippetAnalyze file content with SonarQube analyzers to identify code quality and security issues. Always analyzes the complete file content for accuracy. Optionally filter results to a specific code snippet.projectKeyThe SonarQube project key - _Required String_ _(Ignored when `SONARQUBE_PROJECT_KEY` is defined)_filePathProject-relative path of the file to analyze (e.g., `src/main/java/MyClass.java`). Used when the workspace is mounted at `/app/mcp-workspace` - _String_fileContentComplete file content as a string. Required when workspace is not mounted - _String_codeSnippetCode snippet to filter issues (must match content in fileContent) - _String_languageLanguage of the code (e.g., 'java', 'python', 'js', 'ts', 'tsx', 'jsx') - _String_scopeScope of the file: MAIN or TEST (default: MAIN) - _String_analyze_file_listAnalyze files in the current working directory using SonarQube for IDE. This tool connects to a running SonarQube for IDE instance to perform code quality analysis on a list of files.file_absolute_pathsList of absolute file paths to analyze - _Required String[]_toggle_automatic_analysisEnable or disable SonarQube for IDE automatic analysis. When enabled, SonarQube for IDE will automatically analyze files as they are modified in the working directory. When disabled, automatic analysis is turned off.enabledEnable or disable the automatic analysis - _Required Boolean_run_advanced_code_analysisRun Vortex analysis on a single file. On Cloud, use the optional `organization` argument when no organization is fixed by `SONARQUBE_ORG`; use `list_organizations` if ambiguous. SonarQube Server uses the nil UUID placeholder.resolve-library-idResolves a general library name into a Context7-compatible library ID.query-docsRetrieves documentation for a library using a Context7-compatible library ID.Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.
{
"mcpServers": {
"sonarqube-mcp-server": {
"url": "https://your-server:8443/mcp"
}
}
}
{
"mcpServers": {
"upstash-context7": {
"command": "npx",
"args": [
"-y",
"ctx7"
]
}
}
}