Register MCP Servers
How organization administrators add a Remote MCP server, set up authentication, discover tools, and enable the server.
This guide explains how administrators register a Remote MCP server in AI Gateway. To let projects use its tools, see Allow MCP tools in projects. For how users connect servers, create toolsets, and connect clients, start with Connect MCP servers.
Overall flow
Section titled “Overall flow”| Step | Who | Task |
|---|---|---|
| 1 | Organization administrator | Add the server |
| 2 | Organization administrator | Set up authentication |
| 3 | Organization administrator | Discover tools |
| 4 | Organization administrator | Enable the server |
| 5 | Project administrator or organization administrator | Allow tools in a project |
| 6 | AI user | Connect OAuth or save an API key (only for servers that need it), create a toolset, connect a client |
Only organization administrators (org-admin) can do steps 1–4. Project administrators (project-admin) do not see the MCP Servers menu. Step 5 is done by a project administrator of that project or by an organization administrator.
Before you start
Section titled “Before you start”- License: the license must include MCP Gateway. Without it, the MCP Servers, MCP Access Control and MCP Catalog menus are hidden and the gateway refuses MCP requests.
- Endpoint: find the HTTPS endpoint URL of the Remote MCP server and its transport (Streamable HTTP or Legacy SSE).
- Users: members who will use the tools need a seat and the
ai-userrole in the project. See Let registered members use the gateway.
Open the admin console from the Organization settings tab at the top of the screen. Paths such as AI resources → MCP Servers below are groups and items in the admin console’s left menu.
1. Add the server
Section titled “1. Add the server”In AI resources → MCP Servers, click Add MCP server.
| Field | What to enter |
|---|---|
| Name | Starts with a lowercase letter or digit and uses only lowercase letters, digits, dots (.) and underscores (_), up to 128 characters. Hyphens (-) are not allowed, because toolsets name tools <server name>-<tool name>. The name cannot be changed after creation |
| Endpoint URL | Only HTTPS addresses such as https://mcp.example.com/mcp |
| Description | Optional. Tells users in their MCP Catalog and Gateway Key clients what this server is for, and appears under the server’s name in the MCP Servers list. Up to 1,024 characters. Leave it empty to use the description the server reports during tool discovery. You can edit it while the server is enabled |
| Upstream transport | Streamable HTTP by default. Choose Legacy SSE if the server only supports the older SSE transport |
Click Create MCP server to add it to the shared catalog for this installation. The server starts with No authentication and Disabled. Its edit page opens and the Setup required panel lists the remaining steps.
The name becomes part of the endpoint address users register in their clients (/mcp/servers/<name>) and of tool references in project policies (<name>/<tool name>). It cannot be changed, so pick a name you will keep.
2. Set up authentication
Section titled “2. Set up authentication”On the edit page, choose the method the upstream MCP server requires under Authentication mode.
| Authentication mode | When to use | What users do |
|---|---|---|
| No authentication | The upstream requires no authentication | Nothing |
| Shared API key | One API key for this server; every user calls with the same account | Nothing |
| Per-user API key | Each user calls the upstream with their own API key | Save their own key once per project in the MCP Catalog |
| OAuth | Each user signs in to the upstream with their own account | Connect once per project in the MCP Catalog |
Shared API key
Section titled “Shared API key”| Field | What to enter |
|---|---|
| API key | The upstream server’s API key. It is never shown again after saving. Leave it empty when editing to keep the saved key |
| Auth header name | The header that carries the key. The default is Authorization |
| Auth header prefix | The value sent before the key. Enter Bearer if you need Authorization: Bearer <key>. The gateway trims spaces and puts one space between the prefix and the key, so do not add a trailing space. Leave it empty if not needed |
Click Update MCP server. AI Gateway connects to the server with the key and reads its tool list before saving, and you can discover tools right away on the same page. Even without a new key, changing the endpoint URL, upstream transport, or authentication header name or prefix checks the stored key again. Changing only the description or turning the server on or off is not checked.
If the check fails, nothing is saved and the page keeps what you entered and shows why.
| Message | Meaning and what to do |
|---|---|
| The MCP server did not accept this API key, so nothing was saved | The server refused the key. Check the key and the authentication header name and prefix, then save again |
| The MCP server could not be reached to check the API key, so nothing was saved | The server did not answer or returned an error. Save again later |
While the upstream is down, you cannot change its key or endpoint. To stop user calls in the meantime, turn the server off. A save that only turns the server off, or that switches the auth mode to No authentication, is not checked. If the same save also changes the key, endpoint, transport, or header, it is checked.
Per-user API key
Section titled “Per-user API key”Users save the keys themselves, so the administrator only sets the header that carries them. Users enter only the key.
| Field | What to enter |
|---|---|
| Auth header name | The header that carries the user’s key. The default is Authorization |
| Auth header prefix | The value sent before the key, with the same rules as the shared API key. Enter Bearer if you need Authorization: Bearer <key>; the gateway adds the space between the prefix and the key |
The header name and prefix can be edited at any time. An edited header applies from the next call, also for users who already saved a key, so users do not need to enter their keys again.
A server that is turned off can be switched to another authentication mode. When you save, a confirmation says that every key users saved will be deleted, and the change is saved only after you click Change and save. If you later switch back to per-user API keys, users must enter their keys again.
With OAuth selected, you must click Load OAuth client before you can save. This finds the upstream’s OAuth metadata and, when the authorization server supports it, registers a client automatically. The result appears in the OAuth client block.
- When the block shows Ready, go on to the next step. When it shows Setup required, follow the table below.
- Callback URL is the address to register as a redirect URI with the authorization server. Automatic registration already uses it.
- Scopes are the permissions requested when a user connects. Separate them with commas; leave empty to use the scopes the server offers. Changed scopes apply the next time a user connects.
If automatic setup fails, continue according to the reason shown.
| Message on screen | What to do |
|---|---|
| No OAuth metadata was found at this endpoint | Check and fix the endpoint URL, then click Retry automatic setup. Manual setup is not available in this case |
| The authorization server does not support / rejected automatic client registration | Create an OAuth app in the provider’s console and register the Callback URL as its redirect URI. Click Configure manually, enter Client ID, Token endpoint authentication method and Client secret, and click Save configuration |
An MCP server can have one active OAuth client. Users connect with their own accounts in each project.
An OAuth server that is turned off can be switched to another authentication mode. When you save, a confirmation appears, and clicking Change and save deletes the server’s OAuth client setup and every user’s OAuth connection. If you later switch back to OAuth, load the client again; users must connect again too. Either way, the tool list and project policies stay, so discover the tools again with the new authentication mode.
Once a client is registered, the endpoint URL of an OAuth server cannot be changed; create a new server to use another address. While automatic setup is failing, the endpoint can still be edited.
3. Discover tools
Section titled “3. Discover tools”In the MCP server tools section at the bottom of the edit page, click Discover tools. The button is unavailable while there are unsaved changes.
- No authentication and shared API key: discovery uses the saved settings directly.
- Per-user API key: enter a key for discovery in the One-time API key field. The field also appears right after you change the authentication mode, and you can discover once you save. The key is sent in the saved auth header, used only for discovery, and not stored.
- OAuth: a popup opens the authorization server’s sign-in page. Approve with your own account to fetch the tool list. AI Gateway uses this approval only for discovery and does not save it as a connection. If the popup is blocked, click Continue in this tab. If you see a redirect error, check that the authorization server allows the Callback URL as a redirect URI.
Servers with no authentication, a shared API key or per-user API keys are turned on for the duration of discovery even when disabled, then turned off again. When discovery finishes, the tool list appears under Discovered MCP tools. When you come back later the list is labeled Saved tools: N.
If the server reports a description of itself, discovery stores it with the tools. While the Description field is empty, the field shows that description as its placeholder and users see it in their catalog. Changing the endpoint URL clears the stored server description until the next discovery.
When tools are added to or removed from the upstream, click Discover tools again. Tools that disappeared upstream stay in the list but become unavailable and cannot be called. If discovery fails, the existing list stays as it was.
4. Enable the server
Section titled “4. Enable the server”In the MCP Servers list, turn on the switch in the server’s row to make it Enabled. Servers can be enabled only from the list.
While a server is enabled, its upstream transport and authentication mode (and, for OAuth servers, the endpoint) cannot be changed. Turn it off in the list first. Turning a server off refuses new calls, but references to it in project policies and user toolsets stay.
Next, allow tools in a project.