Skip to main content
Organization MCP servers are a Beta feature and are off by default. A Super Admin turns them on from Super Admin Dashboard > Instance Settings. See Turn On Organization MCP Servers. This page describes OpenHands Enterprise 0.105.0 and later.
Use organization MCP servers to add a Model Context Protocol server once and make its tools available in every member’s conversations. Admins and Owners manage the servers from Settings > MCP. Members see them on the same page, next to their own personal MCP servers. Each organization MCP server has a credential source:
  • Shared credential (organization-managed): The Admin enters one credential, such as a token or an OAuth sign-in. Every member uses the server under that identity, with no setup.
  • Use a personal secret or Each member signs in (user-managed): Each member connects with their own credential, so the server acts as that member. This is the default.

Turn On Organization MCP Servers

  1. As a Super Admin, open Super Admin Dashboard > Instance Settings.
  2. Turn on Enable Organization MCP Servers (beta).
When the feature is on, Settings > MCP shows an Organization MCP servers section in organization workspaces and an MCP Library in every workspace. Personal workspaces do not have organization MCP servers. The switch controls the settings pages only. Turning it off does not remove existing organization MCP servers, and new conversations still launch with them. Delete the servers first if you want to stop using them.

Permissions

Add an Organization MCP Server

  1. Select the organization that should own the server.
  2. As an Admin or Owner, open Settings > MCP.
  3. In Organization MCP servers, select Add organization server.
  4. Choose a Server Type: SHTTP, SSE, or STDIO.
  5. Enter a Name. Names can contain letters, digits, hyphens, and underscores, and cannot be changed later. The name default is reserved.
  6. Fill in the server details:
    • For SHTTP and SSE, enter the URL, and optionally a Timeout (seconds) for SHTTP. Then choose an MCP authentication method: None, Bearer token, Header, or OAuth.
    • For STDIO, enter the Command, Command Arguments, and Environment Variables. The command runs inside each member’s sandbox.
  7. Choose a Credential source and enter the credential. See Configure the Credential.
  8. Optionally, select Test connection. A working server reports how many tools it provides.
  9. Select Add organization server.
New conversations in the organization launch with the server. Conversations that are already running do not pick it up. Test connection is available for remote servers that use no authentication, and for organization-managed remote servers that use a bearer token or header. It is not available for STDIO servers, OAuth servers, or user-managed servers that need a credential.

Configure the Credential

Personal secret names must start with a letter or underscore and contain only letters, digits, and underscores. An organization-managed server can reference secrets with ${NAME} only if they are organization-shared secrets. The server refuses a reference to any other secret.

Configure OAuth

For OAuth, enter an OAuth client ID, an OAuth client secret, and Scopes separated by spaces. Leave the client ID and secret empty if the MCP server registers clients automatically. If you use a client that you registered with the provider, add this redirect URI to the client:
The sign-in opens in a pop-up window. Allow pop-ups for your OpenHands host if the browser blocks it.

Add a Server From the MCP Library

  1. Open Settings > MCP and choose a server in the Library.
  2. As an Admin or Owner, set Scope to Organization.
  3. Complete the Add organization server form, which opens with the library entry’s settings.

Connect to a User-Managed Server

Members connect to each user-managed server once. In Organization MCP servers, user-managed servers show a Your identity badge and a Connected or Needs connection status. Organization-managed servers show Managed by organization and need no setup.
  • Personal secret: Select Connect, enter your credential, and save it. OpenHands saves it as a personal secret with the name the server needs. You can also add the secret yourself under Settings > Secrets with that exact name.
  • OAuth: Select Connect and sign in with your own account in the pop-up window. Select Disconnect to remove your tokens.
Until you connect, your conversations start without that server. Service accounts cannot connect to user-managed OAuth servers.

How Conversations Use Organization MCP Servers

When a conversation starts, OpenHands adds the organization’s MCP servers to the member’s personal MCP servers:
  • If a member has a personal server with the same name as an organization server, the conversation uses the personal server.
  • A user-managed server that the member has not connected is left out.
  • Remote servers are reached from the conversation’s sandbox, and STDIO servers run inside it.
  • An automation uses the connections of the identity it runs as.

Agent Profiles

When Agent Profiles are on, the profile decides which MCP servers a conversation gets:
  • A personal profile lists organization MCP servers next to the member’s own. Choose All servers or select individual servers.
  • An organization profile can use only organization-managed servers. In the profile’s MCP servers section, turn on the servers it may use. Members launching the profile get only those servers, and their personal servers are left out.

Edit or Delete a Server

In Organization MCP servers, select Edit or the delete icon on the server’s row. When you edit a server, saved credentials appear masked. Leave a masked field unchanged to keep the saved value. Enter the credential again if you change the server’s URL, or a STDIO server’s command or arguments. Changing an OAuth server’s URL or client ID requires a new authorization. For a user-managed OAuth server, each member must connect again. You cannot delete a server, or change its credential source from Shared credential to a personal one, while an organization Agent Profile uses it. Remove the server from those profiles first. Deleting a server also removes every member’s OAuth connection to it.

Real-World Scenarios

Shared MCP Credential

Your team uses Datadog to diagnose production errors.
  • Server: An organization MCP server that connects to Datadog.
  • Credential source: Shared credential, with one Datadog service account token that is scoped to read-only access.
  • Result: Every member can use the server to read production logs, with no setup. All calls use the shared read-only token.

Internal MCP Gateway

Your company routes MCP traffic through an internal MCP gateway, and the gateway needs each user to authenticate with their own identity.
  • Server: An organization MCP server that you add manually with the gateway’s URL, so it is available to every member.
  • Credential source: Use a personal secret, with a Personal secret name such as MCP_GATEWAY_KEY.
  • Result: Each member selects Connect and saves their own gateway virtual key. Their MCP calls then use their personal identity.

Credential Security

OpenHands encrypts organization MCP server settings, including credentials and members’ OAuth tokens, before it saves them in the Enterprise database. The settings pages and the API never return saved credentials, including to the Admin who entered them.
A conversation’s sandbox needs the credential to call the MCP server. Code running in a member’s sandbox can read the credentials of the servers that conversation uses. Use a shared credential only for access you intend to give every member of the organization.