MCP servers
Register backend MCP servers, configure authentication, and monitor health status.
Overview
The Servers page is where you register the backend MCP servers that your agents call through the gateway. Each server exposes one or more tools (database queries, search, file operations and so on) that agents can discover and invoke.
You'll find it at Enforce > Agent controls > MCP servers.
Server list
The main view shows all registered servers as a list. Each row displays:
- Server name: The display name you gave the server.
- Health status: A color-coded chip: green for "Healthy", red for "Unhealthy" or gray for "Unknown".
- Tool count: How many of this server's tools are currently available. Tools the server no longer offers aren't counted.
- URL: The server's address.
- Auth type: Shows "no auth", "bearer", "api_key", "OAuth" or "AWS IAM".
- Slug: The URL-safe identifier, shown as a path segment (e.g., /my-server).
- Created by: The user who registered the server and the date.
Click any row to open the edit modal. Use the toggle on the right to enable or disable a server without deleting it.
Adding a server
Click Add server in the top-right corner. The modal has these fields:
| Field | Required | Description |
|---|---|---|
| Server name | Yes | A human-readable name (e.g., "Production Search Server"). |
| Slug | Yes | Auto-generated from the name. Lowercase letters, digits and hyphens only. Must start with a letter or digit. Can't be changed after creation. |
| URL | Yes | The full address of the MCP server (e.g., https://mcp-server.example.com). It must start with http or https and can't contain a username or password. Cloud metadata addresses (169.254.169.254) and 0.0.0.0 are blocked. Private network addresses are allowed. |
| Description | No | A short note about what this server does (e.g., "Exposes search and retrieval tools"). |
| Authentication | No | How the gateway authenticates with this server. Options: None (default), Bearer token, API key, OAuth (client credentials) or AWS IAM. |
Authentication options
The gateway supports five authentication methods when connecting to your backend MCP servers. The gateway connects over Streamable HTTP and uses tools only (not resources or prompts).
- None: No authentication header is sent. Use this for servers on a private network or behind a VPN.
- Bearer token: The gateway sends an
Authorization: Bearer <token>header with each request. Enter the token in the modal. - API key: The gateway sends a custom header with an API key value. You choose the header name (defaults to
X-API-Key) and enter the key value. - OAuth (client credentials): The gateway requests an access token with your client ID and secret, then sends it as a bearer token. See "Connecting an OAuth server" below.
- AWS IAM: The gateway signs in to AWS with an IAM user's access keys to get a token. See "Connecting the AWS MCP Server" below.
Connecting an OAuth server
Choose OAuth (client credentials) when the server wants an access token from a client ID and secret. Fill in these fields:
- Client ID and Client secret: The credentials your identity provider gave you for this server.
- Scope (optional): The scope to request, if the provider needs one.
- Token URL: Where the gateway requests tokens. Leave it blank and the gateway looks it up from the server address when you finish typing it. You can also click Find token URL. If nothing is found, enter the URL yourself.
- Advanced: Client authentication (Basic (header) or In request body) and an optional resource value. The default is a Basic header.
Check a found token URL before you save. The gateway sends your client secret to that address. The token URL must pass the same address checks as the server URL.
Connecting the AWS MCP Server
The AWS MCP Server doesn't accept a static key, so use AWS IAM. Before you start, create an IAM user with long-term access keys and attach the AWS managed policy AWSMCPSignInOAuthAccessPolicy. It grants signin:CreateOAuth2Token.
- Click Add server and enter a name.
- Enter the server address, for example
https://aws-mcp.us-east-1.api.aws/mcp. - Set Authentication to AWS IAM.
- Enter the Region (for example
us-east-1), the Access key ID and the Secret access key. - Click Add server. The gateway requests a token and lists the server's tools.
Tool calls run with the permissions of that IAM user, so give it only what your agents need. The gateway renews the token before it expires. Tokens last up to an hour. Temporary credentials and role assumption aren't supported.
If the gateway can't get a token, the server shows as Unhealthy. Hover over the chip to see the reason, such as a rejected client secret or an IAM user missing the policy. Agents calling the server get a generic internal error until you fix it.
Editing a server
Click a server row or the pencil icon to open the edit modal. You can change the name, address, description and authentication. The slug can't be changed after creation because agent keys and audit logs reference it.
To update auth credentials, select the auth type and enter new values. Leave the secret field blank to keep the existing one. If you switch to a different auth type, enter the new credentials.
Enabling and disabling servers
Each server has an active/inactive toggle. When you disable a server:
- Its tools stop appearing in
tools/listresponses to agents. - Any
tools/callrequests targeting its tools are rejected. - The server's configuration is preserved. Toggle it back on at any time.
The admin MCP Tools page still lists tools from a disabled server. This helps during maintenance windows, or when you need to quickly cut off access to a server without deleting it. Switching a server back on runs tool discovery again.
Server health
The health chip next to the server name shows the result of the last tool discovery. It has one of three states:
- Healthy: (green) The last tool discovery succeeded.
- Unhealthy: (red) The last tool discovery failed. Hover over the chip to see why.
- Unknown: (gray) No tool discovery has run yet.
Health only changes when tool discovery runs. There are no periodic health checks yet. Unhealthy servers aren't bypassed, so requests to them are still attempted and will likely fail. You can disable an unhealthy server manually.
Tool discovery
The gateway discovers a server's tools by connecting to it, listing its tools and storing them in the tool catalog. Discovery runs while you save, in these cases:
- You create a server.
- You edit a server's address, authentication type or credentials.
- You switch a server on.
Discovery during save has a 10-second limit. The server is always saved, even if discovery fails.
Admins can also click Discover tools on a server to run discovery again. This has a 25-second limit.
Each run shows its result: how many tools were found, that the server offered no tools, or the reason it failed.
If a server stops offering a tool, the tool is deactivated on the next discovery. Its risk level and approval settings are kept, so they apply again if the tool comes back.
Deleting a server
Click the trash icon on a server row to open the delete confirmation modal. Deleting a server:
- Permanently removes the server and all its registered tools from the catalog.
- Agents referencing those tools will receive errors on their next call.
- Existing audit log entries for tools from this server are preserved.
Slug format rules
Slugs must follow these rules:
- Start with a lowercase letter or digit.
- Contain only lowercase letters, digits and hyphens.
- Be unique across all servers in your organization.
- Can't be changed after the server is created.
The slug is auto-generated from the server name when you create a new server. For example, "Production Search Server" becomes production-search-server.
Permissions
Creating, editing and deleting servers requires the Admin role. All authenticated users can view the server list.