> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Virtual MCPs

> Bundle tools from one or more MCP servers into a single addressable MCP endpoint, assignable to virtual keys.

## Overview

A **Virtual MCP** (vMCP) is a named bundle of tools drawn from one or more of your MCP servers, exposed as its own MCP endpoint at `/mcp/<slug>`. Instead of pointing a client at a raw MCP server and hoping it only calls the right tools, you curate a subset once, give it a stable URL, and attach it to the virtual keys that should reach it.

> [!NOTE]
>
> Virtual MCPs were previously called **MCP Tool Groups**. The feature is now part of open-source Bifrost (it requires [governance](https://docs.getbifrost.ai/features/governance/virtual-keys.md) to be enabled). Enterprise adds extra scoping on top: see [Virtual MCPs (Enterprise)](https://docs.getbifrost.ai/enterprise/virtual-mcps.md).

**Key benefits:**

* **One curated endpoint** - Group tools from several MCP servers behind a single `/mcp/<slug>` URL.
* **Per-tool selection** - Include all tools from a server, or a named subset.
* **Stable, immutable slug** - The endpoint path is derived from the name (or set explicitly) and never changes, so clients don't break.
* **Virtual key scoped** - A vMCP is reachable only through the virtual keys it's attached to (enterprise can also grant it through [access profiles](https://docs.getbifrost.ai/enterprise/virtual-mcps.md)).
* **No extra request latency** - Resolution happens against an in-process index, not extra database lookups.
* **Master enable / disable** - Turn a vMCP off to stop serving it without deleting it or its assignments.

***

## How it works

A Virtual MCP bundles tools you choose from one or more of your MCP servers. For each server you add, you either expose all of its tools or pick a specific subset. One vMCP can pull from several servers, so a single endpoint can span them.

Each vMCP is served at its own URL, `/mcp/<slug>` (`/<prefix>/mcp/<slug>` under a `server.base_path`; the dashboard's copy button gives the full address), and is reachable only through the virtual keys it's attached to. On enterprise, [access profiles](https://docs.getbifrost.ai/enterprise/virtual-mcps.md) can also grant a vMCP (reachable through the profile's auto-allocated keys).

### The endpoint slug

Every vMCP is served at `/mcp/<slug>`:

* The slug is **derived from the name** when you don't set one (lowercased, non-alphanumeric runs collapsed to a single `-`, edges trimmed). "My Cool Tools" becomes `my-cool-tools`.
* It must be **unique across all vMCPs and all direct MCP clients** (they share the `/mcp/<slug>` namespace). A collision on create is auto-suffixed (`-2`, `-3`, ...) when derived, or rejected when set explicitly.
* It is **immutable after creation**. A request that changes it is silently ignored so existing client connections never break.

### Serving

```mermaid theme={null}
flowchart TD
    A["Client connects to<br/>POST/GET /mcp/&lt;slug&gt;"] --> B[Authenticate the virtual key]
    B --> C{Is this vMCP<br/>attached to the key?}
    C -- no --> D[403]
    C -- yes --> E{vMCP enabled?}
    E -- no --> F[Not served]
    E -- yes --> G[Resolve tool specs,<br/>narrow to the key's access]
    G --> H["Expose &lt;client&gt;-&lt;tool&gt; tools<br/>over streamable-HTTP or SSE"]
```

Tools appear to the connected client as `<server>-<tool>`. App-only tools of [MCP Apps](https://docs.getbifrost.ai/mcp/apps.md) are never listed on a vMCP; connect to the server's own endpoint to use them. A disabled vMCP, a slug the key isn't attached to, and a request with no valid key are all rejected. If a source MCP client is later removed, it silently contributes nothing and the rest of the vMCP keeps working.

***

## Two ways to consume a Virtual MCP

This is the most important mental model, because the two paths behave differently.

### Through the MCP Gateway (`/mcp/<slug>`)

Point an MCP client at `http(s)://<host>/mcp/<slug>`. The slug **narrows** the connection to exactly that one vMCP: `tools/list` returns only that vMCP's tools, even if the same virtual key has other vMCPs or direct MCP grants. The connecting client executes each `tools/call` itself.

The plain `/mcp` endpoint (no slug) is different: it exposes the **whole-key union** (all the key's vMCPs plus its direct MCP client grants), not a single vMCP.

### Through the LLM Gateway (`/v1/chat/completions`)

On a chat request, there is **no slug selection**. Every vMCP attached to the virtual key on the request has its tools folded into that key's tool union, and that union is what the model sees. A vMCP and a raw MCP grant are indistinguishable once folded. Auto-executable tools run server-side in the agent loop; others are returned to the caller to execute.

> [!NOTE]
>
> Same key, same vMCPs: the MCP gateway isolates per slug, while the LLM gateway always gives the whole union. Use [MCP tool filtering](https://docs.getbifrost.ai/features/governance/mcp-tools.md) headers (`x-bf-mcp-include-clients` / `x-bf-mcp-include-tools`) to narrow the LLM path further; they can only narrow the key's grant, never widen it.

***

## Configuration

> [tab] Web UI
>
> ### Create
>
> 1. Navigate to **Workspace** -> **Virtual MCPs**, then click **Create**. A four-step wizard opens: **General -> Tools -> Access -> Review**.
>
> ![Virtual MCPs list page with create button](https://mintcdn.com/bifrost/C4cl6jGxZkESS-hO/media/mcp/ui-virtual-mcp-list.png?fit=max\&auto=format\&n=C4cl6jGxZkESS-hO\&q=85\&s=67c4c3ca88573482ebe9bccf437e3c3f)
>
> 2. **General** - Enter a **Name** (required). Optionally set an **Endpoint slug** (leave blank to derive it from the name) and a **Description**, and toggle **Enabled**. The page you'll be served at is previewed as `/mcp/<slug>`.
>
> ![Virtual MCP wizard General step with name, slug, description](https://mintcdn.com/bifrost/C4cl6jGxZkESS-hO/media/mcp/ui-virtual-mcp-wizard-general.png?fit=max\&auto=format\&n=C4cl6jGxZkESS-hO\&q=85\&s=c3ce6752ad5572f3549be937fccbed02)
>
> 3. **Tools** - Add one or more MCP servers. For each, choose **Allow All Tools** (`*`) or pick a specific subset.
>
> ![Virtual MCP wizard Tools step selecting servers and tools](https://mintcdn.com/bifrost/C4cl6jGxZkESS-hO/media/mcp/ui-virtual-mcp-wizard-tools.png?fit=max\&auto=format\&n=C4cl6jGxZkESS-hO\&q=85\&s=b3bbe59a496cfad9430f7daf8db9d839)
>
> 4. **Access** - Optionally stage one or more virtual keys to attach on creation.
>
> ![Virtual MCP wizard Access step assigning virtual keys](https://mintcdn.com/bifrost/C4cl6jGxZkESS-hO/media/mcp/ui-virtual-mcp-wizard-access.png?fit=max\&auto=format\&n=C4cl6jGxZkESS-hO\&q=85\&s=79f5a6b51754a0834aa3efc6e514b547)
>
> 5. **Review** - Confirm the endpoint URL, per-server tool summary, and staged keys, then **Create**.
>
> ### Edit, toggle, delete
>
> * Open a row to edit it in a sheet with **General / Tools / Access / Connect** tabs. The **Connect** tab shows the full endpoint URL and how to point a client at it. The slug field is read-only here (immutable after creation).
> * The table's **Enabled** switch toggles serving without opening the sheet.
> * **Delete** is confirmed via dialog and warns that the vMCP stops being served at `/mcp/<slug>` and is removed from any virtual keys it's assigned to.

> [tab] API
>
> Base path: `/api/mcp/virtual-mcps`. Requires governance to be enabled.
>
> **Create:**
>
> ```bash theme={null}
> curl -X POST http://localhost:8080/api/mcp/virtual-mcps \
>   -H "Content-Type: application/json" \
>   -d '{
>     "name": "Support Tools",
>     "endpoint_slug": "support-tools",
>     "description": "Ticketing + docs search",
>     "enabled": true,
>     "tools": [
>       { "mcp_client_id": "zendesk", "tool_names": ["*"] },
>       { "mcp_client_id": "docs-search", "tool_names": ["query", "get_page"] }
>     ]
>   }'
> ```
>
> **Response:**
>
> ```json theme={null}
> {
>   "virtual_mcp": {
>     "id": 12,
>     "name": "Support Tools",
>     "endpoint_slug": "support-tools",
>     "description": "Ticketing + docs search",
>     "enabled": true,
>     "tools": [
>       { "mcp_client_id": "zendesk", "tool_names": ["*"] },
>       { "mcp_client_id": "docs-search", "tool_names": ["query", "get_page"] }
>     ],
>     "virtual_key_ids": [],
>     "created_at": "2026-09-04T10:00:00Z",
>     "updated_at": "2026-09-04T10:00:00Z"
>   }
> }
> ```
>
> **Other endpoints:**
>
> | Method | Path | Description |
> | - | - | - |
> | `GET` | `/api/mcp/virtual-mcps` | List (supports `search`, `limit`, `offset`) |
> | `GET` | `/api/mcp/virtual-mcps/{id}` | Get one |
> | `PUT` | `/api/mcp/virtual-mcps/{id}` | Update (`endpoint_slug` is ignored) |
> | `DELETE` | `/api/mcp/virtual-mcps/{id}` | Delete |
> | `POST` | `/api/mcp/virtual-mcps/{id}/virtual-keys/{vkId}` | Attach to a virtual key |
> | `DELETE` | `/api/mcp/virtual-mcps/{id}/virtual-keys/{vkId}` | Detach from a virtual key |
>
> **Request fields:**
>
> | Field | Type | Required | Description |
> | - | - | - | - |
> | `name` | string | Yes | Display name |
> | `endpoint_slug` | string | No | Honored on create only; derived from `name` when omitted (a `name` that yields no slug, such as `"!!!"`, then returns `400`); immutable after |
> | `description` | string | No | Free text |
> | `enabled` | boolean | No | Defaults to `true` |
> | `tools` | array | Yes | Tool specs: `mcp_client_id` (the client's `client_id`, not its name) + `tool_names` (`["*"]` = all current and future tools, `[]` = none) |
>
> > [!NOTE]
> >
> > Unknown `mcp_client_id`s, including a client's name, are rejected on save with `400`. Unknown tool **names** are not validated on save; they're enforced at call time. A slug already used by another vMCP or a direct MCP client returns `409`.

> [tab] config.json
>
> Virtual MCPs are declared under `mcp.virtual_mcps`. They are reconciled into the config store at load and served at `/mcp/<endpoint_slug>`:
>
> ```json theme={null}
> {
>   "mcp": {
>     "virtual_mcps": [
>       {
>         "name": "Support Tools",
>         "endpoint_slug": "support-tools",
>         "description": "Ticketing + docs search",
>         "enabled": true,
>         "tools": [
>           { "mcp_client_name": "zendesk", "tool_names": ["*"] },
>           { "mcp_client_name": "docs-search", "tool_names": ["query", "get_page"] }
>         ],
>         "virtual_key_ids": ["vk-support"]
>       }
>     ]
>   }
> }
> ```
>
> | Field | Type | Required | Description |
> | - | - | - | - |
> | `id` | integer | No | Positive integer (>= 1). When set, the reconciler matches by this ID first and falls back to name when no stored vMCP has that ID; a name match keeps its existing stored ID |
> | `name` | string | Yes | Display name (unique) |
> | `endpoint_slug` | string | No | Lowercase URL-safe kebab-case (pattern `^[a-z0-9]+(-[a-z0-9]+)*$`) path served at `/mcp/<endpoint_slug>`. Derived from the name when omitted; immutable after creation; unique across vMCPs and direct MCP clients |
> | `description` | string | No | Free text |
> | `enabled` | boolean | No | Defaults to `true`. A disabled vMCP is not served |
> | `tools` | array | Yes | At least one entry. Each item needs `mcp_client_id` or `mcp_client_name`, plus `tool_names` (`["*"]` = all current and future tools, `[]` = none) |
> | `virtual_key_ids` | string\[] | No | Virtual keys the vMCP is attached to |
>
> When `source_of_truth` is `config.json` and `mcp.virtual_mcps` is present, it is authoritative for vMCPs: any stored vMCP absent from it is removed, and an explicit `"virtual_mcps": []` prunes them all. Omitting `mcp.virtual_mcps` leaves stored vMCPs unchanged. In `split` mode the file creates and updates vMCPs but never prunes runtime-managed ones.
>
> > [!NOTE]
> >
> > `mcp.tool_groups` is the deprecated former name for this key and is kept for backward compatibility. It carries legacy attachment arrays (`team_ids`, `customer_ids`, `user_ids`, `provider_names`, `api_key_ids`) and does not expose `endpoint_slug`. Prefer `mcp.virtual_mcps` for new setups; when both keys are present, `mcp.virtual_mcps` wins and `mcp.tool_groups` is ignored.
>
> The same fields are available in the Helm chart under `bifrost.mcp.virtualMcps` (camelCase keys, e.g. `endpointSlug`, `virtualKeyIds`), which renders into `mcp.virtual_mcps`.

***

## Assigning to virtual keys

A vMCP is only reachable through the virtual keys it's attached to. Attach from the vMCP's **Access** tab, from the virtual key's **Virtual MCP Server Configurations** section, or via the attach/detach API.

> [!NOTE]
>
> On enterprise, [access profiles](https://docs.getbifrost.ai/enterprise/virtual-mcps.md) are a second way to grant a vMCP: every user in the profile reaches it through their auto-allocated keys, without a direct attachment.

Attaching a vMCP to a key changes what that key sees on both paths:

* **MCP gateway** - the key can now reach `/mcp/<slug>` (previously `403`), and that slug returns only this vMCP's tools.
* **LLM gateway** - the vMCP's tools are added to the key's tool union that the model sees, alongside any tools the key already grants directly.

Detaching reverses both. A tool reachable both directly and via a vMCP appears once, not duplicated.

***

## Direct MCP client endpoints

Individual MCP clients can also be served directly at `/mcp/<slug>` using their own `endpoint_slug`, in the same namespace as Virtual MCPs. When a client connects to a slug, Bifrost resolves it as a Virtual MCP first, then falls back to a single MCP client. This is why slugs must be unique across both. Use a direct client endpoint to expose one server as-is; use a Virtual MCP to curate and combine tools across servers.

***

## Enterprise scoping

Enterprise builds add scoping on top of the open-source feature:

* **Access profiles** grant a whole vMCP (and all its tools) to every user in the profile.
* **Data Access Control** governs which vMCPs each operator can see in the UI.
* **Projects** can be assigned vMCPs.
* **Clustering** propagates vMCP definition and assignment changes across nodes.

See **[Virtual MCPs (Enterprise)](https://docs.getbifrost.ai/enterprise/virtual-mcps.md)** for details.

***

## Troubleshooting

### A client gets 403 at `/mcp/<slug>`

**Cause:** the virtual key isn't attached to that vMCP (or the key is invalid/expired).
**Fix:** attach the vMCP to the key, and confirm the key is active.

### The endpoint returns nothing / the vMCP isn't served

**Cause:** the vMCP is disabled, or all its source clients were removed.
**Fix:** enable it from the table toggle; check its source MCP clients still exist.

### A tool is missing from `tools/list`

**Cause:** the tool isn't in the vMCP's per-client selection, or it's blocked by the key's own MCP allow-list.
**Fix:** add the tool to the vMCP's spec; check the key's [MCP tool filtering](https://docs.getbifrost.ai/features/governance/mcp-tools.md).

### I can't change the slug

**Expected:** slugs are immutable after creation. Create a new vMCP with the desired slug and migrate clients if you need a different path.

***

## Next steps

* **[MCP tool filtering](https://docs.getbifrost.ai/features/governance/mcp-tools.md)** - Per-key allow-lists that also apply to vMCP tools.
* **[Tool execution](https://docs.getbifrost.ai/mcp/tool-execution.md)** - How tool calls are resolved and run.
* **[Virtual Keys](https://docs.getbifrost.ai/features/governance/virtual-keys.md)** - The credential a vMCP attaches to.
* **[Virtual MCPs (Enterprise)](https://docs.getbifrost.ai/enterprise/virtual-mcps.md)** - Access-profile, DAC, project, and cluster scoping.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.