Skip to main content

LiveKit Docs MCP Server

Turn your AI coding assistant into a LiveKit expert.

Overview

LiveKit includes a free Model Context Protocol (MCP) server with tools for AI coding assistants to browse and search the docs site. The following instructions cover installation of the MCP server and advice for writing an AGENTS.md file to get the most out of your coding agent.

The server is available at the following URL:

https://docs.livekit.io/mcp

Features

The LiveKit Docs MCP server provides the following capabilities:

  • Documentation browsing and search - Access and search the entire LiveKit documentation site
  • GitHub code search - Full code search across all public repositories in the livekit and livekit-examples organizations
  • Changelog access - Pull changelogs for any LiveKit package or SDK repository
  • Python examples - Browse and access many examples that use the Python Agents SDK

Installation

The following sections cover installation instructions for various coding assistants.

Cursor

Click the button below to install the MCP server in Cursor:

Install MCP Server in Cursor

Or add it manually with the following JSON:

{
"livekit-docs": {
"url": "https://docs.livekit.io/mcp"
}
}

Claude Code

Run the following command in your terminal to install the MCP server in Claude Code:

claude mcp add --transport http livekit-docs https://docs.livekit.io/mcp

Codex

Run the following command in your terminal to install the server in OpenAI Codex:

codex mcp add --url https://docs.livekit.io/mcp livekit-docs

Gemini CLI

Run the following command in your terminal to install the server in Gemini CLI:

gemini mcp add --transport http livekit-docs https://docs.livekit.io/mcp

Antigravity

Manually configure the MCP server in Google Antigravity by adding the server configuration to your mcp_config.json file.

  1. Open your mcp_config.json file. This can be accessed at ~/.gemini/antigravity/mcp_config.json or by clicking the three dots in the top right of the Agent panel, selecting MCP Servers, clicking Manage MCP Servers, and then clicking View raw config.

  2. Add the following JSON:

    {
    "mcpServers": {
    "livekit-docs": {
    "serverUrl": "https://docs.livekit.io/mcp"
    }
    }
    }
  3. Restart your environment for the changes to take effect.

VS Code

Add the MCP server to your VS Code workspace by creating or editing .vscode/mcp.json:

{
"servers": {
"livekit-docs": {
"type": "http",
"url": "https://docs.livekit.io/mcp"
}
}
}

Or install it using the VS Code CLI:

code --add-mcp '{"name":"livekit-docs","type":"http","url":"https://docs.livekit.io/mcp"}'

Copilot

Copilot CLI supports MCP servers via an interactive setup flow or by editing its config file directly.

To add the server interactively, start Copilot CLI and run /mcp add. When prompted, set the server URL to https://docs.livekit.io/mcp.

To configure it manually, create or edit ~/.copilot/mcp-config.json:

{
"mcpServers": {
"livekit-docs": {
"type": "http",
"url": "https://docs.livekit.io/mcp",
"tools": ["*"]
}
}
}

Manual installation

The MCP server is available at the following URL. Add this server to your MCP client of choice. If prompted, set the transport to http or "Streamable HTTP".

https://docs.livekit.io/mcp

AGENTS.md

To get the most out of the MCP server, LiveKit recommends that you include an AGENTS.md or similar file in your repository, with instructions specific to the LiveKit Docs MCP Server. This file ensures that your agent always consults LiveKit docs to produce reliable, working code.

Many of LiveKit's starter repositories already include a robust AGENTS.md file which is optimized for that specific project and environment.

Or add the following instructions to your own AGENTS.md file:

## LiveKit Documentation
LiveKit Agents is a fast-evolving project, and the documentation is updated frequently. You should always refer to the latest documentation when working with this project. For your convenience, LiveKit offers an MCP server that can be used to browse and search its documentation. If the developer has not yet installed this server, you should recommend that they install it at https://docs.livekit.io/mcp.

Markdown docs

Each page on the LiveKit docs site is available in Markdown format, optimized for pasting into AI assistants when MCP is unavailable.

To access the Markdown version of any page on the site, append .md to the end of the URL. For example, this page is available at https://docs.livekit.io/intro/mcp-server.md. You can also use the "Copy page" button on the top right of any docs page.

LLMs.txt

A complete Markdown-based index of the docs site is available at https://docs.livekit.io/llms.txt. This file includes a table of contents along with brief page descriptions. An expanded version is available at https://docs.livekit.io/llms-full.txt, but this file is quite large and may not be suitable for all use cases.

For more about how to use LLMs.txt files, see llmstxt.org.