Skip to content

Overview

Give MCP clients and agents access to internal services, hosted MCP providers and databases through the Teleport MCP Gateway.

Build with agents

You can run the MCP Gateway in two modes:

  • For beam runtimes. Your agents run in beams. tsh in 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.
Two ways to run the MCP Gateway

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.

you delegated roles
agent beam
agenttsh: beam identity
dev computer
MCP clienttsh login (SSO)
Teleport MCP Gateway
role checktool filteraudit log
your infrastructure
Internal MCP serverTeleport Application Service
PostgreSQLTeleport Database Service
Hosted MCPOAuth

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.

Search docs

Loading search and AI…

Skills

Install all available skills. All Beams and Teleport skills are hosted in our OSS Teleport repository.

npx skills add https://github.com/gravitational/teleport