> 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).

# Manage Connectors (Administrators)

Organization admins can, on the MaiGPT Connectors page, enable connectors for the organization, configure Service Account credentials and the contextData allowlist, view and revoke member authorizatio

Before members can use connectors such as Notion and Google Drive in MaiGPT, the organization must first **enable** them, and then each member can authorize their own use (for member-side steps, see [Connectors](https://docs.maiagent.ai/maiagent-user-guide/en/work/maigpt/connectors.md)). This page is for organization admins: on the <mark style="color:blue;">MaiGPT Connectors</mark> page, decide which connectors the organization makes available, handle requests from members, and connect your 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> for <mark style="color:blue;">MaiGPT Connectors</mark> to appear in the left menu. Organization owners have it by default.
* Members only need the <mark style="color:blue;">MaiGPT permission</mark> to **use** connectors, not the management permission.
* Only the **organization owner** can revoke a member's authorization.

For how to set permissions, 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>

Click <mark style="color:blue;">MaiGPT Connectors</mark> in the left menu. The list shows all connectors provided by the platform and defined by your organization:

| Column                                               | Description                                                                                                                                                  |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <mark style="color:blue;">Connector Name</mark>      | When members have submitted requests, an "N members requested" tag appears next to the name; hover over it to see the requesters' emails                     |
| <mark style="color:blue;">Source</mark>              | <mark style="color:blue;">Built-in</mark> (provided by the platform) or <mark style="color:blue;">Organization Custom</mark> (private MCP servers you added) |
| <mark style="color:blue;">Authentication Type</mark> | OAuth 2.0 (each member authorizes individually), Service Account (one credential shared across the organization), or No Auth                                 |
| <mark style="color:blue;">Tool Category</mark>       | The category under which tool cards are displayed in conversations; can be set only after the connector is enabled, and the selection is saved immediately   |
| <mark style="color:blue;">Enabled</mark>             | Whether the connector is made available to the organization                                                                                                  |
| <mark style="color:blue;">Authorized Members</mark>  | The number of members who have completed authorization; the edit icon next to it shows the list                                                              |
| <mark style="color:blue;">Actions</mark>             | Credential settings for Service Account connectors; edit and delete for organization-custom connectors                                                       |

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

Organization-custom connectors have another entry point: <mark style="color:blue;">AI Features</mark> → <mark style="color:blue;">Tools</mark>, then switch to <mark style="color:blue;">Manage Connectors</mark> in the second column on the page. The page header reads "Manage the organization's custom MCP connectors. Connectors are synced to MaiGPT Connectors, where you can choose whether to enable them." The list shows only organization-custom connectors (built-in ones are excluded), with the columns <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, delete), and <mark style="color:blue;">Add Connector</mark> and <mark style="color:blue;">Refresh</mark> in the upper right. This list and the list on this page edit the same data; enabling/disabling and member authorizations are still managed on this page.

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

Turn on the <mark style="color:blue;">Enabled</mark> toggle in that row, and you are done when you see <mark style="color:blue;">Connector enabled successfully</mark>. After enabling, what members see depends on the authentication type:

| Authentication Type | When Enabled                                                                                                                                                                        | Member Side                                                                                                                                                                           |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| OAuth 2.0           | Enabled directly                                                                                                                                                                    | 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> window appears first; enter the authentication headers and create them. If you click Cancel, the toggle reverts | No authorization needed; everyone shares the credentials the admin entered. When the authentication headers are empty, <mark style="color:blue;">Admin setup required</mark> is shown |
| No Auth             | Enabled directly                                                                                                                                                                    | Can be used without authorization                                                                                                                                                     |

After you turn the toggle off (<mark style="color:blue;">Connector disabled successfully</mark>), members can no longer use it in conversations; existing member authorizations are kept, and re-enabling restores them.

### Make Available to Roles <a href="#role-access" id="role-access"></a>

Once a **built-in** connector is enabled, it is also limited by the role's MaiGPT usage permissions: a member's role must have "All" checked in the <mark style="color:blue;">Connectors</mark> card or have this connector checked for the member to see the authorize button; otherwise the member side shows <mark style="color:blue;">Role not enabled</mark>. **Organization-custom** connectors are not restricted by role. For how to set this, see [MaiGPT Role 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>

When members see an unavailable connector in <mark style="color:blue;">Manage My Connectors</mark>, they can submit a request. The system emails the organization owner and people with the MaiGPT connector management permission, and shows "N connectors have pending member enablement requests" at the top of this page.

| Status the Member Sees                                       | Button the Member Clicks                            | What You Need to Do                                                                                                                                                           |
| ------------------------------------------------------------ | --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">Not enabled by organization</mark> | <mark style="color:blue;">Request Activation</mark> | On this page, turn on the connector's <mark style="color:blue;">Enabled</mark> toggle                                                                                         |
| <mark style="color:blue;">Role not enabled</mark>            | <mark style="color:blue;">Request from Admin</mark> | The connector is already enabled. Go to the MaiGPT usage permissions of the requester's role and check this connector, or add the requester to a role that already has access |

Once done, the request is resolved automatically, and the requester receives <mark style="color:blue;">Connector enabled</mark> in the [Notification Center](https://docs.maiagent.ai/maiagent-user-guide/en/start/notifications.md). This page has no button to reject individual requests; if you do not plan to make the connector available, tell the requester directly.

## 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. Each member shows <mark style="color:blue;">Authorized At</mark>, <mark style="color:blue;">Token Expires At</mark>, and a status (<mark style="color:blue;">Valid</mark>, <mark style="color:blue;">Expired</mark>, <mark style="color:blue;">Permanent</mark>).

When a member leaves or should no longer have access, the organization owner can click <mark style="color:blue;">Revoke Authorization</mark>; after revocation, the member must authorize again to use it. Revocation applies only to OAuth 2.0 connectors. A connector that has never been enabled has no list and shows the message "This connector has not been created yet. Please enable it first."

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

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

* <mark style="color:blue;">Authentication Headers</mark>: A JSON object, for example `{"Authorization": "Bearer your-token"}`. Headers that are already set show only masked values; leaving the field blank keeps the existing headers, and entering a value **overwrites the entire set**.
* Header values can use the <mark style="color:blue;">available context variables</mark>, which are filled in automatically for each conversation: `{{contact_id}}` (contact ID), `{{source_id}}` (source ID), `{{contact_name}}` (contact name), `{{conversation_id}}` (conversation ID), `{{inbox_id}}` (inbox ID), `{{organization_id}}` (organization ID).

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

When an Agent is embedded in your website, the website can pass in its own data (such as a member number) through contextData and then write it into the authentication headers:

1. In the website's chat window embed settings, put the data into contextData (for how, see the technical manual [Inject Page Context](https://docs.maiagent.ai/tech/serve/web-chat-sdk/web-chat-context-data)).
2. Enter the names in <mark style="color:blue;">Allowed contextData Keys</mark> as a JSON string array, for example `["patientToken"]`; up to 20 names, and each name is limited to English letters, digits, and underscores, 1 to 64 characters.
3. In the value of the authentication header, write `{{context_data.patientToken}}`.

Rules: the name must be identical in all three places, including case; any name not on the allowlist always returns no value; when there is no value for that conversation, that header is not sent; only single-level names are supported, not `a.b`.

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

When a company-built or third-party MCP server is not in the list, you can add it as an organization-private connector that only your organization can see. Servers added on this page use **OAuth 2.0** authentication.

1. Click <mark style="color:blue;">Add Connector</mark> in the upper right.
2. Fill in <mark style="color:blue;">Name</mark> (English letters, digits, underscores, hyphens) and <mark style="color:blue;">Server URL</mark> (must be `https://`); <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, SVG, up to 2 MB) are optional.
3. If the authorization server cannot be detected automatically, also 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>. For descriptions of each field, see [MCP Tool Setup](https://docs.maiagent.ai/maiagent-user-guide/en/build/tools/mcp-setup.md#oauth-custom-connector).
4. Click <mark style="color:blue;">Confirm</mark>. The system first tests whether it can connect to the server. If that fails, it shows the error reason (or <mark style="color:blue;">Connection test failed</mark>) and nothing is created; on success, it shows <mark style="color:blue;">Server added successfully</mark>, the connector is enabled automatically, and the source is marked <mark style="color:blue;">Organization Custom</mark>.

The same organization-custom connectors also appear under <mark style="color:blue;">Manage Connectors</mark> on the <mark style="color:blue;">Tools</mark> page, and both places edit the same data.

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

* **Edit**: Affects all tools that use the same MCP server URL. Changing the <mark style="color:blue;">Server URL</mark> makes those tools no longer match and lose their authorization, so edit with caution.
* **Delete**: Member and contact authorizations for this connector are removed as well. If any tools use this connector, the confirmation window lists the affected tools and the number of authorizations that will be revoked; clicking <mark style="color:blue;">Delete All</mark> deletes the connector together with those tools.

## FAQ <a href="#faq" id="faq"></a>

### The connector is enabled, but members still don't see the authorize button? <a href="#faq-member-cannot-authorize" id="faq-member-cannot-authorize"></a>

Ask the member to open <mark style="color:blue;">Manage My Connectors</mark> and check the status. If it shows <mark style="color:blue;">Role not enabled</mark>, go to the member's role MaiGPT usage permissions and make this connector available; see [Make Available to Roles](#role-access).

### The member side shows "Admin setup required"? <a href="#faq-admin-setup-required" id="faq-admin-setup-required"></a>

This means the Service Account connector does not have authentication headers yet. Click the settings icon in that row, fill in the <mark style="color:blue;">Authentication Headers</mark>, and save; members can then use it.

### An error appears 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; "Only authorizations for OAuth-type connectors can be revoked" means this connector is not of the type that members authorize individually.

### The request notice at the top of the page never goes away? <a href="#faq-request-banner" id="faq-request-banner"></a>

If the connector has long been enabled, the requester is hitting a role restriction. Turning on the toggle cannot resolve this kind of request; instead, make the connector available in the requester's role.

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

* [Connectors (Member Side)](https://docs.maiagent.ai/maiagent-user-guide/en/work/maigpt/connectors.md)
* [MaiGPT Role 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.
