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

# Connect ChatGPT

> Add the hosted MCP server for Semgrep AppSec Platform to ChatGPT by installing the Semgrep plugin from the ChatGPT plugin directory.

Install the Semgrep plugin to connect ChatGPT to the hosted MCP server. The plugin gives ChatGPT the same tools as other MCP clients, without a server URL or API token to manage. For help choosing an authentication method, see [Authentication and access](https://docs.semgrep.dev/mcp/authentication.md).

## Prerequisites

* The [prerequisites for the hosted MCP server](https://docs.semgrep.dev/mcp/overview.md#prerequisites).
* An organization on the default tenant, `semgrep.dev`. For more information, see [Single-tenant deployments](#single-tenant-deployments).
* If you use a ChatGPT Business or Enterprise workspace, your workspace admin might need to allow the plugin before you can install it.

## Install the Semgrep plugin

**Step 1**

Open the [Semgrep plugin](https://chatgpt.com/plugins/plugin_asdk_app_6aee327d76f481918497c9cc2e76986b) in the ChatGPT plugin directory.

**Step 2**

Click **Install plugin**.

**Step 3**

When prompted, sign in to Semgrep in your browser.

**Step 4**

On the **Choose an organization for Semgrep MCP** page, select an organization from **Organization**, and click **Continue**.

The plugin can access only the organization that you choose, and acts with your role's permissions there. To switch organizations later, sign in again.

**Step 5**

To confirm that the plugin is connected, start a new chat and ask a question that starts with `@Semgrep`. For example: `@Semgrep Summarize my organization's riskiest open security issues.`

AI-powered detection scans and Agentic Workflows runs that the plugin starts consume AI credits. For more information, see [AI credits](https://docs.semgrep.dev/usage-and-billing/overview#ai-credits).

The plugin is also available in Codex. For more information, see [Connect Codex](https://docs.semgrep.dev/mcp/connect/codex.md#install-the-semgrep-plugin).

## Single-tenant deployments

The plugin connects only to `https://semgrep.dev/api/mcp`, so it doesn't work with single-tenant deployments. Instead, add your deployment's MCP server URL to a client that you configure yourself. For more information, see [Connect Codex](https://docs.semgrep.dev/mcp/connect/codex.md#connect-with-oauth) or [Connect other MCP clients](https://docs.semgrep.dev/mcp/connect/other-clients.md).
