Does LIvekit has a MCP I can connect Claude to ins...
# ask-ai
c
Does LIvekit has a MCP I can connect Claude to inspect the sessions, livekit logs...
t
Thanks for reaching out, Yousri. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m glad you asked. You can connect an AI assistant like Claude to LiveKit for inspecting sessions and logs. What’s available • LiveKit provides a Model Context Protocol (MCP) server you can run so assistants can query live LiveKit documentation and examples in real time. • For session and log inspection, LiveKit has Agent Observability in the Cloud Dashboard. It lets you view synchronized audio playback, transcripts, turn-by-turn traces, and correlated logs so you can debug agent behavior, LLM latency, tool calls, and errors in context. • Agent logs are accessible from the Cloud Dashboard, via the LiveKit CLI, or by forwarding logs to external services (e.g., Datadog, Sentry). How to get started (high level) 1. Install and run the LiveKit Docs MCP server so Claude (or other assistants) can fetch up-to-date docs and examples. 2. Add the LiveKit agent skills to your assistant environment (for example:
npx skills add livekit/agent-skills
) to provide architectural guidance and make the integration smoother. 3. Use Agent Observability in the Cloud Dashboard to inspect live sessions, play back audio, read transcripts, and view correlated traces and logs. 4. If you want programmatic access to logs, you can view them via the LiveKit CLI or forward them to an external logging service. Quick questions to help me guide you next • Are you trying to connect Claude to a self-hosted LiveKit instance or LiveKit Cloud? • Do you want Claude to inspect live sessions in real time, or to analyze stored session logs/transcripts? • Do you already have the MCP server or agent skills installed, or would you like step-by-step setup help? Tell me which scenario matches you and I’ll provide the exact next steps. Sources: Voice agent skills for coding assistants | Streamline troubleshooting with Agent Observability | Where to find your Agent Logs | LiveKit
c
• I'm trying to connect Claude to LIvekitCloud • I want Claude to analyze stored session logs. • I don't care about documnetation. I want Claude to be able to fetch a given session ID and inspect the logs
t
Thanks — this is helpful. You want Claude (an external assistant) to fetch stored session logs from LiveKit Cloud by session ID and analyze them. Here’s a clear, practical way to do that and the questions I need to give exact steps. What you can do (high level) • LiveKit Cloud exposes stored agent/session logs through Agent Observability; those logs can be accessed from the Cloud Dashboard, the LiveKit CLI, or forwarded to external logging services (Datadog, Sentry). • To let Claude fetch logs programmatically, the assistant needs an API or endpoint that returns the session logs for a given session ID. You can provide that by: ◦ Using the Cloud Dashboard/CLI to export logs for a session, then making those exported logs available to Claude via an API endpoint or secure file storage the assistant can call, OR ◦ Forwarding LiveKit logs to an external logging service (Datadog/Sentry) that Claude can query (if Claude can be given API access to that external service). Recommended approach (practical, secure) 1. Decide where Claude will query logs from: ◦ Option A — LiveKit Cloud -> Export/CLI endpoint: ▪︎ Use the Cloud Dashboard or LiveKit CLI to fetch stored logs/transcripts for a specific session ID and expose them via a small internal API (authenticated) that Claude can call. ◦ Option B — Forward logs to an external logging datastore: ▪︎ Configure LiveKit to forward logs to Datadog or Sentry. Give Claude scoped API credentials for that logging service and a query that returns logs matching the session ID. 1. Implement a minimal, authenticated API (if you choose Option A): a. Create an internal endpoint (e.g., GET /sessions/:sessionId/logs) that: ▪︎ Authenticates the caller with a short-lived token or scoped API key. ▪︎ Looks up the session logs from Cloud exports or from whatever storage you use for archived logs. ▪︎ Returns structured logs, transcripts, and any related traces in JSON. a. Give Claude the endpoint URL and a scoped API key with only read permission for logs. b. Limit returned data to the session ID requested to reduce exposure. 1. If you choose the external-logs route (Option B): a. Forward LiveKit logs to the external service (Datadog or Sentry). b. Create a minimal query or saved search that fetches logs for a given session ID. c. Give Claude an API key with read-only access and the exact query/endpoint to call. Security and operational notes • Use scoped, short-lived credentials for Claude rather than broad admin keys. • Restrict the assistant’s access to only the specific logs it needs (by session ID). • Return structured JSON (logs, timestamps, transcripts, trace IDs) so Claude can parse and analyze without extra conversion. Follow-up questions so I can give exact commands and code • Do you already forward LiveKit logs to Datadog/Sentry, or do you plan to use the Cloud Dashboard/CLI export route? • Can you host a small authenticated API endpoint for Claude to call, or do you need an example of how to fetch logs via the CLI and expose them programmatically? • Do you want example code (Node/Python) for an endpoint that returns session logs in JSON and uses a scoped API key? Tell me which option you prefer (Cloud export + API or external logging service) and whether you want code examples — I’ll provide step-by-step commands and a small sample implementation for that path.