MCP Server for the Codacy API, enabling access to repositories, files, quality, coverage, security and more.
The following tools are available through the Codacy MCP Server:
codacy_list_repositories
: List repositories in an organization with pagination support.
-
codacy_list_repository_issues
: Lists and filters code quality issues in a repository. This is the primary tool for investigating general code quality concerns (e.g. best practices, performance, complexity, style) but NOT security issues. For security-related issues, use the SRM items tool instead. Features include:- Pagination support for handling large result sets
- Filtering by multiple criteria including severity, category, and language
- Author-based filtering for accountability
- Branch-specific analysis
- Pattern-based searching
Common use cases:
- Code quality audits
- Technical debt assessment
- Style guide compliance checks
- Performance issue investigation
- Complexity analysis
codacy_list_files
: List files in a repository with pagination support.codacy_get_file_issues
: Get the issue list for a file in a repository.codacy_get_file_coverage
: Get coverage information for a file in the head commit of a repository branch.
-
codacy_list_srm_items
: Primary tool to list security items/issues/vulnerabilities/findings. Results are related to the organization security and risk management (SRM) dashboard on Codacy. Provides comprehensive security analysis including:- SAST (Code scanning)
- Secrets (Secret scanning)
- SCA (Dependency scanning)
- IaC (Infrastructure-as-code scanning)
- CICD (CI/CD scanning)
- DAST (Dynamic Application Security Testing)
- PenTesting (Penetration testing)
Use this as the first tool when investigating security or compliance concerns.
codacy_list_repository_pull_requests
: List pull requests from a repository that the user has access to. You can search this endpoint for either last-updated (default), impact or merged.codacy_list_pull_request_issues
: Returns a list of issues found in a pull request. We can request either new or fixed issues.codacy_get_repository_pull_request_files_coverage
: Get coverage information for all files in a pull request.codacy_get_pull_request_git_diff
: Returns the human-readable Git diff of a pull request.
For detailed information about the parameters and filtering options available for each tool, please refer to the Available Codacy API Actions section below.
Get your Codacy's Account API Token from your Codacy Account.
Depending on what are you connecting the MCP Server to, you can use the following methods:
- Cursor: edit the
.cursor/mcp.json
file to add the following - Claude Desktop: edit the
claude_desktop_config.json
file to add the following
{
"mcpServers": {
"codacy": {
"command": "npx",
"args": ["-y", "@codacy/codacy-mcp"],
"env": {
"CODACY_ACCOUNT_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
When using NVM with Claude Desktop, NPX won't work. You should first install the MCP Server globally, and thenuse Node directly:
npm install -g @codacy/codacy-mcp
{
"mcpServers": {
"codacy": {
"command": "/Users/yourusername/.nvm/versions/node/vXX.X.X/bin/node",
"args": ["/path-to/codacy-mcp/dist/index.js"],
"env": {
"CODACY_ACCOUNT_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
Local:
npm install
npm run update-api
npm run build
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.