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

# Workstation MCP Servers

> What workstation MCP servers are — MCP servers that run on a local machine and connect to MCP Manager through an encrypted tunnel so they're never exposed to the internet — including why to use them, how the tunnel and local router work, the TUI setup experience, the governance benefits, the full list of outbound hostnames the tunnel needs (coordination server and both relay servers), and how to fix a connection that stalls behind a corporate proxy or that authenticates and then carries no traffic because the relays are blocked, how a workstation server signs in with OAuth through the owner's machine, and how to trust a private certificate authority.

A **workstation MCP server** runs locally — on a user's laptop, desktop, or an on-premises server — and connects to **MCP Manager** through an encrypted tunnel. The server is never exposed to the public internet: all traffic between MCP Manager and a workstation server flows through an end-to-end encrypted tunnel built on WireGuard. This lets a server that must run on a specific machine still sit behind the gateway, where every tool call is logged, inspected, and governed.

Ready to set one up? The tutorial [Connect a workstation MCP server](https://docs.mcpmanager.ai/tutorials/connect-a-workstation-server.md) walks the whole path, from creating the server to calling a local tool through a gateway, in about ten minutes. This page covers the concepts behind it.

> [!NOTE]
>
> Deploying workstation servers is gated by capabilities: **Create and configure managed and workstation servers** to add the server, and **Create managed server instances** for each person who starts their own instance on their machine. If you don't see the option to add a workstation server, your role doesn't have the relevant capability — ask a workspace administrator to grant it. See the [capabilities reference](https://docs.mcpmanager.ai/deployment/rbac-and-roles/capabilities.md).

## Why use a workstation server

A workstation server is the right choice when:

* **The server needs local access** — tools like Playwright (browser automation), filesystem servers, or anything that interacts with a user's machine need to run where that machine is.
* **You're working with on-premises resources** — if a server must reach systems available only on your internal network, running it on a workstation inside that network is the simplest approach.
* **You want governance for local servers** — even though the server runs locally, all traffic still flows through the MCP Manager gateway, so you keep full logging, security guardrails, identity management, and access control.

The key benefit is **visibility**. Without a gateway, local MCP servers are invisible to your organization's security and governance tooling. With workstation servers connected through MCP Manager, every tool call is logged, inspected, and subject to your policies.

## How a workstation server connects

MCP Manager uses a lightweight **tunnel agent** to create a secure connection between the workstation and the gateway. A small container runs on the machine and establishes an encrypted tunnel to MCP Manager. The gateway routes requests through that tunnel; on the workstation, a **local router** validates each request with an access key before forwarding it to your MCP server. The tunnel handles NAT traversal automatically, so workstation servers work even behind firewalls or corporate networks with no special configuration in most environments. The exception is a corporate proxy or secure web gateway that intercepts outbound traffic — see [When a network proxy blocks the connection](#when-a-network-proxy-blocks-the-connection).

```mermaid theme={null}
%%{init: {'theme':'base','themeVariables':{'fontFamily':'Lato, sans-serif','lineColor':'#6a6b76','primaryColor':'#e0e2e8','primaryTextColor':'#12141d','primaryBorderColor':'#6a6b76','edgeLabelBackground':'#ffffff','textColor':'#12141d'}}}%%
flowchart LR
  Client["🤖<br/>AI app or agent"] --> Gateway["🛡️<br/>MCP Manager gateway<br/>authenticate · inspect · log"]
  Gateway -->|encrypted tunnel| Agent["Tunnel agent<br/>(container on the workstation)"]
  Agent --> Router["🔑<br/>Local router<br/>validates access key"]
  Router --> Server["🖥️<br/>Local MCP server"]
  classDef gateway fill:#0086ff,color:#ffffff,stroke:#062b4c,stroke-width:2px;
  classDef client fill:#80cbc4,color:#062b4c,stroke:#00796b,stroke-width:1.5px;
  classDef server fill:#aed8ff,color:#062b4c,stroke:#0b4880,stroke-width:1.5px;
  classDef trust fill:#2fedb4,color:#062b4c,stroke:#059669,stroke-width:1.5px;
  class Gateway gateway;
  class Client client;
  class Server server;
  class Router trust;
```

Because the connection is outbound from the workstation and end-to-end encrypted, the local server is never exposed to the public internet, and only requests carrying the correct access key reach it.

Even though the connection is encrypted, MCP Manager can still see every request that flows through it. That's deliberate: it's how each call gets checked against your policies and written to the audit log before reaching your server. It's what keeps a server on a laptop as governed as any other.

> [!NOTE]
>
> **What makes this safe**
>
> * **Encrypted with WireGuard.** Traffic between the workstation and MCP Manager travels over a tunnel built on [WireGuard](https://www.wireguard.com/), a modern, widely trusted encryption standard.
> * **Nothing exposed to the internet.** The workstation dials out to MCP Manager and never opens an inbound port, so your local server stays invisible to the outside world, even behind a corporate firewall.
> * **Only MCP Manager gets in.** Requests reach your server only through the tunnel, and only when they carry the correct access key.
> * **Every call governed.** Each request is checked against your policies and recorded in the audit log, exactly like any other server.

## One server, many users

You add a workstation server once and assign it to a gateway once. Everyone the gateway is provisioned to can use it. When each person connects the gateway, MCP Manager asks them to pick an **MCP server instance** for this server. There they choose **Add new MCP server instance**, and MCP Manager walks them through starting their **own** instance on their **own** machine. You do not need a separate server, gateway or team per person.

Before anyone can connect, the server needs one working instance — usually the admin's own, set up and tested as in [Connect a workstation MCP server](https://docs.mcpmanager.ai/tutorials/connect-a-workstation-server.md). Until then, the gateway shows **Some servers still need configuration** and cannot be selected when connecting. After that first instance, each person adds their own when they connect.

This is what makes per-user credentials work for local servers. Some servers sign in interactively — Okta's MCP server, for example, uses a browser login. Each person's sign-in stays on their machine, so the upstream service's audit log names the individual who made each call. Every call still flows through the one gateway, its rules and its logs.

Each person who starts an instance needs a role with **Create managed server instances**. The default **Member** role does not include it. Turning it on for Member is the simplest option; a custom role works too. The same capability also lets its holders add instances to managed servers. Without it, the **Add new MCP server instance** option does not appear.

## What you need to connect a workstation server

Before you run the generated command, the machine needs:

* [**Docker**](https://docs.docker.com/get-started/) — the tunnel agent runs as a container on your machine.
* **The local MCP server** you want to connect, or the command that launches it.
* **Outbound network access to MCP Manager's tunnel endpoints.** The agent opens **outbound** connections only — it never opens an inbound port — but all three hostnames below must be reachable.

### Network requirements

Give this list to your network or security team. **All three hostnames are required.** Allowlisting the coordination server alone is the single most common cause of a workstation that authenticates and then carries no traffic.

| Hostname | Port | Why it's needed |
| - | - | - |
| `headscale.mcpmanager.ai` | TCP 443 | **Coordination server.** The agent authenticates here and receives its network map. Without it, the tunnel never starts. |
| `derp-a.mcpmanager.ai` | TCP 443 | **Relay server.** Carries the actual traffic between MCP Manager and your machine. |
| `derp-b.mcpmanager.ai` | TCP 443 | **Relay server (second region).** Used for failover and for lower latency depending on your location. |

> [!WARNING]
>
> **Allowlisting `headscale.mcpmanager.ai` alone is not enough.** MCP Manager's servers and your workstation never reach each other directly — your machine sits behind NAT and opens no inbound port — so traffic travels over the **relay servers**. If the coordination server is allowed but the relays are not, setup goes green through "IP & DNS assigned" and then fails at "Connected to server", because the tunnel authenticated successfully and has nowhere to send packets.

**Allowlist by hostname, not by IP address** — the underlying addresses change. Also **exempt all three from TLS/SSL inspection**: an allow rule alone is not enough if the proxy re-signs the certificate.

> [!NOTE]
>
> **Check where the rule is enforced, not just that it exists.** The tunnel agent runs inside a **Linux container**. Some endpoint security products — Trend Micro's endpoint agent among them — enforce web policy on the **Windows host's** network path only, so a hostname you can reach from a browser on the same machine can still be blocked for the container. Test from inside the container, not from the host's browser.

**Validate this access before you start, especially on a corporate network.** Secure web gateways and TLS-inspection proxies — Zscaler, Netskope, Cisco Umbrella, and similar SSE/SASE tools — frequently intercept outbound traffic and break the tunnel. If setup stalls, see [When a network proxy blocks the connection](#when-a-network-proxy-blocks-the-connection).

## The setup experience: TUI and CLI

MCP Manager provides an in-product wizard that generates a single Docker command for you to run on the workstation. The command starts the tunnel agent and connects your local MCP server to MCP Manager.

**1. Run it on the workstation**

Run the command in your terminal. It launches an interactive terminal user interface (TUI) — a dashboard right in your command line.

**2. Watch the connection establish**

The TUI shows the progress of each step as the tunnel is established and the workstation registers with MCP Manager.

The TUI is your dashboard for setup and monitoring. It provides:

* **Connection status** — the progress of each step as the tunnel comes up and the workstation registers.
* **Health monitoring** — real-time health information and connection statistics.
* **Logs** — local workstation logs for troubleshooting.
* **Port information** — which ports are in use on the machine.
* **Server controls** — start, stop, or restart the workstation connection.

The container runs in the background with an automatic restart policy, so the workstation server stays connected even after reboots. Once the connection is established, the TUI keeps working silently in the background — you only need it for setup and monitoring.

### The TUI and the proxy are different containers

The command you run starts the **TUI**; the TUI starts a second, detached container called **`mcpm-workstation-proxy`**. The proxy is what owns the tunnel, runs the connection checks, and produces every diagnosis. Quitting the TUI leaves the proxy running and loses nothing.

That matters when something goes wrong, because the TUI is a live view — you cannot paste it into a support ticket or an AI assistant. The proxy gives you the same information as text and as JSON:

```bash terminal theme={null}
docker logs mcpm-workstation-proxy --tail 200   # diagnosis as text, safe to share
curl -s localhost:7117/startup-progress          # live connection state as JSON
```

Every failure names a stable diagnostic code — `MCPM_DERP_UNREACHABLE` and friends — that [Troubleshoot a workstation connection](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-servers/workstation-troubleshooting.md) documents one by one.

## When a network proxy blocks the connection

If the setup TUI **stalls at "Tailscale daemon started"** — the step stays yellow and never advances to "Authenticated on tailnet" — the tunnel agent can't reach MCP Manager's coordination server. The usual cause is a corporate **secure web gateway** or **TLS-inspection proxy** intercepting the outbound connection.

The encrypted tunnel is built on [WireGuard](https://www.wireguard.com/). To establish it, the agent opens an outbound connection to `headscale.mcpmanager.ai` on **TCP 443**. Products such as **Zscaler Internet Access, Netskope, Cisco Umbrella, Cloudflare Gateway, Palo Alto Prisma Access, Forcepoint, Broadcom/Symantec Web Security Service, and Microsoft Entra Internet Access** can block that connection or re-sign its certificate, which leaves the daemon waiting and the step stuck.

To fix it:

* **Allowlist the endpoint (recommended).** Have your network or IT team permit outbound access to `headscale.mcpmanager.ai` on TCP 443 **and exempt it from TLS/SSL inspection** — an allow rule alone is not enough if the proxy still re-signs the certificate. Allowlist by **hostname**, not IP, since the underlying addresses can change.
* **Temporarily disable the proxy** on the machine to confirm it's the cause, then add the allowlist entry for a lasting fix.

Once the endpoint is reachable, run the command again — the TUI advances past "Tailscale daemon started" and completes the remaining steps.

The proxy reports this as [`MCPM_COORDINATOR_UNREACHABLE`](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-servers/workstation-troubleshooting#mcpm-coordinator-unreachable).

> [!NOTE]
>
> Blocking outbound **UDP** alone does not cause this stall: the tunnel falls back to the relay servers over TCP 443. A connection that hangs at "Tailscale daemon started" almost always means TCP 443 to `headscale.mcpmanager.ai` is itself blocked or TLS-intercepted.
>
> A stall **later** in the sequence is a different problem with a different fix — see [When the relay servers are blocked](#when-the-relay-servers-are-blocked).

## When the relay servers are blocked

This failure looks like success right up until the last step, which is what makes it hard to diagnose.

**The symptom.** The TUI goes green through "Tailscale daemon started", "Authenticated on tailnet" and "IP & DNS assigned", then shows **"Relay servers reachable"** in error, or stalls at **"Connected to server"** and eventually reports a timeout.

**The cause.** Your machine sits behind NAT and opens no inbound port, so MCP Manager's servers cannot reach it directly. Traffic travels over the **relay servers** instead. If `headscale.mcpmanager.ai` is allowlisted but `derp-a.mcpmanager.ai` and `derp-b.mcpmanager.ai` are not, the tunnel authenticates perfectly — and then has nowhere to send packets.

This is not a problem with your identity, your credentials, or your MCP server. Nothing about them is involved at this stage.

**The fix.** Have your network or security team allow outbound HTTPS (TCP 443) to `derp-a.mcpmanager.ai` and `derp-b.mcpmanager.ai`, exempt from TLS/SSL inspection, and confirm the rule applies to the **container's** network path — see the note under [Network requirements](#network-requirements).

MCP Manager names the exact hostnames it could not reach, so you can paste them straight into the request. They appear in the TUI, in `docker logs mcpm-workstation-proxy`, and as `unreachableHostnames` on `localhost:7117/startup-progress`. The proxy reports this as [`MCPM_DERP_UNREACHABLE`](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-servers/workstation-troubleshooting#mcpm-derp-unreachable).

## Governance and visibility

Routing local MCP traffic through the MCP Manager gateway is what makes workstation servers safe to use at an organization. The same logging, [gateway rules](https://docs.mcpmanager.ai/features/gateway-rules/overview.md), identity management, and access controls that apply to remote and managed servers apply here — so a server running on a laptop is no longer a blind spot. Every request is recorded and inspected, and a connection that drops is automatically retried by the tunnel agent.

## Identities for workstation servers

Workstation servers use the same **identity** model as every other server type: an identity is **Private** by default or **Global** to share across your organization, and administrators can require per-user identities or share a single identity across a gateway. See [the identities section of the overview](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-servers/overview.md#how-identities-control-access-across-all-three-types) for the full model.

### One workstation per user

A workstation server belongs to the user who created it, and each user has **one workstation at a time** in an organization. That one workstation serves all of the user's workstation servers. Starting the workstation command on a second machine moves it there: MCP Manager sends traffic to the machine that started most recently, and the first machine stops receiving any. Sharing a server does not change this: everyone using a shared identity reaches the server through its owner's workstation.

## Signing in with OAuth

A workstation server can sign in with **OAuth**, the same way a [remote server](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-servers/choosing-remote-auth.md) does. MCP Manager discovers the authorization server, registers itself with dynamic client registration, and you approve a consent screen. This is how you connect a server that lives on your internal network and asks for OAuth, such as a self-hosted GitLab.

Everything MCP Manager sends to the authorization server goes **through the owner's workstation**: the code exchange, token refreshes and user info. So an authorization server that is reachable only inside your network works, and nothing on it has to be exposed to the internet.

In the workstation setup window, **Test connection** tells you when the server wants a sign-in, and **Authorize** opens the consent screen. The consent screen opens in the browser of whoever clicks **Authorize**, so that browser must reach the sign-in page too: be on the same network or VPN as the workstation. Once the server uses OAuth, its custom headers are read-only, because a header would replace the OAuth token on every request.

Three rules apply:

* **The owner's workstation must be running.** Sign-in and token refresh happen on that machine. A token refresh that fails because the machine is off or asleep is retried later and never revokes the sign-in.
* **The authorization server's token and UserInfo endpoints must be on its issuer's origin, an origin the issuer's own metadata names, or the MCP server's origin.** Providers such as Google, which put these endpoints on separate hosts, work. MCP Manager refuses to send credentials through your workstation to any other host, so a discovery document cannot point them elsewhere on your network.
* **Only the owner, or people the identity is shared with, can use it.** The workstation runs on the owner's machine, inside the owner's network. A teammate can load tools through it only when the owner has made the identity **Global**, and every request from anyone using that shared identity then goes through the owner's workstation. While the owner's machine is off or asleep, the server is unavailable to all of them.

## HTTPS certificates

The workstation verifies the HTTPS certificate of every server it connects to, like a browser does, **except servers addressed as the machine itself**: `localhost` and any name ending in `.localhost`, any `127.x.x.x` address, `[::1]`, `0.0.0.0`, `[::]`, and `host.docker.internal`, which is the machine itself seen from inside the workstation container. A local MCP server often has a self-signed certificate, and that traffic never leaves the machine. What counts is the address in the URL, not the machine: the same machine reached by its LAN IP or hostname **is** verified.

There is no switch to turn verification off. When a server's certificate does not verify:

* **Signed by your organization's own certificate authority:** give the workstation that CA. Add it to the docker command MCP Manager generated, before the image name:

  ```bash terminal theme={null}
  docker run -e MCPM_EXTRA_CA_CERTS="$(cat your-ca.pem)" <the rest of the command>
  ```

  In PowerShell, use `-e MCPM_EXTRA_CA_CERTS="$(Get-Content -Raw your-ca.pem)"`.
* **Behind a TLS-inspecting proxy (Zscaler, Netskope and similar):** the proxy re-signs every HTTPS connection with its own root CA, so public servers fail too, typically with `SELF_SIGNED_CERT_IN_CHAIN` or `UNABLE_TO_GET_ISSUER_CERT_LOCALLY`. Export the proxy's root CA and pass it in `MCPM_EXTRA_CA_CERTS`, or have the host exempted from inspection.
* **A self-signed server certificate** (`DEPTH_ZERO_SELF_SIGNED_CERT`): pass that certificate itself in `MCPM_EXTRA_CA_CERTS`.
* **A server addressed by IP** (`https://10.x.x.x`) whose certificate has no IP entry fails with `ERR_TLS_CERT_ALTNAME_INVALID`. Use the hostname the certificate was issued to, or reissue it with the IP. Private addresses are verified like any other.

The value of `MCPM_EXTRA_CA_CERTS` is the PEM text of one or more certificates, not a file path. The workstation passes it on to the proxy container, restarting the proxy when the value changes, and logs `Trusting N extra CA certificate(s)` when it starts. A certificate in the value that cannot be read is skipped and logged; the others are still trusted. When a certificate does not verify, the request fails with **Upstream Certificate Rejected**, the reason, and what `MCPM_EXTRA_CA_CERTS` currently holds.

> [!WARNING]
>
> Workstation versions before **0.4.10** do not verify certificates. MCP Manager refuses to send anything through them to a remote HTTPS server, and the error asks you to update. Servers addressed as the machine itself keep working on any version. To update, run the latest command from the workstation setup window.

## Pros and cons

* **Pros:** direct access to the local environment (files, editors, hardware) with no intervening abstraction; never exposed to the public internet; full gateway governance, logging, and policy even though the server runs locally; works behind firewalls without special networking.
* **Cons:** the server still depends on the machine it runs on being available; each person who uses it runs a one-time setup on their own machine, which needs Docker.

## Further reading

> [card] [Connect a workstation MCP server](https://docs.mcpmanager.ai/tutorials/connect-a-workstation-server.md)
>
> The hands-on tutorial — connect a local server and call a tool through a gateway in about ten minutes.

> [card] [Troubleshoot a workstation connection](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-servers/workstation-troubleshooting.md)
>
> Read the proxy's logs and live state, and look up the diagnostic code it reports.

> [card] [MCP Gateways](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-gateways.md)
>
> How a gateway aggregates servers behind one governed URL.

> [card] [Managed MCP Servers](https://docs.mcpmanager.ai/mcp-gateway-concepts/mcp-servers/managed.md)
>
> Run a server in your own infrastructure from a generated command.

## External sources

> [card] [WireGuard](https://www.wireguard.com/)
>
> The encrypted-tunnel protocol that workstation connections are built on.


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