teleport-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@teleport-mcp Show me an overview of the Teleport service and its connections."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
teleport-mcp
An MCP server that lets an LLM agent drive a TeleportXR headless client: connect to Teleport servers, move an avatar, send input, and inspect the geometry a server has streamed.
Why this exists
The headless client is two processes. teleportd is a service that owns live streaming
connections; teleport_cli is a thin front end that sends it commands and exits. That split
is what makes agent control possible at all: an agent issues a command, reports to the user,
waits for feedback, and acts again — three tool calls that may be minutes apart. A session
that died with its terminal could not support that flow.
This package is the adapter. It speaks MCP over stdio to the agent, and the
local control protocol over a loopback socket
to teleportd.
Related MCP server: textual-mcp-server
Requirements
Node 22 or later.
A
teleportdbinary. Build it from theTeleport/repo:cd ../Teleport && cmake -B build_pc_client -S . && cmake --build build_pc_client
Install
npm installConfigure
Claude Code
Add to .mcp.json at the root of the workspace:
{
"mcpServers": {
"teleport": {
"command": "node",
"args": ["teleport-mcp/src/index.js"]
}
}
}Claude Desktop
Absolute paths, since the working directory is not the workspace:
{
"mcpServers": {
"teleport": {
"command": "node",
"args": ["/home/you/teleport/teleport-mcp/src/index.js"],
"env": {
"TELEPORTD_PATH": "/home/you/teleport/Teleport/build_pc_client/bin/teleportd"
}
}
}
}Environment
Variable | Purpose |
| Control port. Default 10510. |
| Path to the |
| Set to |
Tools
Tool | Does |
| Service version, all connections, current identity — start here |
| Open a connection; returns its id |
| Every open connection with its state |
| State, server, latency, inputs and mode for one connection |
| Close one connection |
| Move and/or turn the avatar |
| Inputs the server has declared |
| Send a binary, analogue or motion input event |
|
|
| Summary, node list, or pointer resources |
| Show, start or clear the sign-in |
| Any control command verbatim — the escape hatch |
Every tool returns the service's JSON data object as structuredContent, alongside a text
rendering of the same object.
The agent flow
teleport_overview → is anything already connected?
teleport_connect address=host:8080 → { id: 1 }
teleport_connection_status id=1 → poll until state is CONNECTED
teleport_set_mode id=1 mode=simulated
teleport_get_geometry id=1 what=nodes → what the server sentTwo things that are not guessable, and that the tool descriptions repeat:
teleport_connectreturns before the connection completes. The id is valid immediately; the connection is still negotiating. Pollteleport_connection_statusuntilstateisCONNECTED.Connections outlive the conversation. A connection opened in one session is still there in the next. Call
teleport_overviewbefore assuming you need a new one.
Signing in
Sign-in is an OAuth device-code flow, and the service has no browser. teleport_identity with
action: "signin" starts it; poll action: "show" and read pendingSignIn for the URL and
code to relay to the user.
Shutting down
shutdown stops the service and every live stream with it. It is deliberately not a tool —
reach it through teleport_raw_command if you mean it.
Development
npm test # framing, dot-stuffing, reconnect, and the command mapping
node smoke.mjs # end-to-end: spawns the server, autostarts teleportd, calls every toolsmoke.mjs honours TELEPORT_SERVICE_PORT, so run it on a scratch port (10599) rather than
against a service you are using.
How it talks to the service
The control protocol is one request line in, dot-stuffed lines out, terminated by a lone .,
with an OK / ERROR <message> status header. Three properties shape src/control-client.js:
No message ids. A socket carries one request at a time, so concurrent tool calls queue rather than interleave.
Session state is per-socket. The output format and the selected connection are lost if the socket drops, so the client re-sends
format jsonon every connect and re-selects the connection before every connection-scoped command rather than trusting an earlieruse.uids are strings.
avs::uidis 64-bit and Teleport's uids exceed 2^53, so they cross the wire as decimal strings — the same conventionteleport-web-clientandteleport-nodejsuse.
src/daemon.js starts the service if it is not running and never stops it. That is the
point of the split.
Licence
MIT.
Available Tools
12 toolsteleport_connectConnect to a Teleport serverA
Open a connection to a Teleport server and return its id. The attempt is ASYNCHRONOUS: this returns as soon as it is initiated, not when it succeeds. Poll teleport_connection_status until state is CONNECTED. The connection outlives this conversation — it is still there in a later session.
Inputs: address (required). Returns: id, url
teleport_connection_statusConnection statusA
State of one connection: state (UNCONNECTED, OFFERING, AWAITING_SETUP, HANDSHAKING, CONNECTED, RECONNECTING, DISCONNECTED), server, latency, available inputs and mode. Poll this after teleport_connect.
Inputs: connectionId (required). Returns: id, mode, port, state, +4 more
teleport_disconnectDisconnectA
Close one connection. The service and any other connections keep running.
Inputs: connectionId (required). Returns: disconnected
teleport_get_geometryReport streamed geometryA
What the server has streamed to this connection. summary gives counts; nodes lists the tracked scene nodes; resources lists pointer URLs and uids referenced but never sent. uids are decimal strings, not numbers — they exceed what a JSON number can hold.
Inputs: connectionId (required), what. Returns: hasCache
teleport_identityIdentityA
Show, start or clear the service identity. Sign-in uses a device code: action=signin starts it, then poll action=show and read pendingSignIn for the URL and code to give the user. The service has no browser, so relaying that prompt is the only way in.
Inputs: action, provider. Returns: signedIn
teleport_list_connectionsList connectionsB
Every connection the service currently holds, with its id, URL and state.
Inputs: no named parameters. Returns: selected, connections
teleport_list_inputsList available inputsA
Inputs the server has declared for this connection, with the ids teleport_send_input takes. Empty until the connection reaches CONNECTED and the server sends its input definitions.
Inputs: connectionId (required). Returns: inputs
teleport_overviewTeleport overviewA
Where am I: the service version, every open connection, and the current identity. Start here — one call answers whether the service is up and what it is already doing.
Inputs: no named parameters. Returns: service, identity, protocol, selected, +1 more
teleport_raw_commandRaw control commandA
Send one command line to the service verbatim, for anything the tools above do not cover (help lists them all). Note shutdown stops the service and every live stream with it, which is why it has no tool of its own.
Inputs: command (required). Returns: object
teleport_send_inputSend an input eventA
Send one input event. binary takes value 0 or 1; analogue takes a single float; motion takes x and y. Use teleport_list_inputs for the ids the server expects.
Inputs: kind (required), inputId (required), connectionId (required), x, +2 more. Returns: sent
teleport_set_modeSet client modeA
minimal is a network diagnostic: connectivity and stream health, no geometry decoding. simulated exercises the full geometry streaming and acknowledgement flow. Use simulated before expecting teleport_get_geometry to report anything.
Inputs: mode (required), connectionId (required). Returns: mode
teleport_set_poseSet avatar poseA
Move and/or turn the client avatar. Position is metres, orientation is a quaternion. At least one of position or orientation must be given.
Inputs: connectionId (required), position, orientation. Returns: position, orientation
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools target distinct operations (connect, disconnect, status, inputs, geometry, identity). However, teleport_overview and teleport_list_connections both list open connections, and teleport_identity's show overlaps with overview's identity display, creating potential for misselection.
All tools share the teleport_ prefix, but the verb-noun pattern is inconsistent: some use verbs (list_connections, set_pose), some are bare verbs (connect, disconnect), and others are nouns (overview, identity, raw_command). This mixing makes the API less predictable.
12 tools is well-scoped for a connection management service, covering lifecycle, input, geometry, and identity without obvious bloat. Each tool serves a distinct purpose, and the raw command fallback justifies the count.
The core connection lifecycle (connect, status, disconnect) is covered, along with input, pose, mode, and identity management. Minor gaps exist—no explicit tool to list available modes or detailed connection statistics—but teleport_raw_command provides a workaround, so the surface is largely complete.
Maintenance
Related MCP Connectors
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
Cloud-hosted MCP server for durable AI memory
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
FlicenseNot gradedqualityBmaintenanceRemote MCP server that gives LLMs access to run network commands66-- AlicenseAqualityDmaintenanceAn MCP server that lets AI agents launch, interact with, and inspect Textual TUI applications headlessly.124MIT
- AlicenseNot gradedqualityDmaintenanceA production-ready MCP server that gives an LLM agent standalone-equivalent control over a Mineflayer Minecraft bot — movement, mining, crafting, inventory, combat, containers, chat, and much more — exposed as 110 strongly-typed tools across 23 groups, with full bot lifecycle management and dual (poll + push) event streaming.142 npm8MIT
- FlicenseNot gradedqualityCmaintenanceFull-access MCP server for the Webots robot simulator that enables AI assistants to see, understand, and modify a running simulation, including scene-tree inspection/editing, robot control, viewport screenshots, and arbitrary code execution.4-