• PROVISION
  • AUDIT
  • CLEANUP
  • MANUAL

How to create and destroy rooms with your AI

Connect your agent to LiveKit to automate session lifecycles. Your AI handles the provisioning and teardown of real-time environments.

Ask AI about this page

Short answer

How can my AI manage LiveKit rooms?

Your agent uses specific tools to spin up new rooms, check what's running, and delete sessions when they're finished. You get full programmatic control over the session lifecycle.

Session outcomes

Where your sessions land.

What happens when your agent takes action.

PROVISION

New rooms start

The AI triggers a room creation event. You get a fresh environment ready for real-time interaction.

AUDIT

Active rooms visible

Your agent pulls a list of all currently active sessions. This keeps your AI aware of the existing environment.

CLEANUP

Old rooms vanish

The AI removes specific rooms once they are no longer needed. This prevents stale sessions from cluttering your setup.

MANUAL

Human oversight

If a room needs custom configuration or won't close, you step in. The AI handles the standard logic, but you stay in control.

The workflow

What your AI does when a session request arrives.

The AI acts as the orchestrator for your real-time infrastructure.

  1. Initialize session

    When a user or trigger requires a new space, the AI provisions a fresh room.

    create_room
  2. Verify state

    The agent checks the current environment to see which rooms are already active.

    list_rooms
  3. Identify targets

    The AI scans the active list to find the specific room that needs attention.

    list_rooms
  4. Terminate session

    Once the interaction ends, the AI wipes the room to free up resources.

    delete_room

Try it

Copy these to start.

Use these prompts to trigger room actions immediately.

Starting points

Replace the room names or IDs with your actual LiveKit identifiers.

LiveKit Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_Y60ujzl6AGdFF9QnxaSiCpnF8V3Papr0mn8cSRqZ/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — LiveKit capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "tt-voice-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_Y60ujzl6AGdFF9QnxaSiCpnF8V3Papr0mn8cSRqZ/mcp"
    }
  }
}
Copy into chat04
  • Create a new LiveKit room for our upcoming voice session.

  • Show me all the rooms that are currently active.

  • Find the room named 'client-demo-123' and delete it.

  • List all rooms so I can see which ones to shut down.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect LiveKit Real-Time Rooms once, then ask.

Just link your account once. Your credentials stay encrypted, and you can start managing rooms through your agent right away.

Connect LiveKit Real-Time Rooms to your AI

FAQ

How the room management behaves

  • 01

    Can my AI change the settings of an existing room?

    No. The AI can only create, list, or delete rooms.

  • 02

    Will the AI delete all my rooms by accident?

    No. The AI only deletes specific rooms when you explicitly instruct it to do so by name or ID.

  • 03

    Can the AI see who is inside the rooms?

    No. This MCP only manages the room lifecycle, not the individual participants.

  • 04

    How does the AI know which room to delete?

    You must provide the specific room name or ID, or the AI can use the list tool to find it first.

  • 05

    Does the AI handle the actual video or audio streaming?

    No. The AI manages the room containers; the actual media is handled by the LiveKit infrastructure.

  • More questions about LiveKit Real-Time Rooms? The Connector page answers them. See everything the LiveKit Real-Time Rooms Connector can do

Connect LiveKit to Claude, Cursor, ChatGPT & more