> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/en/work/maigpt/connectors/connectors-admin.md). Agents can also search and read this documentation through its [MCP server](https://docs.maiagent.ai/~gitbook/mcp).

# Manage Connectors (Administrators)

Organization admins can use the MaiGPT Connectors page to enable connectors, configure Service Account authentication and the contextData allowlist, view and revoke member authorizations, handle enabl

Before members can authorize and use connectors such as Notion and Google Drive in MaiGPT, their organization must **enable** those connectors (see [Connectors](https://docs.maiagent.ai/maiagent-user-guide/en/work/maigpt/connectors.md) for member instructions). Organization admins use the <mark style="color:blue;">MaiGPT Connectors</mark> page to choose which connectors to make available, handle member requests, and connect the company's own MCP servers.

## Who Can Use This <a href="#who-can-use" id="who-can-use"></a>

* Your role needs the <mark style="color:blue;">MaiGPT Connector Management permission</mark> to see <mark style="color:blue;">MaiGPT Connectors</mark> in the Admin sidebar (classic interface: left menu). Organization owners have this permission by default.
* Members only need the <mark style="color:blue;">MaiGPT permission</mark> to **use** connectors.
* Only the **organization owner** can revoke a member's authorization.

For permission setup, see [Role Permission Management](https://docs.maiagent.ai/maiagent-user-guide/en/org/roles/role-permission.md).

## How to Access <a href="#how-to-access" id="how-to-access"></a>

Switch to <mark style="color:blue;">Admin</mark> in the upper left, then click <mark style="color:blue;">MaiGPT Connectors</mark> in the sidebar (classic interface: select <mark style="color:blue;">MaiGPT Connectors</mark> from the left menu). The list shows all built-in and organization-defined connectors:

| Column                                               | Description                                                                                                                                                                  |
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">Connector Name</mark>      | When members submit requests, an “N members requested” tag appears next to the name. Hover over it to see their email addresses.                                             |
| <mark style="color:blue;">Source</mark>              | <mark style="color:blue;">Built-in</mark> (provided by the platform) or <mark style="color:blue;">Organization-defined</mark> (a private MCP server your organization added) |
| <mark style="color:blue;">Authentication Type</mark> | OAuth 2.0 (each member authorizes individually), Service Account (the organization shares one set of credentials), or No Auth (no authentication)                            |
| <mark style="color:blue;">Tool Category</mark>       | The category shown on tool cards in conversations. You can set it after enabling the connector, and your selection saves immediately.                                        |
| <mark style="color:blue;">Enabled</mark>             | Whether the connector is available to the organization                                                                                                                       |
| <mark style="color:blue;">Authorized Members</mark>  | Number of members who have authorized the connector. Click the edit icon next to the count to see the list.                                                                  |
| <mark style="color:blue;">Actions</mark>             | Configure authentication for Service Account connectors, or edit and delete organization-defined connectors.                                                                 |

### Access from the Tools Page <a href="#access-from-tools-page" id="access-from-tools-page"></a>

To manage organization-defined connectors, you can also go to <mark style="color:blue;">Build</mark> → <mark style="color:blue;">Agent Builder</mark> → <mark style="color:blue;">Tools</mark> (classic interface: <mark style="color:blue;">AI Features</mark> → <mark style="color:blue;">Tools</mark>) and select <mark style="color:blue;">Manage Connectors</mark> in the second column. The page header says, “Manage your organization's custom MCP connectors. Connectors sync to MaiGPT Connectors, where you can choose whether to enable them.” The list includes only organization-defined connectors, with columns for <mark style="color:blue;">Connector</mark>, <mark style="color:blue;">MCP Server URL</mark>, <mark style="color:blue;">Authentication Method</mark>, <mark style="color:blue;">Tool Category</mark>, <mark style="color:blue;">Created At</mark>, and <mark style="color:blue;">Actions</mark> (edit and delete). <mark style="color:blue;">Add Connector</mark> and <mark style="color:blue;">Refresh</mark> are in the upper right. Both pages edit the same connector records. Use MaiGPT Connectors to enable or disable connectors and manage member authorizations.

## Enable a Connector for the Organization <a href="#enable-connector" id="enable-connector"></a>

Turn on the <mark style="color:blue;">Enabled</mark> switch in the connector's row. The message <mark style="color:blue;">Connector enabled successfully</mark> confirms the change. What members see next depends on the authentication type:

| Authentication Type         | When You Enable It                                                                                                                                                       | What Members Do                                                                                                                                                                                                          |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| OAuth 2.0                   | Enables immediately                                                                                                                                                      | Each member clicks <mark style="color:blue;">Authorize</mark> and signs in to the service with their own account.                                                                                                        |
| Service Account             | The <mark style="color:blue;">Service Account Authentication</mark> dialog opens. Enter the authentication headers to create the connector. Canceling resets the switch. | Members share the credentials entered by the admin and can use the connector without authorizing it themselves. If the authentication headers are blank, they see <mark style="color:blue;">Admin setup required</mark>. |
| No Auth (no authentication) | Enables immediately                                                                                                                                                      | Members can use the connector without authorizing it.                                                                                                                                                                    |

After you turn off the switch and see <mark style="color:blue;">Connector disabled successfully</mark>, members lose access to the connector in conversations. Existing authorizations stay on record and work again when you re-enable it.

### Grant Access by Role <a href="#role-access" id="role-access"></a>

After you enable a **built-in** connector, access still depends on the role's MaiGPT usage permissions. Members see the authorization button if their role has “All” or that specific connector selected in the <mark style="color:blue;">Connectors</mark> card. Otherwise, they see <mark style="color:blue;">Unavailable to your role</mark>. **Organization-defined** connectors are exempt from role restrictions. For setup instructions, see [MaiGPT Role Usage Permissions](https://docs.maiagent.ai/maiagent-user-guide/en/org/roles/maigpt-role-permissions.md#set-available-scope).

## Handle Member Requests <a href="#enablement-requests" id="enablement-requests"></a>

Members can submit a request when they see an unavailable connector in <mark style="color:blue;">Manage My Connectors</mark>. The system emails the organization owner and everyone with the MaiGPT Connector Management permission. A banner at the top of the page says, “N connectors have pending enablement requests from members.”

| Status Members See                                        | Button Members Click                                       | What You Do                                                                                                                                                   |
| --------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">Disabled by organization</mark> | <mark style="color:blue;">Request Enablement</mark>        | Turn on the connector's <mark style="color:blue;">Enabled</mark> switch on this page.                                                                         |
| <mark style="color:blue;">Unavailable to your role</mark> | <mark style="color:blue;">Request Access from Admin</mark> | The connector is already enabled. Select it in the MaiGPT usage permissions for the requester's role, or assign the requester a role that already has access. |

The request clears automatically, and the requester receives a notification in the [Notification Center](https://docs.maiagent.ai/maiagent-user-guide/en/start/notifications.md) that says <mark style="color:blue;">Connector enabled</mark>. If you decide to decline a request, contact the requester directly. This page has no control for declining individual requests.

## View and Revoke Member Authorizations <a href="#authorized-members" id="authorized-members"></a>

Click the edit icon in the <mark style="color:blue;">Authorized Members</mark> column to open the list. It shows each member's <mark style="color:blue;">Authorized At</mark> time, <mark style="color:blue;">Token Expiration</mark> time, and status (<mark style="color:blue;">Valid</mark>, <mark style="color:blue;">Expired</mark>, or <mark style="color:blue;">Never expires</mark>).

When a member leaves the company or should lose access, the organization owner can click <mark style="color:blue;">Revoke Authorization</mark>. The member will need to authorize the connector again to use it. Revocation applies only to OAuth 2.0 connectors. If a connector has never been enabled, it has no member list and displays “This connector has not been created yet. Enable it first.”

## Configure Service Account Authentication <a href="#service-account-auth" id="service-account-auth"></a>

After you enable a Service Account connector, a settings icon (<mark style="color:blue;">Connector Authentication Settings</mark>) appears in the <mark style="color:blue;">Actions</mark> column.

* <mark style="color:blue;">Authentication Headers</mark> take a JSON object, for example `{"Authorization": "Bearer your-token"}`. The interface masks existing header values. Leave the field blank to keep the current headers, or enter a new object to **replace the entire set**.
* Header values can include <mark style="color:blue;">Available Context Variables</mark>, which the system fills in for each conversation: `{{contact_id}}` (contact ID), `{{source_id}}` (source ID), `{{contact_name}}` (contact name), `{{conversation_id}}` (conversation ID), `{{inbox_id}}` (inbox ID), and `{{organization_id}}` (organization ID).

### contextData Allowlist <a href="#context-data-allowlist" id="context-data-allowlist"></a>

If you embed an agent on your website, the site can pass data such as a membership number via contextData and use it in authentication headers:

1. In your site's chat widget embed settings, add the data to contextData (see [Inject Page Context](https://docs.maiagent.ai/tech/serve/web-chat-sdk/web-chat-context-data) in the technical guide).
2. In <mark style="color:blue;">Allowed contextData Keys</mark>, enter the names as a JSON string array, for example `["patientToken"]`. You can enter up to 20 names. Each name must be 1 to 64 characters long and contain only English letters, digits, and underscores.
3. Set the authentication header value to `{{context_data.patientToken}}`.

The name must match exactly, including case, in all three places. The system retrieves values only for names on the allowlist and omits the header if the value is missing for that conversation. Only top-level names are supported, so you can't use nested names such as `a.b`.

## Add a Private MCP Server <a href="#add-private-mcp" id="add-private-mcp"></a>

If your company's own MCP server or a third-party server is missing from the list, add it as a private connector visible only to your organization. Servers added from this page use **OAuth 2.0** authentication.

1. Click <mark style="color:blue;">Add Connector</mark> in the upper right.
2. Enter the <mark style="color:blue;">Name</mark> (English letters, digits, underscores, and hyphens) and <mark style="color:blue;">Server URL</mark> (must start with `https://`). The <mark style="color:blue;">Display Name</mark>, <mark style="color:blue;">Description</mark>, <mark style="color:blue;">Tool Category</mark>, and <mark style="color:blue;">Logo</mark> (PNG, JPG, GIF, WebP, or SVG, up to 2 MB) are optional.
3. If the system can't detect the authorization server automatically, fill in <mark style="color:blue;">OAuth Server URL</mark>, <mark style="color:blue;">Resource Identifier</mark>, <mark style="color:blue;">OAuth Client ID</mark>, and <mark style="color:blue;">OAuth Client Secret</mark>. See [MCP Tool Setup](https://docs.maiagent.ai/maiagent-user-guide/en/build/tools/mcp-setup.md#oauth-custom-connector) for details on each field.
4. Click <mark style="color:blue;">Confirm</mark>. The system tests the server connection first. If the test fails, it displays the reason or <mark style="color:blue;">Connection test failed</mark> and stops before creating the connector. If it succeeds, you see <mark style="color:blue;">Server added successfully</mark>, the connector is enabled automatically, and its source is labeled <mark style="color:blue;">Organization-defined</mark>.

The same organization-defined connectors also appear under <mark style="color:blue;">Manage Connectors</mark> on the <mark style="color:blue;">Tools</mark> page. Both pages edit the same records.

### Edit and Delete <a href="#edit-delete-private" id="edit-delete-private"></a>

* **Edit** affects all tools that use the same MCP server URL. Take care when changing the <mark style="color:blue;">Server URL</mark>, as these tools will no longer match the URL and will lose authorization.
* **Delete** also removes member and contact authorizations for this connector. If any tools use it, the confirmation dialog lists the affected tools and the number of authorizations that will be revoked. Click <mark style="color:blue;">Delete All</mark> to delete the tools along with the connector.

## Frequently Asked Questions <a href="#faq" id="faq"></a>

### Why can't members see the authorization button after I enable the connector? <a href="#faq-member-cannot-authorize" id="faq-member-cannot-authorize"></a>

Ask the member to check their status in <mark style="color:blue;">Manage My Connectors</mark>. If it says <mark style="color:blue;">Unavailable to your role</mark>, grant access to the connector in that member's role's MaiGPT usage permissions. See [Grant Access by Role](#role-access).

### Why do members see “Admin setup required”? <a href="#faq-admin-setup-required" id="faq-admin-setup-required"></a>

The Service Account connector still needs authentication headers. Click the settings icon in its row, fill in <mark style="color:blue;">Authentication Headers</mark>, and save. Members can then use the connector.

### Why do I get an error when revoking authorization? <a href="#faq-revoke-error" id="faq-revoke-error"></a>

“Only the organization owner can revoke member authorizations” means you are not the organization owner. “Authorization can only be revoked for OAuth connectors” means the connector uses an authentication type without individual member authorization.

### Why is the request banner still visible? <a href="#faq-request-banner" id="faq-request-banner"></a>

If the connector is already enabled, the requester's role lacks access. To clear the request, grant access to the connector in the requester's role permissions.

## Further Reading <a href="#further-reading" id="further-reading"></a>

* [Connectors (Member Guide)](https://docs.maiagent.ai/maiagent-user-guide/en/work/maigpt/connectors.md)
* [MaiGPT Role Usage Permissions](https://docs.maiagent.ai/maiagent-user-guide/en/org/roles/maigpt-role-permissions.md)
* [MCP Tool Setup](https://docs.maiagent.ai/maiagent-user-guide/en/build/tools/mcp-setup.md)
* [Notification Center](https://docs.maiagent.ai/maiagent-user-guide/en/start/notifications.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/en/work/maigpt/connectors/connectors-admin.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
