> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Qodo Agentic Toolbox with MCP

> Connect an MCP-compatible client to Qodo Agentic Toolbox to access Qodo tools, run local code reviews, and review code changes before creating a pull request.

Use MCP when you want to connect Qodo tools to a remote or custom agent, workflow, or application. For local development, [Install Qodo Agentic Toolbox with the CLI](https://docs.qodo.ai/agentic-toolbox/cli.md).

With MCP, your agent can use Qodo's code understanding and review capabilities as part of its workflow. For example, you can:

* Understand your codebase, including dependencies, relationships, and recent changes.
* Retrieve the rules and standards that apply to a task.
* Review changes before opening a pull request.
* Retrieve and resolve review findings.
* Access and manage Review Standards.

You connect your MCP-compatible client to Qodo's MCP server using an API key to make Qodo tools available to your agent. You don't need to install the Qodo Agentic Toolbox to use Qodo tools through MCP.

For more information about choosing between MCP and the CLI, see the [Agentic Toolbox overview](https://docs.qodo.ai/agentic-toolbox/agentic-toolbox-overview.md).

## Prerequisites

Before you connect, make sure you have:

* An MCP-compatible client that supports Streamable HTTP and custom request headers.
* Access to the repositories you want to work with in Qodo.
* Access to your MCP client's configuration or secure secret management.

## Connect your MCP client

**1. Create an API key**

Create a personal API key in the Qodo portal.

Follow [Manage API keys in the Qodo portal](https://docs.qodo.ai/account-management/manage-api-keys.md) for instructions.

**2. Add the Qodo MCP server**

When configuring the Qodo MCP server, use the URL that matches your deployment type:

* **SaaS**: `https://sdk.qodo.ai/v1/tools/mcp/`
* **Single-tenant (ST) and on-premises**: Get the MCP server URL from the Qodo portal.

> [!NOTE]
>
> The URL must include the trailing slash (`/`). Without it, the server returns a 307 redirect. Most MCP clients do not follow this redirect, which causes the connection to fail.

If your client accepts an `mcpServers` JSON object and supports custom request headers, use the following configuration:

```json theme={null}
{
  "mcpServers": {
    "qodo-managed-tools": {
      "type": "http",
      "url": "<QODO_MCP_SERVER_URL>",
      "headers": {
        "Authorization": "Bearer ${QODO_API_KEY}"
      }
    }
  }
}
```

If your client uses a different configuration format, use these values:

| Field | Value |
| - | - |
| Name | `qodo-managed-tools` |
| URL | Your Qodo MCP server URL |
| Transport | Streamable HTTP |
| Header | `Authorization: Bearer <QODO_API_KEY>` |

**3. Reload your MCP client**

Restart or reload your MCP client after adding the server configuration.

Once connected, verify that Qodo tools appear in your client's available tools.

The tools available to you depend on your Qodo workspace access and permissions.

## Authentication

MCP authenticates requests to Qodo using the API key you created in the Qodo portal.

The key is sent in the Authorization header:

```
Authorization: Bearer <QODO_API_KEY>
```

> [!WARNING]
>
> Keep your API key secure. Do not commit it to source control or include it directly in configuration files that are shared with others.
>
> If your MCP client supports secure credentials or secret management, use it to store your API key.

## Use Qodo tools

After the connection is established, your agent can discover and call the Qodo tools available to your workspace. MCP tool names differ from CLI command names. For more information, see [Qodo tools reference](https://docs.qodo.ai/agentic-toolbox/qodo-tools-reference.md).

Your agent decides when and how to use the available tools based on the task and the instructions you provide.

## Troubleshooting

> [accordion] Qodo tools do not appear
>
> If the tools do not appear after you configure the server:
>
> * Confirm that your API key is valid and available to the MCP client.
> * Confirm that the Authorization header is configured correctly.
> * Verify that your client supports Streamable HTTP and custom request headers.
> * Reload or restart the MCP client.
> * Confirm that you have access to the required repositories in Qodo.

> [accordion] Your API key is no longer valid
>
> API keys can have an expiration period. If your key has expired or been revoked, create a new API key in the Qodo portal and update your MCP configuration.
>
> See [Manage API keys in the Qodo portal](https://docs.qodo.ai/account-management/manage-api-keys.md).

## Next steps

* [Run local reviews over MCP](https://docs.qodo.ai/agentic-toolbox/run-local-code-reviews-with-mcp.md): Review local changes from your MCP client before you open a pull request.
* [Agentic Toolbox overview](https://docs.qodo.ai/agentic-toolbox/agentic-toolbox-overview.md): Learn more about the Agentic Toolbox and when to use MCP or the CLI.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.