Codacy MCP server

Connect Codacy to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Codacy MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the get repository analysis tool in Codacy
  • Use the search sbom dependencies tool in Codacy
  • Use the configure analysis tool tool in Codacy
  • Use the list repositories tool in Codacy
  • Use the search security items tool in Codacy
  • Use the get pull request analysis tool in Codacy

Supported Tools

get_repository_analysis

Get Repository Analysis

Retrieve detailed code analysis results for a specific repository including quality grade, issues, complexity, duplication, coverage, and analysis progress. Provides a comprehensive quality overview of the repository.

search_sbom_dependencies

Search SBOM Dependencies

Search software bill of materials (SBOM) dependencies across your organization. Find specific dependencies (e.g. "log4j"), filter by vulnerability severity, and identify which repositories use a given dependency.

configure_analysis_tool

Configure Analysis Tool

Enable, disable, or configure a static analysis tool for a repository. Can toggle the tool on/off and set whether it should use a configuration file from the repository. Use the "List Repository Tools" tool first to find tool UUIDs.

list_repositories

List Repositories

List repositories in the configured organization with their analysis information including quality grade, issue counts, coverage, complexity, and duplication metrics. Can filter by name and supports pagination.

search_security_items

Search Security Items

Search and filter security findings (SRM items) across your organization. Includes SAST issues, secrets detection, dependency vulnerabilities, IaC scanning, DAST findings, and more. Filter by priority, status, scan type, repository, and category.

get_pull_request_analysis

Get Pull Request Analysis

Retrieve detailed analysis results for a specific pull request, including quality gate status, new/fixed issues, coverage metrics, and affected files. Optionally includes the list of issues found in the PR.

list_coding_standards

List Coding Standards

List coding standards configured for the organization. Coding standards define which tools and patterns are used for analysis, ensuring consistent code quality across repositories. Shows drafts and effective standards.

list_pull_requests

List Pull Requests

List pull requests for a repository with their analysis status. Returns PR title, status, quality gate results, and issue counts. Useful for monitoring PR quality across a repository.

search_issues

Search Issues

Search and filter code quality issues in a repository. Filter by severity level (Error, Warning, Info), category (Security, CodeStyle, ErrorProne, etc.), language, branch, pattern, and author. Returns issue details including file path, line number, message, tool, and severity.

add_repository

Add Repository

Add a repository to Codacy for code analysis. Requires admin permissions on the repository in the Git provider. Specify the provider and the full repository path (e.g. "organization/repo-name").

manage_repository_token

Manage Repository Tokens

Create, list, or delete repository API tokens. Repository tokens provide scoped access to a single repository and are commonly used for uploading coverage data via the Codacy Coverage Reporter.

get_commit_analysis

Get Commit Analysis

Retrieve analysis results for a specific commit, including quality metrics, issues introduced, and coverage data. Can also list recent commits with their analysis status for a repository.

list_organizations

List Organizations

List all Codacy organizations the authenticated user belongs to. Returns organization names, providers, and membership details. Useful for discovering available organizations before performing repository-level operations.

list_files

List Repository Files

List files in a repository with their code quality metrics including grade, number of issues, complexity, coverage, and duplication. Useful for identifying problematic files in a codebase.

list_people

List Organization Members

List people associated with the configured Codacy organization, including members and contributors. Supports filtering by name/email and pagination. Returns the provider details for each person.

manage_dast_target

Manage DAST Target

Create, list, delete, or trigger scans on DAST (Dynamic Application Security Testing) targets. DAST targets can be web applications or APIs (REST with OpenAPI spec or GraphQL). Use this to manage security scanning of your web applications and APIs.

list_repository_tools

List Repository Tools

List the static analysis tools configured for a repository, including their enabled/disabled status. Shows which analysis tools (e.g. ESLint, PMD, Pylint) are active and whether they use configuration files from the repository.

list_tool_patterns

List Repository Tool Patterns

Discover configured code patterns for a repository analysis tool, including pattern IDs, definitions, enabled state, parameters, and coding standards. Call list_repository_tools to discover tool UUIDs.

get_security_item

Get Security Item

Retrieve a security finding with its full remediation, advisory, dependency, ownership, and ignored-state details. Call search_security_items to discover item IDs.

set_security_item_ignored

Set Security Item Ignored State

Ignore or restore a security finding. Returns the updated finding from Codacy. Call search_security_items to discover item IDs.

get_quality_settings

Get Repository Quality Settings

Read a repository’s quality thresholds for issue percentage, duplication, complexity, and coverage. Call list_repositories to discover repository names.

get_current_user

Get Current User

Get the Codacy account authenticated by the API token, including its ID, email, name, and active status.

list_branches

List Repository Branches

Discover repository branches and their enabled/default state. Use an enabled branch name with file, commit, issue, or repository analysis tools.

Connect Codacy to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Codacy in Metorial. In your Metorial portal, enable the Codacy MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Codacy tools.

Run Codacy through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Codacy and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Codacy tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Codacy

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Sentry

Track, manage, and resolve application errors and performance issues. List, query, and bulk-update issues and error events with filters like status, assignment, and tags. Create and manage releases, associate commits, and upload source maps. Configure issue alert rules and metric alert rules with notification actions. Set up cron monitors to detect missed or failed scheduled jobs. Build custom dashboards with configurable widgets. Run ad-hoc Discover queries across errors and transactions for performance analysis. Manage organizations, teams, projects, and members. Provision users via SCIM. Access session replay data.

Bitbucket

Manage Git repositories, pull requests, and CI/CD pipelines on Bitbucket Cloud. Create, fork, and configure repositories within workspaces and projects. Create, review, approve, merge, and decline pull requests with inline code comments. Browse source code, list commits, and manage branches and tags. Trigger, monitor, and manage Bitbucket Pipelines. List workspace members, configure repository default reviewers and branch restrictions, create and manage repository webhooks, and search code across repositories.

Technical notes for Codacy

Review repository, commit, pull request, and file analysis. Search code quality issues, security findings, and SBOM dependencies. Inspect coverage, quality thresholds, analysis tools, and code patterns. Discover organizations, members, coding standards, and branches. Manage security finding ignore states, DAST targets and scans, and repository API tokens.

Frequently asked questions

Common questions about connecting Codacy to AI agents with Metorial.

  1. How many tools does the Codacy MCP server have?
    The Codacy MCP server exposes 23 tools, including Get Repository Analysis, Search SBOM Dependencies, Configure Analysis Tool. Each one is governed and traced through Metorial.
  2. Codacy exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Codacy MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Codacy and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Codacy MCP server yourself or use the hosted gateway.

Connect Codacy to production AI agents

See how Metorial gives your team governed access to Codacy, with tracing and security controls built in.