Codacy MCP Server logo

Codacy MCP Server

by Codacy

The Codacy MCP Server enables access to the Codacy API, providing tools for repository management, code quality analysis, security analysis, and more. It facilitates integration with IDEs and other platforms for comprehensive code analysis.

View on GitHub

Last updated: N/A

What is Codacy MCP Server?

The Codacy MCP Server is a tool that provides access to the Codacy API, enabling various code analysis functionalities. It allows users to manage repositories, analyze code quality, identify security vulnerabilities, and assess code coverage, all through a unified interface.

How to use Codacy MCP Server?

The Codacy MCP Server can be installed and used through the Codacy extension in supported IDEs like VS Code, Cursor, and Windsurf. Alternatively, it can be configured manually by editing configuration files (e.g., .cursor/mcp.json, .codeium/windsurf/mcp_config.json, claude_desktop_config.json, or VS Code's settings.json) and providing a Codacy Account API Token. The server is invoked via command-line tools or IDE integrations.

Key features of Codacy MCP Server

  • Repository Management (listing repositories)

  • Code Quality Analysis (listing and filtering code quality issues)

  • File Management (listing files, getting file issues, getting file coverage, getting file clones)

  • Security Analysis (listing security items/issues/vulnerabilities/findings)

  • Pull Request Analysis (listing pull requests, listing pull request issues, getting pull request file coverage, getting pull request git diff)

Use cases of Codacy MCP Server

  • Code quality audits

  • Technical debt assessment

  • Style guide compliance checks

  • Performance issue investigation

  • Complexity analysis

  • Security vulnerability detection

  • Compliance monitoring

  • Code duplication identification

FAQ from Codacy MCP Server

How do I get a Codacy Account API Token?

You can obtain your Codacy Account API Token from your Codacy Account settings under Access Management.

How do I install the Codacy MCP Server in VS Code?

The easiest way is to install the Codacy extension from the VS Code marketplace and then click on 'Add Codacy MCP Server' from the extension panel.

Where can I find the VS Code global settings.json file?

The location varies depending on your OS: macOS: ~/Library/Application Support/Code/User/settings.json, Windows: %APPDATA%\Code\User\settings.json, Linux: ~/.config/Code/User/settings.json

What if NPX doesn't work with Claude Desktop?

If you're using NVM, try installing the MCP Server globally using npm install -g @codacy/codacy-mcp and then use Node directly in the configuration.

What types of security analysis does the MCP Server support?

The MCP Server supports SAST (Code scanning), Secrets (Secret scanning), SCA (Dependency scanning), IaC (Infrastructure-as-code scanning), CICD (CI/CD scanning), DAST (Dynamic Application Security Testing), and PenTesting (Penetration testing).