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

# Custom connectors

> Add custom MCP servers and custom API connectors to your Workspace so Replit can use services that aren't in the integration library.

Custom connectors let you connect services that aren't in Replit's [integration library](https://docs.replit.com/features/integrations/overview.md). Use them to connect any HTTPS API or internal tool.

> [!NOTE]
>
> Custom connectors are in beta and available on Pro and Enterprise plans. Workspace admins can create and manage them. Access controls for custom connectors are available on Enterprise only.

There are two kinds of custom connector:

| Type | Connects to | Use it when |
| - | - | - |
| **Custom MCP server** | A server that exposes tools through the [Model Context Protocol](https://docs.replit.com/learn/model-context-protocol.md) | The service already provides an MCP server, or you want Agent to call its tools in chats. |
| **Custom API connector** | A service's HTTPS REST API | The service has an API but no MCP server, or you want apps and automations to call it. |

Both kinds are added from **Settings → [Integrations](https://replit.com/settings/integrations) → Manage integrations → Add custom**.

![Add custom menu open on the Manage integrations tab, showing Add workspace MCP server](https://mintcdn.com/replit/A07sz9n2oA_WOaPY/images/connectors/workspace-connectors/add-custom-menu.png?fit=max\&auto=format\&n=A07sz9n2oA_WOaPY\&q=85\&s=559ae0d8cf900599ebfc93380c471f16)

> [!WARNING]
>
> Only connect to servers and APIs you trust with your data. A connected service can provide tools and data to Agent. Keep credentials out of descriptions and Agent instructions; enter them only in authentication fields.

## Add a custom MCP server

**1. Open the setup panel**

Go to **Manage integrations**, select **Add custom**, then **Add workspace MCP server**.

**2. Choose the account type**

Under **Account type**, choose **Personal** if members connect their own accounts, or **Shared** if members use one shared account. See [Connector access type](https://docs.replit.com/teams/connectors/manage-workspace-connectors.md#connector-access-type).

![Set up MCP server panel, step 1 of 3, with MCP selected as the protocol and Personal and Shared account type options](https://mintcdn.com/replit/A07sz9n2oA_WOaPY/images/connectors/workspace-connectors/mcp-server-account-type.png?fit=max\&auto=format\&n=A07sz9n2oA_WOaPY\&q=85\&s=f73fe1adbb7670e81b9846ed06de1f31)

**3. Choose who has access**

Choose which people and groups can use or manage the server. These options work the same way as for other connectors. See [Connector access controls](https://docs.replit.com/teams/connectors/manage-workspace-connectors.md#connector-access-controls).

**4. Configure the server**

Complete the **Configuration** step:

* **Authentication:** Choose how the server authenticates, such as **API key** or OAuth with your own app.
* **Configuration name:** A name to identify this configuration.
* **Display Name:** The name Agent and members see.
* **Description:** A short description Agent sees for this server.
* **Base URL:** The server's HTTPS endpoint, such as `https://mcp.example.com`.
* **Output Scan Enabled:** Has Replit check the server's responses for prompt injection before Agent uses them. Keep it on for servers that return content from untrusted sources, such as email or web pages.
* **Connector scopes** and **Agent instructions (optional):** Limit what the connection can reach and tell Agent how to use it.

![Set up MCP server panel, step 3 of 3, with Authentication, Configuration name, Display Name, Description, Base URL, and Output Scan Enabled fields](https://mintcdn.com/replit/A07sz9n2oA_WOaPY/images/connectors/workspace-connectors/mcp-server-configuration.png?fit=max\&auto=format\&n=A07sz9n2oA_WOaPY\&q=85\&s=8a0668bd90a09020389b75c232bd8870)

**5. Finish**

Select **Finish**. Replit connects to the server and walks you through any OAuth flow it requires.

For more about using MCP servers with Agent, see [Connect via MCP](https://docs.replit.com/build/connect-via-mcp.md).

## Add a custom API connector

### Before you begin

Have the following ready:

* A publicly accessible HTTPS REST API and its base URL.
* Credentials for the API and access to its documentation.
* Optionally, a read-only endpoint you can use to test the connection.

### Create the connector

**1. Open the custom connector form**

Select **Add custom**, then **Add custom connector**.

![Integrations page with the Add custom menu open and Add custom connector listed below the MCP server options](https://mintcdn.com/replit/UBZvDR_D82VVmneQ/images/connectors/custom-connectors/add-custom-connector.png?fit=max\&auto=format\&n=UBZvDR_D82VVmneQ\&q=85\&s=fe6d895207b33622e9e5be3310900fd0)

**2. Describe the API**

Complete the following fields:

| Field | What to enter | Example |
| - | - | - |
| **Name** | A recognizable name for the service. | `Acme API` |
| **Description** | A short description of what the API does. | `Create and track customer orders` |
| **Base URL** | The API's root URL, including any required version prefix. | `https://api.example.com` |
| **Agent instructions** | Guidance on using the API, such as a documentation URL and endpoint conventions. Don't include credentials. | `Read https://api.example.com/docs. Use GET /orders to list orders.` |

Replace the example values with those for your service. Agent instructions have a 500-character limit.

![Create a custom API connector form showing its name, description, base URL, Agent instructions, bearer authentication, and optional endpoint test](https://mintcdn.com/replit/UBZvDR_D82VVmneQ/images/connectors/custom-connectors/create-custom-connector.png?fit=max\&auto=format\&n=UBZvDR_D82VVmneQ\&q=85\&s=97a0463c8c54c3837f2884fbc37ccd01)

**3. Configure authentication**

Select the authentication method that matches your API: **API key**, **Bearer token**, or **No authentication**. Complete the fields shown.

For a bearer token, enter the token without the `Bearer` prefix. Replit adds the prefix when it sends a request.

**4. Test an endpoint**

Optionally, enter a path such as `/health` under **Endpoint test** and select **Check**.

The check sends one GET request before you save, and its result isn't saved. Choose an endpoint that doesn't change data. A successful check verifies that request, not every endpoint or permission you might need.

**5. Set access and save**

Choose which people and groups can use the connector, then select **Save**. See [Connector access controls](https://docs.replit.com/teams/connectors/manage-workspace-connectors.md#connector-access-controls).

### Troubleshoot an endpoint test

If the test fails, check the following against your API's documentation:

* **URL and path:** Confirm that the base URL and test path form the intended endpoint.
* **Authentication:** Confirm that the credential is valid and can access the endpoint. For bearer authentication, omit the `Bearer` prefix.
* **Request method:** Choose an endpoint that accepts GET requests.
* **Reachability:** Confirm that the API is publicly accessible over HTTPS.

## Change or remove a custom connector

Open the connector from **Manage integrations** and select **Manage**.

* **API connectors:** Stored values such as the base URL and credentials are hidden. Leave replacement fields blank to keep current values. If you replace the base URL or API key header, enter a new API key too.
* **MCP servers:** Changing the server URL or headers disconnects the server. Members need to log in again after you save.

Removing a workspace MCP server or custom connector deletes every member's connection to it.

## Related documentation

* [Manage Workspace connectors](https://docs.replit.com/teams/connectors/manage-workspace-connectors.md): Configure access and settings for connectors
* [Connect via MCP](https://docs.replit.com/build/connect-via-mcp.md): Use MCP servers with Agent
* [Integrations overview](https://docs.replit.com/features/integrations/overview.md): Explore supported integrations
