# Codacy — how to use (mcp.ai)

Connect your Codacy account and use 18 tools for developer tools straight from your AI agent. Connect with your own API key. Codacy is an automated code review tool that helps developers monitor code quality, track technical debt, and enforce coding standards across multiple programming languages.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_codacy?ms=1787293680000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `codacy_create_api_token`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/codacy`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/codacy/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/codacy/create/api/token` — Creates a new account API token for the authenticated user. The token inherits all permissions from the account owner and provides access to the same organizations and repositories. Note: The token is
- `POST https://api.mcp.ai/api/codacy/delete/api/token` — Tool to delete a specific API token from the authenticated user's account. Use after confirming the token ID.
  - body: { tokenId: string }
- `POST https://api.mcp.ai/api/codacy/get/account/details` — Tool to retrieve details of the authenticated user's account. Use when confirming authentication before user-level operations.
- `POST https://api.mcp.ai/api/codacy/get/configuration/status` — Tool to retrieve the current configuration status of the Codacy system. Use when checking system setup completion or first-time configuration status.
- `POST https://api.mcp.ai/api/codacy/get/health` — Tool to check the health status of the Codacy API. Use when verifying API connectivity and service availability.
- `POST https://api.mcp.ai/api/codacy/get/organizations/repositories/settings/languages` — Tool to get the list of all languages with their extensions and enabled status for a repository. Use when you need to understand which programming languages are detected and enabled for analysis in a 
  - body: { provider: string, repositoryName: string, remoteOrganizationName: string }
- `POST https://api.mcp.ai/api/codacy/get/tool/pattern` — Tool to retrieve the definition of a specific pattern for a given tool. Use when you need to get detailed information about a specific code pattern including its description, examples, parameters, and
  - body: { toolUuid: string, patternId: string }
- `POST https://api.mcp.ai/api/codacy/get/user/organizations` — Retrieves all organizations the authenticated user belongs to for a specific Git provider. Returns organization details including name, provider, avatar, access permissions (DAST, SCA), and join statu
  - body: { provider: string }
- `POST https://api.mcp.ai/api/codacy/get/version` — Tool to retrieve the version of the Codacy installation. Use when checking the Codacy API version for compatibility or debugging purposes.
- `POST https://api.mcp.ai/api/codacy/list/analysis/organizations/repositories` — Tool to list organization repositories with analysis information for the authenticated user. Use when you need to retrieve repositories from a specific organization with their analysis status. For Bit
  - body: { limit?: integer, cursor?: string, search?: string, provider: string, remoteOrganizationName: string }
- `POST https://api.mcp.ai/api/codacy/list/duplication/tools` — Tool to retrieve the list of duplication detection tools available in Codacy. Use when you need to identify which tools can analyze code duplication for different programming languages.
- `POST https://api.mcp.ai/api/codacy/list/languages/tools` — Tool to retrieve the list of languages supported by available tools. Use when you need to determine which programming languages are supported by Codacy's analysis tools.
- `POST https://api.mcp.ai/api/codacy/list/login/integrations` — Tool to list configured login providers on Codacy's platform. Use when you need to discover available authentication methods for Codacy login.
  - body: { limit?: integer, cursor?: string }
- `POST https://api.mcp.ai/api/codacy/list/metrics/tools` — Tool to retrieve the list of metrics tools available in Codacy. Use when you need to discover which tools calculate metrics on projects and which languages they support.
- `POST https://api.mcp.ai/api/codacy/list/projects` — Tool to list all projects accessible to the authenticated user. Use when you need a list of repositories after confirming API token validity.
  - body: { page?: integer, search?: string, perPage?: integer, organizationName?: string, organizationProvider?: string }
- `POST https://api.mcp.ai/api/codacy/list/provider/integrations` — Tool to list provider integrations existing on Codacy's platform. Use when you need to discover available Git providers that can be integrated with Codacy for authentication and repository management.
  - body: { limit?: integer, cursor?: string }
- `POST https://api.mcp.ai/api/codacy/list/tools` — Tool to retrieve the list of analysis tools available in Codacy. Use when you need to identify which code analysis tools are available and which programming languages they support.
- `POST https://api.mcp.ai/api/codacy/list/tools/patterns` — Tool to retrieve the list of patterns for a specific tool. Returns code patterns that the tool can use to find issues, with pagination support.
  - body: { limit?: integer, cursor?: string, enabled?: boolean, toolUuid: string }

## Example prompts
- "What can I do in Codacy?"
- "Show me a summary of my Codacy account"

## More
- Page: https://mcp.ai/codacy
- Agent spec (llms.txt): https://mcp.ai/codacy/llms.txt
- Postman collection: https://mcp.ai/codacy/postman.json
