Codacy MCP Server
by codacy
Codacy's MCP Server implementation
What is Codacy MCP Server
Codacy MCP Server
MCP Server for the Codacy API, enabling access to repositories, files, quality, coverage, security and more.
Features
Tools
The following tools are available through the Codacy MCP Server:
Repository Management
codacy_list_repositories
: List repositories in an organization with pagination support.
Code Quality and Analysis
-
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
File Management
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.
Security Analysis
-
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.
Pull Request Analysis
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.
CLI Analysis
codacy_cli_analyze
: Uses Codacy's command-line tool to analyze code.
Setup
Personal API Access Token
Get your Codacy's Account API Token from your Codacy Account.
Usage
In supported IDEs like VS Code, Cursor, and Windsurf, the easiest way to install Codacy's MCP Server is to do it from the Codacy extension. If you haven't yet, install the extension from within your IDE, or from any of the available marketplaces (Microsoft, OpenVSX). From the extension panel, just click on Add Codacy MCP Server. Restart your IDE afterwards.
Without the extension, you can still use and install the MCP Server:
Cursor, Windsurf, and others
Depending on what you are connecting the MCP Server to, you can use the following methods:
- Cursor: edit the
.cursor/mcp.json
file to add the following - Windsurf: edit the
.codeium/windsurf/mcp_config.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>"
}
}
}
}
VS Code with Copilot
For connecting the MCP Server to Copilot in VS Code, add the following to the global config of the IDE:
{
"mcp": {
"inputs": [],
"servers": {
"codacy": {
"command": "npx",
"args": [
"-y",
"@codacy/codacy-mcp"
],
"env": {
"CODACY_ACCOUNT_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
}
You can find the global settings.json file in the following places, according to your OS:
- for macOS:
~/Library/Application Support/Code/User/settings.json
- for Windows:
%APPDATA%\Code\User\settings.json
- for Linux:
~/.config/Code/User/settings.json
Make sure you have Agent mode enabled: vscode://settings/chat.agent.enabled
Node Troubleshooting
When using NVM with Claude Desktop, NPX may not work. You should first install the MCP Server globally, and then use 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>"
}
}
}
}
Build
Local:
npm install
npm run update-api
npm run build
Codacy-CLI Support (WIP)
In order to use the Codacy-CLI, it needs to be installed.
License
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.
Leave a Comment
Comments section will be available soon. Stay tuned!
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
21st.dev Magic AI Agent
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
Requirements:
A Model Context Protocol Server for connecting with Adfin APIs
AgentQL MCP Server
Model Context Protocol server that integrates AgentQL's data extraction capabilities.
AgentRPC
A universal RPC layer for AI agents. Connect to any function, any language, any framework, in minutes.
Aiven MCP Server
Model Context Protocol server for Aiven
IoTDB MCP Server
Apache IoTDB MCP Server
Apify Model Context Protocol (MCP) Server
Model Context Protocol (MCP) Server for Apify's Actors
APIMatic Validator MCP Server
APIMatic Validator MCP Server for validating OpenAPI specs via APIMatic's API with MCP
๐ Audiense Insights MCP Server
Audiense Insights MCP Server is a server based on the Model Context Protocol (MCP) that allows Claude and other MCP-compatible clients to interact with your Audiense Insights account
Bankless Onchain MCP Server
Bringing the bankless onchain API to MCP
Submit Your MCP Server
Share your MCP server with the community
Submit Now