You can run the MCP Gateway in two modes:
- For beam runtimes. Your agents run in beams.
tshin each beam is already signed in with the roles you delegate to it, so an agent can call only the MCP tools and databases those roles allow. - As a standalone service. MCP clients run wherever you sign in with
tsh, such as your dev computer, and reach MCP servers and databases enrolled in your own infrastructure. No beam is involved.
Switch between agents in beam runtimes and MCP clients on your own computer. Both reach the same destinations through the same gateway.
Both clients connect only to the Teleport MCP Gateway. The gateway routes to the internal MCP server and PostgreSQL in your infrastructure, or to hosted MCP using OAuth.
Beam runtimes ↔ Standalone service
In both modes, Teleport checks your roles on every request and records it in the audit log. For MCP servers, it also hides the tools your roles don’t allow.
The following guides work in both modes. Each one shows how to connect from your dev computer and from inside a beam. The MCP server and database guides run their demo servers in beams, so you don’t need servers of your own. The Kubernetes guide uses a cluster you enroll yourself.
-
Internal services
Run an internal MCP server in a beam built from a phase, and call its tools through Teleport from your dev computer or from inside a beam.
-
OAuth for external services
Connect to hosted MCP services through Teleport from your workstation or from inside a beam.
-
Databases
Run PostgreSQL in a beam built from a phase and query it from an MCP client through Teleport, with read-only access enforced by Teleport and PostgreSQL.
-
Kubernetes clusters
Give an MCP client read-only access to a Kubernetes cluster through Teleport, from your dev computer or from inside a beam.